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

Function arg_list_compile

src/engine/function.c:3424–3441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3422}
3423
3424static struct arg_list * arg_list_compile( PARSE * parse, int * num_arguments )
3425{
3426 if ( parse )
3427 {
3428 struct argument_list_compiler c[ 1 ];
3429 struct arg_list * result;
3430 argument_list_compiler_init( c );
3431 argument_list_compiler_recurse( c, parse );
3432 *num_arguments = c->args->size;
3433 result = BJAM_MALLOC( c->args->size * sizeof( struct arg_list ) );
3434 memcpy( result, c->args->data, c->args->size * sizeof( struct arg_list )
3435 );
3436 argument_list_compiler_free( c );
3437 return result;
3438 }
3439 *num_arguments = 0;
3440 return 0;
3441}
3442
3443static struct arg_list * arg_list_compile_builtin( char const * * args,
3444 int * num_arguments )

Callers 1

compile_parseFunction · 0.85

Tested by

no test coverage detected