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

Function list_dealloc

src/engine/lists.cpp:39–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39static void list_dealloc( LIST * l )
40{
41 int32_t size = list_length( l );
42 int32_t bucket;
43 LIST * node = l;
44
45 if ( size == 0 ) return;
46
47 bucket = get_bucket( size );;
48
49#ifdef BJAM_NO_MEM_CACHE
50 BJAM_FREE( node );
51#else
52 node->impl.next = freelist[ bucket ];
53 freelist[ bucket ] = node;
54#endif
55}
56
57/*
58 * 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