]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
An evil optimization to the trie, now has a fixed amount of branches and uses a char...
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index 11c3a3eb5e286475ed90a103351a57a59ea77fb7..f26152f093e3b613fd7c82f3c5a1c26779bd98ac 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -316,9 +316,8 @@ void _util_vec_grow(void **a, size_t i, size_t s);
 #define vec_remove(A,I,N) memmove((A)+(I),(A)+((I)+(N)),sizeof(*(A))*(vec_meta(A)->used-(I)-(N))),vec_meta(A)->used-=(N)
 
 typedef struct trie_s {
-    struct trie_s *entries;
-    unsigned char  ch;
     void          *value;
+    struct trie_s *entries;
 } correct_trie_t;
 
 correct_trie_t* correct_trie_new();