mirror of
https://github.com/osm2pgsql-dev/osm2pgsql.git
synced 2025-08-19 16:28:16 +00:00
22 lines
406 B
C
22 lines
406 B
C
#ifndef TEXT_TREE_H
|
|
#define TEXT_TREE_H
|
|
|
|
#include "rb.h"
|
|
|
|
struct tree_context {
|
|
struct rb_table *table;
|
|
};
|
|
|
|
extern struct tree_context *tree_ctx;
|
|
|
|
struct text_node {
|
|
char *str;
|
|
int ref;
|
|
};
|
|
|
|
struct tree_context *text_init(void);
|
|
void text_exit(void);
|
|
const char *text_get(struct tree_context *context, const char *text);
|
|
void text_release(struct tree_context *context, const char *text);
|
|
#endif
|