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

Function arg_list_compile

src/engine/function.cpp:3598–3615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3596}
3597
3598static struct arg_list * arg_list_compile( PARSE * parse, int32_t * num_arguments )
3599{
3600 if ( parse )
3601 {
3602 struct argument_list_compiler c[ 1 ];
3603 struct arg_list * result;
3604 argument_list_compiler_init( c );
3605 argument_list_compiler_recurse( c, parse );
3606 *num_arguments = c->args->size;
3607 result = (struct arg_list*)BJAM_MALLOC( c->args->size * sizeof( struct arg_list ) );
3608 memcpy( result, c->args->data, c->args->size * sizeof( struct arg_list )
3609 );
3610 argument_list_compiler_free( c );
3611 return result;
3612 }
3613 *num_arguments = 0;
3614 return 0;
3615}
3616
3617static struct arg_list * arg_list_compile_builtin( char const * * args,
3618 int32_t * num_arguments )

Callers 1

compile_parseFunction · 0.85

Tested by

no test coverage detected