Files
ec3/src/string-table.h

18 lines
372 B
C
Raw Normal View History

#ifndef STRING_TABLE_H_
#define STRING_TABLE_H_
#include <blue/core/btree.h>
struct string_table {
b_btree s_hash_tree;
b_btree s_offset_tree;
size_t s_next_offset;
};
extern void string_table_init(struct string_table *out);
extern void string_table_finish(struct string_table *tab);
extern size_t string_table_get(struct string_table *tab, const char *s);
#endif