MCPcopy Create free account
hub / github.com/boostorg/build / hash_search

Function hash_search

v2/engine/hash.c:125–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 */
124
125static ITEM * hash_search( struct hash * hp, unsigned int keyval,
126 OBJECT * keydata, ITEM * * previous )
127{
128 ITEM * i = *hash_bucket( hp, keyval );
129 ITEM * p = 0;
130 for ( ; i; i = i->next )
131 {
132 if ( object_equal( hash_item_key( i ), keydata ) )
133 {
134 if ( previous )
135 *previous = p;
136 return i;
137 }
138 p = i;
139 }
140 return 0;
141}
142
143
144/*

Callers 2

hash_insertFunction · 0.85
hash_findFunction · 0.85

Calls 1

object_equalFunction · 0.85

Tested by

no test coverage detected