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

Function list_dealloc

v2/engine/lists.c:38–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static void list_dealloc( LIST * l )
39{
40 unsigned size = list_length( l );
41 unsigned bucket;
42 LIST * node = l;
43
44 if ( size == 0 ) return;
45
46 bucket = get_bucket( size );;
47
48#ifdef BJAM_NO_MEM_CACHE
49 BJAM_FREE( node );
50#else
51 node->impl.next = freelist[ bucket ];
52 freelist[ bucket ] = node;
53#endif
54}
55
56/*
57 * list_append() - append a list onto another one, returning total

Callers 4

list_appendFunction · 0.85
list_push_backFunction · 0.85
list_freeFunction · 0.85
list_pop_frontFunction · 0.85

Calls 2

list_lengthFunction · 0.85
get_bucketFunction · 0.85

Tested by

no test coverage detected