DEADSOFTWARE

Patched for Linux
[mp3cc.git] / MPC.3.5.LINUX / structures / name_table.h
1 /********************************************************************
3 name_table.h - structures and function prototypes for handling
4 names
6 Niksa Orlic, 2004-04-28
8 ********************************************************************/
10 struct name_table_struct
11 {
12 string *name;
13 struct name_table_struct *left_child;
14 struct name_table_struct *right_child;
16 struct name_table_struct *last; // used only in the first item
17 struct name_table_struct *next;
19 identifier *descriptor;
20 };
22 typedef struct name_table_struct name_table;
25 name_table *name_table_create();
26 //name_table *name_table_duplicate(name_table*);
27 void name_table_destroy(name_table *item);
28 void name_table_insert(name_table *root, string *name,
29 identifier *descriptor);
30 identifier* name_table_find(name_table *item, string *name);
31 identifier *name_table_find_cstr(name_table *item, char *name);
33 /*
34 Define the case insensitive string-compare routine.
36 _stricmp on MSVC
37 strcasecmp on gcc (I think)
38 */
39 //#define STRING_COMPARE _stricmp
40 #define STRING_COMPARE strcasecmp