MCPcopy Create free account
hub / github.com/audacity/audacity / idxHashClear

Function idxHashClear

lib-src/sqlite/shell.c:8555–8567  ·  view source on GitHub ↗

** Reset an IdxHash hash table. */

Source from the content-addressed store, hash-verified

8553** Reset an IdxHash hash table.
8554*/
8555static void idxHashClear(IdxHash *pHash){
8556 int i;
8557 for(i=0; i<IDX_HASH_SIZE; i++){
8558 IdxHashEntry *pEntry;
8559 IdxHashEntry *pNext;
8560 for(pEntry=pHash->aHash[i]; pEntry; pEntry=pNext){
8561 pNext = pEntry->pHashNext;
8562 sqlite3_free(pEntry->zVal2);
8563 sqlite3_free(pEntry);
8564 }
8565 }
8566 memset(pHash, 0, sizeof(IdxHash));
8567}
8568
8569/*
8570** Return the index of the hash bucket that the string specified by the

Callers 2

idxFindIndexesFunction · 0.85
sqlite3_expert_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected