https://github.com/mapbox/tippecanoe
Raw File
Tip revision: 06d0fcf449afe4625b9f02621120494c741d4220 authored by Eric Fischer on 02 March 2016, 01:11:39 UTC
Make indent
Tip revision: 06d0fcf
pool.h
struct pool_val {
	const char *s;
	int type;
	int n;

	struct pool_val *next;
};

struct pool {
	void *internal;

	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);

int swizzlecmp(const char *a, const char *b);
back to top