/* * set_rule_body() - set the argument list and procedure of the given rule */ static void set_rule_body( RULE* rule, argument_list* args, PARSE* procedure ) { if ( args ) args_refer( args ); if ( rule->arguments ) args_free( rule->arguments ); rule->arguments = args; if ( procedure ) parse_refer( procedure ); if ( rule->procedure ) parse_free( rule->procedure ); rule->procedure = procedure; }
static void set_rule_body( RULE * rule, argument_list * args, FUNCTION * procedure ) { if ( args ) args_refer( args ); if ( rule->arguments ) args_free( rule->arguments ); rule->arguments = args; if ( procedure ) function_refer( procedure ); if ( rule->procedure ) function_free( rule->procedure ); rule->procedure = procedure; }