MCPcopy Create free account
hub / github.com/WheretIB/nullc / remove

Method remove

NULLC/HashMap.h:61–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 entries[bucket] = n;
60 }
61 void remove(unsigned int hash, Value value)
62 {
63 unsigned int bucket = hash & bucketMask;
64 Node *curr = entries[bucket], *prev = NULL;
65 while(curr)
66 {
67 if(curr->hash == hash && curr->value == value)
68 break;
69 prev = curr;
70 curr = curr->next;
71 }
72 assert(curr);
73 if(prev)
74 prev->next = curr->next;
75 else
76 entries[bucket] = curr->next;
77 }
78
79 Value* find(unsigned int hash)
80 {

Callers 11

EndBlockFunction · 0.80
GetCurrentArgumentTypeFunction · 0.80
FunctionPrepareDefaultFunction · 0.80
FunctionPrototypeFunction · 0.80
FunctionStartFunction · 0.80
FunctionEndFunction · 0.80
GetGenericFunctionRatingFunction · 0.80
TypeFinishFunction · 0.80
TypeStopFunction · 0.80
TypeInstanceGenericFunction · 0.80

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected