Revision 0ff0bf1ad90d38ac3140c55bde3c915ff20aed6b authored by Eric Fischer on 28 October 2015, 21:38:32 UTC, committed by Eric Fischer on 28 October 2015, 21:38:32 UTC
Use closepath for each polygon ring to match the vector tile spec
2 parent s b07a40e + 358e9ca
Raw File
pool.h
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);
back to top