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

Function function_compile_actions

src/engine/function.c:2972–2990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2970}
2971
2972FUNCTION * function_compile_actions( char const * actions, OBJECT * file,
2973 int line )
2974{
2975 compiler c[ 1 ];
2976 JAM_FUNCTION * result;
2977 VAR_PARSE_ACTIONS * parse;
2978 current_file = object_str( file );
2979 current_line = line;
2980 parse = parse_actions( actions );
2981 compiler_init( c );
2982 var_parse_actions_compile( parse, c );
2983 var_parse_actions_free( parse );
2984 compile_emit( c, INSTR_RETURN, 0 );
2985 result = compile_to_function( c );
2986 compiler_free( c );
2987 result->file = object_copy( file );
2988 result->line = line;
2989 return (FUNCTION *)result;
2990}
2991
2992static void argument_list_print( struct arg_list * args, int num_args );
2993

Callers 2

bjam_define_actionFunction · 0.85
compile_emit_actionsFunction · 0.85

Calls 9

object_strFunction · 0.85
parse_actionsFunction · 0.85
compiler_initFunction · 0.85
var_parse_actions_freeFunction · 0.85
compile_emitFunction · 0.85
compile_to_functionFunction · 0.85
compiler_freeFunction · 0.85
object_copyFunction · 0.85

Tested by

no test coverage detected