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

Function cache_name

v2/engine/hcache.c:76–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 */
75
76static const char * cache_name( void )
77{
78 static OBJECT * name = 0;
79 if ( !name )
80 {
81 LIST * const hcachevar = var_get( root_module(), constant_HCACHEFILE );
82
83 if ( !list_empty( hcachevar ) )
84 {
85 TARGET * const t = bindtarget( list_front( hcachevar ) );
86
87 pushsettings( root_module(), t->settings );
88 /* Do not expect the cache file to be generated, so pass 0 as the
89 * third argument to search. Expect the location to be specified via
90 * LOCATE, so pass 0 as the fourth arugment.
91 */
92 object_free( t->boundname );
93 t->boundname = search( t->name, &t->time, 0, 0 );
94 popsettings( root_module(), t->settings );
95
96 name = object_copy( t->boundname );
97 }
98 }
99 return name ? object_str( name ) : 0;
100}
101
102
103/*

Callers 2

hcache_initFunction · 0.85
hcache_doneFunction · 0.85

Calls 9

var_getFunction · 0.85
root_moduleFunction · 0.85
bindtargetFunction · 0.85
pushsettingsFunction · 0.85
object_freeFunction · 0.85
searchFunction · 0.85
popsettingsFunction · 0.85
object_copyFunction · 0.85
object_strFunction · 0.85

Tested by

no test coverage detected