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

Function bindtarget

v2/engine/rules.c:157–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 */
156
157TARGET * bindtarget( OBJECT * const target_name )
158{
159 int found;
160 TARGET * t;
161
162 if ( !targethash )
163 targethash = hashinit( sizeof( TARGET ), "targets" );
164
165 t = (TARGET *)hash_insert( targethash, target_name, &found );
166 if ( !found )
167 {
168 memset( (char *)t, '\0', sizeof( *t ) );
169 t->name = object_copy( target_name );
170 t->boundname = object_copy( t->name ); /* default for T_FLAG_NOTFILE */
171 }
172
173 return t;
174}
175
176
177static void bind_explicitly_located_target( void * xtarget, void * data )

Callers 15

cache_nameFunction · 0.85
make1Function · 0.85
make1c_closureFunction · 0.85
push_cmdsFunction · 0.85
make1settingsFunction · 0.85
touch_targetFunction · 0.85
targetlistFunction · 0.85
makeFunction · 0.85
make0Function · 0.85
builtin_dependsFunction · 0.85
builtin_rebuildsFunction · 0.85
builtin_flagsFunction · 0.85

Calls 3

hashinitFunction · 0.85
hash_insertFunction · 0.85
object_copyFunction · 0.85

Tested by

no test coverage detected