source: subversion/applications/utils/export/osm2pgsql/text-tree.h @ 4231

Last change on this file since 4231 was 4231, checked in by jonb, 13 years ago

osm2pgsql 0.04: Further improve handling of polygons with holes. Reduce memory usage by about 10%

File size: 430 bytes
Line 
1#ifndef TEXT_TREE_H
2#define TEXT_TREE_H
3
4#include "rb.h"
5
6struct tree_context {
7    struct rb_table *table;
8};
9
10extern struct tree_context *tree_ctx;
11
12struct text_node {
13    char *str;
14    int ref;
15};
16
17struct tree_context *text_init(void);
18void text_exit(struct tree_context *context);
19const char *text_get(struct tree_context *context, const char *text);
20void text_release(struct tree_context *context, const char *text);
21#endif
Note: See TracBrowser for help on using the repository browser.