ficlDictionary * ficlDictionaryCreateHashed(ficlSystem *system, unsigned size, unsigned bucketCount) { ficlDictionary *dictionary; size_t nAlloc; nAlloc = sizeof (ficlDictionary) + (size * sizeof (ficlCell)) + sizeof (ficlHash) + (bucketCount - 1) * sizeof (ficlWord *); dictionary = ficlMalloc(nAlloc); FICL_SYSTEM_ASSERT(system, dictionary != NULL); dictionary->size = size; dictionary->system = system; ficlDictionaryEmpty(dictionary, bucketCount); return (dictionary); }
FICL_PLATFORM_EXTERN void dictEmpty (ficlDictionary *dictionary, unsigned nHash) { ficlDictionaryEmpty(dictionary, nHash); }