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

Function freetarget

v2/engine/rules.c:461–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459
460
461static void freetarget( void * xt, void * data )
462{
463 TARGET * const t = (TARGET *)xt;
464 if ( t->name ) object_free ( t->name );
465 if ( t->boundname ) object_free ( t->boundname );
466 if ( t->settings ) freesettings( t->settings );
467 if ( t->depends ) freetargets ( t->depends );
468 if ( t->dependants ) freetargets ( t->dependants );
469 if ( t->parents ) freetargets ( t->parents );
470 if ( t->actions ) freeactions ( t->actions );
471 if ( t->includes )
472 {
473 freetarget( t->includes, (void *)0 );
474 BJAM_FREE( t->includes );
475 }
476}
477
478
479/*

Callers

nothing calls this directly

Calls 4

object_freeFunction · 0.85
freesettingsFunction · 0.85
freetargetsFunction · 0.85
freeactionsFunction · 0.85

Tested by

no test coverage detected