server/src/common/util/umlaut.h

39 lines
895 B
C
Raw Normal View History

2001-01-25 10:37:55 +01:00
/* vi: set ts=2:
*
*
* 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
#ifdef __cplusplus
extern "C" {
#endif
2001-01-25 10:37:55 +01:00
#define E_TOK_NOMATCH (-1)
#define E_TOK_SUCCESS 0
#define NODEHASHSIZE 7
struct tref;
typedef struct tnode {
struct tref * next[NODEHASHSIZE];
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);
#ifdef __cplusplus
}
#endif
2001-01-25 10:37:55 +01:00
#endif