]> git.cworth.org Git - wordgame/blobdiff - dict.c
Pass the dict entry flags to the for_each callback
[wordgame] / dict.c
diff --git a/dict.c b/dict.c
index d7edc47a579ba64180e8588074cc97a9d20d1931..a842fa9dbda1863f6e936957c2a61d31d1e05ada 100644 (file)
--- a/dict.c
+++ b/dict.c
@@ -226,7 +226,7 @@ trie_for_each (trie_t               *trie,
     {
        count = 1;
 
-       action (closure, string->s);
+       action (closure, string->s, &trie->flags);
     }
 
     if (length == max_length)
@@ -442,7 +442,7 @@ dict_for_each_by_length (dict_t             *dict,
 }
 
 static void
-dict_action_print (void *closure, char *word)
+dict_action_print (void *closure, char *word, dict_entry_t *entry)
 {
     int *length_of_last = closure;
     int length = strlen (word);