File: text-tree.h

package info (click to toggle)
osm2pgsql 0.52.20080408-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 348 kB
  • ctags: 440
  • sloc: ansic: 3,963; sh: 469; cpp: 339; makefile: 125
file content (21 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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