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

Function object_done

v2/engine/object.c:362–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360 */
361
362void object_done()
363{
364#ifdef BJAM_NEWSTR_NO_ALLOCATE
365 unsigned i;
366 for ( i = 0; i < strhash.num; ++i )
367 {
368 while ( strhash.data[ i ] )
369 {
370 struct hash_item * item = strhash.data[ i ];
371 strhash.data[ i ] = item->header.next;
372 BJAM_FREE( item );
373 }
374 }
375#else
376 /* Reclaim string blocks. */
377 while ( strblock_chain )
378 {
379 strblock * const n = strblock_chain->next;
380 BJAM_FREE( strblock_chain );
381 strblock_chain = n;
382 }
383#endif
384
385 string_set_done( &strhash );
386
387 if ( DEBUG_MEM )
388 {
389 printf( "%dK in strings\n", strtotal / 1024 );
390 if ( strcount_in != strcount_out )
391 printf( "--- %d strings of %d dangling\n", strcount_in -
392 strcount_out, strcount_in );
393 }
394}

Callers 1

mainFunction · 0.85

Calls 1

string_set_doneFunction · 0.85

Tested by

no test coverage detected