[phrases] Adding num_keys attribute to trie

This commit is contained in:
Al
2015-08-31 21:41:34 -04:00
parent aac5b37e76
commit a8f6617294
2 changed files with 17 additions and 8 deletions

View File

@@ -75,6 +75,7 @@ typedef struct trie {
char *alphabet;
uint8_t alpha_map[NUM_CHARS];
int alphabet_size;
uint32_t num_keys;
} trie_t;
trie_t *trie_new_alphabet(uint8_t *alphabet, uint32_t alphabet_size);