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

Function bm_findNode

bitmap/bitmain.cpp:427–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425 mem_free(p);
426}
427bm_Node *bm_findNode(bm_T data) {
428 bm_Node *p;
429 if (!bm_hashTable)
430 return NULL;
431 /*******************************
432 * find bm_Node containing data *
433 *******************************/
434 p = bm_hashTable[bm_hash(data)];
435 while (p && !compEQ(p->data, data))
436 p = p->next;
437 return p;
438}
439// simply frees up a bitmap
440void bm_FreeBitmapMain(int handle);
441// Sets all the bitmaps to unused

Callers 1

bm_FindBitmapNameFunction · 0.85

Calls 1

bm_hashFunction · 0.85

Tested by

no test coverage detected