tippecanoe/pool.h

25 lines
463 B
C
Raw Normal View History

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);
2014-10-01 17:33:22 +00:00
void pool_free_strings(struct pool *p);
void pool_init(struct pool *p, int n);
2015-08-20 21:27:39 +00:00
int is_pooled(struct pool *p, const char *s, int type);