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

Function list_copy

v2/engine/lists.c:143–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 */
142
143LIST * list_copy( LIST * l )
144{
145 int size = list_length( l );
146 int i;
147 LIST * result;
148
149 if ( size == 0 ) return L0;
150
151 result = list_alloc( size );
152 result->impl.size = size;
153 for ( i = 0; i < size; ++i )
154 list_begin( result )[ i ] = object_copy( list_begin( l )[ i ] );
155 return result;
156}
157
158
159LIST * list_copy_range( LIST * l, LISTITER first, LISTITER last )

Callers 10

hcacheFunction · 0.85
list_sortFunction · 0.85
make1cmdsFunction · 0.85
copysettingsFunction · 0.85
cmd_newFunction · 0.85
builtin_updateFunction · 0.85
frame_get_localFunction · 0.85
function_get_variableFunction · 0.85
function_runFunction · 0.85

Calls 4

list_lengthFunction · 0.85
list_allocFunction · 0.85
list_beginFunction · 0.85
object_copyFunction · 0.85

Tested by

no test coverage detected