| 1327 | } |
| 1328 | |
| 1329 | static void combine_strings( STACK * s, int32_t n, string * out ) |
| 1330 | { |
| 1331 | int32_t i; |
| 1332 | for ( i = 0; i < n; ++i ) |
| 1333 | { |
| 1334 | LIST * const values = stack_pop( s ); |
| 1335 | LISTITER iter = list_begin( values ); |
| 1336 | LISTITER const end = list_end( values ); |
| 1337 | if ( iter != end ) |
| 1338 | { |
| 1339 | string_append( out, object_str( list_item( iter ) ) ); |
| 1340 | for ( iter = list_next( iter ); iter != end; iter = list_next( iter |
| 1341 | ) ) |
| 1342 | { |
| 1343 | string_push_back( out, ' ' ); |
| 1344 | string_append( out, object_str( list_item( iter ) ) ); |
| 1345 | } |
| 1346 | list_free( values ); |
| 1347 | } |
| 1348 | } |
| 1349 | } |
| 1350 | |
| 1351 | struct dynamic_array |
| 1352 | { |
no test coverage detected