X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=dict.h;h=ca0e6f6e9a209efe442a3ea8083e0d2480cc7e1b;hb=6717cd95edcf1332c81daaa6c608c293dc8ffb4a;hp=ccc0c0b8af961570514fd232fe1e29efde80ab71;hpb=2d604d8b8a380f7f3028c234282bfdcf12f95dad;p=wordgame diff --git a/dict.h b/dict.h index ccc0c0b..ca0e6f6 100644 --- a/dict.h +++ b/dict.h @@ -19,9 +19,23 @@ #ifndef _DICT_H_ #define _DICT_H_ -#include "dict-impl.h" +#include + +#ifndef FALSE +# define FALSE 0 +#endif + +#ifndef TRUE +# define TRUE 1 +#endif + +typedef int bool_t; + +typedef struct _trie { + uint32_t flags; + struct _trie *next[26]; +} trie_t; -/* Only looks opaque. Perfectly stack-allocatable */ typedef trie_t dict_t; typedef trie_t *dict_cursor_t; typedef uint32_t dict_entry_t;