MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / bm_DeleteHashTable

Function bm_DeleteHashTable

bitmap/bitmain.cpp:350–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348 }
349}
350void bm_DeleteHashTable() {
351 if (bm_hashTable) {
352 int idx;
353 for (idx = 0; idx < bm_hashTableSize; idx++) {
354 if (bm_hashTable[idx]) {
355 bm_Node *curr, *next;
356 curr = bm_hashTable[idx];
357 while (curr) {
358 next = curr->next;
359 mem_free(curr);
360 curr = next;
361 }
362 bm_hashTable[idx] = NULL;
363 }
364 }
365
366 mem_free(bm_hashTable);
367 bm_hashTable = NULL;
368 }
369}
370
371bm_hashTableIndex bm_hash(bm_T data) {
372 /***********************************

Callers 1

bm_ShutdownBitmapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected