server/src/common/util/umlaut.h

32 lines
838 B
C
Raw Normal View History

2001-01-25 10:37:55 +01:00
/* vi: set ts=2:
*
2001-01-26 17:19:41 +01:00
* $Id: umlaut.h,v 1.2 2001/01/26 16:19:41 enno Exp $
2001-01-25 10:37:55 +01:00
* Eressea PB(E)M host Copyright (C) 1998-2000
* 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
typedef struct tnode tnode;
struct tnode {
struct tnode * nexthash;
struct tnode * next[32];
void * id;
char c;
unsigned char leaf;
};
#define E_TOK_NOMATCH NULL
void * findtoken(struct tnode * tk, const char * str);
void addtoken(struct tnode * root, const char* str, void * id);
#endif