blob: 7d6fe31f0cbdbc911cf692838794df19f00671c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*
* Copyright (C) 1991 by the Massachusetts Institute of Technology.
* For copying and distribution information, see the file "mit-copyright.h".
*
* $Source$
* $Id$
* $Author$
*/
#include <mit-copyright.h>
#ifndef __zstring_h
#define __zstring_h __FILE__
#define ZSTRING_HASH_TABLE_SIZE 1031
typedef struct t_zstring
{
char *string; /* the string itself */
int len; /* string length, for speed */
int ref_count; /* for gc */
struct t_zstring *next; /* for linking in hash table */
struct t_zstring *prev; /* for linking in hash table */
} ZSTRING;
#ifdef __STDC__
# define P(s) s
#else
# define P(s) ()
#endif
ZSTRING *make_zstring P((char *s, int downcase));
void free_zstring P((ZSTRING *z));
ZSTRING *find_zstring P((char *s, int downcase));
int eq_zstring P((ZSTRING *a, ZSTRING *b));
#undef P
#endif /* __zstring_h */
|