Drag header files into C++

This commit is contained in:
Eric Fischer
2016-04-27 14:00:14 -07:00
parent a57c247508
commit 65253cba50
15 changed files with 26 additions and 49 deletions
+24
View File
@@ -0,0 +1,24 @@
struct pool_val {
const char *s;
int type;
int n;
struct pool_val *left;
struct pool_val *right;
struct pool_val *next;
};
struct pool {
struct pool_val **vals;
struct pool_val *head;
struct pool_val *tail;
int n;
};
struct pool_val *pool(struct pool *p, const char *s, int type);
void pool_free(struct pool *p);
void pool_free_strings(struct pool *p);
void pool_init(struct pool *p, int n);
int is_pooled(struct pool *p, const char *s, int type);