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

Function freetarget

src/engine/rules.cpp:460–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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