]> git.cworth.org Git - wordgame/blobdiff - dict.h
Move private portions of dict from dict-impl.h back to dict.c
[wordgame] / dict.h
diff --git a/dict.h b/dict.h
index ccc0c0b8af961570514fd232fe1e29efde80ab71..ca0e6f6e9a209efe442a3ea8083e0d2480cc7e1b 100644 (file)
--- a/dict.h
+++ b/dict.h
 #ifndef _DICT_H_
 #define _DICT_H_
 
-#include "dict-impl.h"
+#include <stdint.h>
+
+#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;