X-Git-Url: https://git.cworth.org/git?p=wordgame;a=blobdiff_plain;f=dict.c;fp=dict.c;h=a842fa9dbda1863f6e936957c2a61d31d1e05ada;hp=d7edc47a579ba64180e8588074cc97a9d20d1931;hb=c11f1953e31a1baa1d6785757169c7fd35cdc51d;hpb=4a18152043dd8fa417e5b8db7047de2e3998da7b diff --git a/dict.c b/dict.c index d7edc47..a842fa9 100644 --- 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);