summaryrefslogtreecommitdiff
path: root/src/strpool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/strpool.h')
-rw-r--r--src/strpool.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/strpool.h b/src/strpool.h
index c8429b9..dcab2ae 100644
--- a/src/strpool.h
+++ b/src/strpool.h
@@ -24,11 +24,15 @@ struct _Stringpool
Hashmask stringhashmask; // modulo value for hash table (size of table - 1)
};
-void stringpool_init (Stringpool *ss, const char *strs[]);
+void stringpool_init(Stringpool *ss, const char *strs[]);
+void stringpool_init_empty(Stringpool *ss);
+void stringpool_clone(Stringpool *ss, Stringpool *from);
+
Id stringpool_str2id (Stringpool *ss, const char *str, int create);
-Id stringpool_strn2id (Stringpool *ss, const char *str, unsigned len, int create);
+Id stringpool_strn2id (Stringpool *ss, const char *str, unsigned int len, int create);
void stringpool_shrink (Stringpool *ss);
+
static inline const char *
stringpool_id2str (Stringpool *ss, Id id)
{