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

Function time_enter

v2/engine/timestamp.c:214–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212 */
213
214static void time_enter( void * closure, OBJECT * target, int const found,
215 timestamp const * const time )
216{
217 int item_found;
218 BINDING * b;
219 struct hash * const bindhash = (struct hash *)closure;
220
221 target = path_as_key( target );
222
223 b = (BINDING *)hash_insert( bindhash, target, &item_found );
224 if ( !item_found )
225 {
226 b->name = object_copy( target );
227 b->flags = 0;
228 }
229
230 timestamp_copy( &b->time, time );
231 b->progress = found ? BIND_FOUND : BIND_SPOTTED;
232
233 if ( DEBUG_BINDSCAN )
234 printf( "time ( %s ) : %s\n", object_str( target ), time_progress[
235 b->progress ] );
236
237 object_free( target );
238}
239
240
241/*

Callers

nothing calls this directly

Calls 6

hash_insertFunction · 0.85
object_copyFunction · 0.85
timestamp_copyFunction · 0.85
object_strFunction · 0.85
object_freeFunction · 0.85
path_as_keyFunction · 0.70

Tested by

no test coverage detected