MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / idxHashClear

Function idxHashClear

modules/dasSQLITE/sqlite/shell.c:10398–10410  ·  view source on GitHub ↗

** Reset an IdxHash hash table. */

Source from the content-addressed store, hash-verified

10396** Reset an IdxHash hash table.
10397*/
10398static void idxHashClear(IdxHash *pHash){
10399 int i;
10400 for(i=0; i<IDX_HASH_SIZE; i++){
10401 IdxHashEntry *pEntry;
10402 IdxHashEntry *pNext;
10403 for(pEntry=pHash->aHash[i]; pEntry; pEntry=pNext){
10404 pNext = pEntry->pHashNext;
10405 sqlite3_free(pEntry->zVal2);
10406 sqlite3_free(pEntry);
10407 }
10408 }
10409 memset(pHash, 0, sizeof(IdxHash));
10410}
10411
10412/*
10413** 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