#include "pooltypes.h"
#include "hash.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define STRID_NULL 0
#define STRID_EMPTY 1
Offset sstrings; /* size of used stringspace */
Hashtable stringhashtbl; /* hash table: (string ->) Hash -> Id */
- Hashmask stringhashmask; /* modulo value for hash table (size of table - 1) */
+ Hashval stringhashmask; /* modulo value for hash table (size of table - 1) */
};
void stringpool_init(Stringpool *ss, const char *strs[]);
return ss->stringspace + ss->strings[id];
}
+#ifdef __cplusplus
+}
+#endif
+
#endif