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

Function hashenumerate

v2/engine/hash.c:276–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274
275
276void hashenumerate( struct hash * hp, void (* f)( void *, void * ), void * data
277 )
278{
279 int i;
280 for ( i = 0; i <= hp->items.list; ++i )
281 {
282 char * next = hp->items.lists[ i ].base;
283 int nel = hp->items.lists[ i ].nel;
284 if ( i == hp->items.list )
285 nel -= hp->items.more;
286
287 for ( ; nel--; next += hp->items.size )
288 {
289 ITEM * const i = (ITEM *)next;
290 if ( hash_item_key( i ) != 0 ) /* Do not enumerate freed items. */
291 f( hash_item_data( i ), data );
292 }
293 }
294}
295
296
297/*

Callers 15

file_doneFunction · 0.85
regex_doneFunction · 0.85
path_doneFunction · 0.85
timestamp_doneFunction · 0.85
var_doneFunction · 0.85
delete_moduleFunction · 0.85
modules_doneFunction · 0.85
imported_modulesFunction · 0.85
module_bind_variablesFunction · 0.85
rules_doneFunction · 0.85

Calls 1

fFunction · 0.50

Tested by

no test coverage detected