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

Function combine_strings

src/engine/function.c:1202–1222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202static void combine_strings( STACK * s, int n, string * out )
1203{
1204 int i;
1205 for ( i = 0; i < n; ++i )
1206 {
1207 LIST * const values = stack_pop( s );
1208 LISTITER iter = list_begin( values );
1209 LISTITER const end = list_end( values );
1210 if ( iter != end )
1211 {
1212 string_append( out, object_str( list_item( iter ) ) );
1213 for ( iter = list_next( iter ); iter != end; iter = list_next( iter
1214 ) )
1215 {
1216 string_push_back( out, ' ' );
1217 string_append( out, object_str( list_item( iter ) ) );
1218 }
1219 list_free( values );
1220 }
1221 }
1222}
1223
1224struct dynamic_array
1225{

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