]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/server/zstring.h
f0889a6867a06a1bc6f3c228897676a4fb985ba2
[1ts-debian.git] / zephyr / server / zstring.h
1 /*
2  * Copyright (C) 1991 by the Massachusetts Institute of Technology.
3  * For copying and distribution information, see the file "mit-copyright.h".
4  *
5  *      $Id$
6  */
7
8 #include <zephyr/mit-copyright.h>
9
10 #ifndef __zstring_h
11 #define __zstring_h __FILE__
12
13 #define STRING_HASH_TABLE_SIZE  1024
14
15 #include <stdio.h>
16
17 typedef struct _String
18 {
19   char *string;                         /* the string itself */
20   int ref_count;                        /* for gc */
21   unsigned long hash_val;               /* hash value for this string */
22   struct _String *next, *prev;          /* for linking in hash table */
23 } String;
24
25 String *make_string __P((char *s, int downcase));
26 void free_string __P((String *z));
27 String *find_string __P((char *s, int downcase));
28 String *dup_string __P((String *z));
29 int comp_string __P((String *a, String *b));
30 void print_string_table __P((FILE *f));
31
32 #endif /* __zstring_h */
33