mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-01-22 04:18:01 +00:00
27 lines
520 B
C
27 lines
520 B
C
struct pool_val {
|
|
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, char *s, int type);
|
|
struct pool_val *pool_long_long(struct pool *p, long long *val, 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, char *s, int type);
|