stage3/fill_candidate_datatypes.cc
changeset 1012 1f2af384fb1f
parent 996 c752b113237b
child 1017 3f12e23b253b
equal deleted inserted replaced
1011:76175defb87b 1012:1f2af384fb1f
  2168 
  2168 
  2169 
  2169 
  2170 void *fill_candidate_datatypes_c::visit(function_invocation_c *symbol) {
  2170 void *fill_candidate_datatypes_c::visit(function_invocation_c *symbol) {
  2171 	if      (NULL != symbol->formal_param_list)        symbol->   formal_param_list->accept(*this);
  2171 	if      (NULL != symbol->formal_param_list)        symbol->   formal_param_list->accept(*this);
  2172 	else if (NULL != symbol->nonformal_param_list)     symbol->nonformal_param_list->accept(*this);
  2172 	else if (NULL != symbol->nonformal_param_list)     symbol->nonformal_param_list->accept(*this);
  2173 	else ERROR;
  2173 	// else ERROR;  NOTE-> We support the non-standard feature of POUS with no in, out and inout parameters, so this is no longer an internal error!
  2174 
  2174 
  2175 	generic_function_call_t fcall_param = {
  2175 	generic_function_call_t fcall_param = {
  2176 			  function_name:                symbol->function_name,
  2176 			  function_name:                symbol->function_name,
  2177 			  nonformal_operand_list:       symbol->nonformal_param_list,
  2177 			  nonformal_operand_list:       symbol->nonformal_param_list,
  2178 			  formal_operand_list:          symbol->formal_param_list,
  2178 			  formal_operand_list:          symbol->formal_param_list,