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

Function combine_strings

v2/engine/function.c:1243–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241}
1242
1243static void combine_strings( STACK * s, int n, string * out )
1244{
1245 int i;
1246 for ( i = 0; i < n; ++i )
1247 {
1248 LIST * const values = stack_pop( s );
1249 LISTITER iter = list_begin( values );
1250 LISTITER const end = list_end( values );
1251 if ( iter != end )
1252 {
1253 string_append( out, object_str( list_item( iter ) ) );
1254 for ( iter = list_next( iter ); iter != end; iter = list_next( iter
1255 ) )
1256 {
1257 string_push_back( out, ' ' );
1258 string_append( out, object_str( list_item( iter ) ) );
1259 }
1260 list_free( values );
1261 }
1262 }
1263}
1264
1265struct dynamic_array
1266{

Callers 1

function_runFunction · 0.85

Calls 7

stack_popFunction · 0.85
list_beginFunction · 0.85
list_endFunction · 0.85
string_appendFunction · 0.85
object_strFunction · 0.85
string_push_backFunction · 0.85
list_freeFunction · 0.85

Tested by

no test coverage detected