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

Function arg_list_compile

v2/engine/function.c:3325–3342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3323}
3324
3325static struct arg_list * arg_list_compile( PARSE * parse, int * num_arguments )
3326{
3327 if ( parse )
3328 {
3329 struct argument_list_compiler c[ 1 ];
3330 struct arg_list * result;
3331 argument_list_compiler_init( c );
3332 argument_list_compiler_recurse( c, parse );
3333 *num_arguments = c->args->size;
3334 result = BJAM_MALLOC( c->args->size * sizeof( struct arg_list ) );
3335 memcpy( result, c->args->data, c->args->size * sizeof( struct arg_list )
3336 );
3337 argument_list_compiler_free( c );
3338 return result;
3339 }
3340 *num_arguments = 0;
3341 return 0;
3342}
3343
3344static struct arg_list * arg_list_compile_builtin( char const * * args,
3345 int * num_arguments )

Callers 1

compile_parseFunction · 0.85

Tested by

no test coverage detected