2001-01-25 10:37:55 +01:00
|
|
|
/* vi: set ts=2:
|
|
|
|
*
|
2001-04-14 13:39:14 +02:00
|
|
|
*
|
2003-07-29 11:48:03 +02:00
|
|
|
* Eressea PB(E)M host Copyright (C) 1998-2003
|
2001-01-25 10:37:55 +01:00
|
|
|
* Christian Schlittchen (corwin@amber.kn-bremen.de)
|
|
|
|
* Katja Zedel (katze@felidae.kn-bremen.de)
|
|
|
|
* Henning Peters (faroul@beyond.kn-bremen.de)
|
|
|
|
* Enno Rehling (enno@eressea-pbem.de)
|
|
|
|
* Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)
|
|
|
|
*
|
|
|
|
* This program may not be used, modified or distributed without
|
|
|
|
* prior permission by the authors of Eressea.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _UMLAUT_H
|
|
|
|
#define _UMLAUT_H
|
2003-07-29 11:48:03 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2001-01-25 10:37:55 +01:00
|
|
|
|
2001-02-15 03:41:47 +01:00
|
|
|
#define E_TOK_NOMATCH (-1)
|
|
|
|
#define E_TOK_SUCCESS 0
|
2001-04-16 16:34:19 +02:00
|
|
|
#define NODEHASHSIZE 7
|
2001-02-15 03:41:47 +01:00
|
|
|
struct tref;
|
|
|
|
|
|
|
|
typedef struct tnode {
|
2001-04-16 16:34:19 +02:00
|
|
|
struct tref * next[NODEHASHSIZE];
|
2001-02-15 03:41:47 +01:00
|
|
|
unsigned char flags;
|
|
|
|
void * id;
|
|
|
|
} tnode;
|
2001-01-25 10:37:55 +01:00
|
|
|
|
2001-04-26 19:41:06 +02:00
|
|
|
int findtoken(const struct tnode * tk, const char * str, void** result);
|
2001-01-25 10:37:55 +01:00
|
|
|
void addtoken(struct tnode * root, const char* str, void * id);
|
|
|
|
|
2003-07-29 11:48:03 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2001-01-25 10:37:55 +01:00
|
|
|
#endif
|