]>
jfr.im git - irc/quakenet/newserv.git/blob - lib/sstring-new.h
1 /* sstring.h - Declaration of "static strings" functions */
6 /* Externally visibly max string length */
7 #define SSTRING_MAX 512
9 /* you can actually change USE_VALGRIND here without recompiling! */
10 typedef struct sstring
{
17 unsigned long refcount
;
21 #ifdef COMPILING_SSTRING
23 /* Internal defines */
25 /* SSTRING_MAXLEN is the internal version of SSTRING_MAX which includes
26 * space for the trailing NUL */
27 #define SSTRING_MAXLEN (SSTRING_MAX + 1)
28 #define SSTRING_SLACK 8
29 #define SSTRING_ALLOC 16384
31 #define SSTRING_HASHSIZE 85243
33 #endif /* COMPILING_SSTRING */
35 sstring
*getsstring(const char *, int);
36 void freesstring(sstring
*);
37 int sstringcompare(sstring
*ss1
, sstring
*ss2
);
41 #endif /* __SSTRING_H */