/* * d i c t U n s m u d g e * Completes the definition of a word by linking it * into the main list */ void ficlDictionaryUnsmudge(ficlDictionary *dictionary) { ficlWord *word = dictionary->smudge; ficlHash *hash = dictionary->compilationWordlist; FICL_DICTIONARY_ASSERT(dictionary, hash); FICL_DICTIONARY_ASSERT(dictionary, word); /* * :noname words never get linked into the list... */ if (word->length > 0) ficlHashInsertWord(hash, word); word->flags &= ~(FICL_WORD_SMUDGED); }
FICL_PLATFORM_EXTERN void hashInsertWord(ficlHash *hash, ficlWord *word) { ficlHashInsertWord(hash, word); }