stage4/generate_c/search_type_code.c
changeset 153 6aed920024f9
parent 149 05ca171a3d57
child 165 83963465b773
equal deleted inserted replaced
152:efc510145ab2 153:6aed920024f9
 13387             if (IN_param_value == NULL)
 13387             if (IN_param_value == NULL)
 13388               IN_param_value = function_call_param_iterator.next();
 13388               IN_param_value = function_call_param_iterator.next();
 13389             symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
 13389             symbol_c *IN_type_symbol = search_expression_type->get_type(IN_param_value);
 13390             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN_type_symbol, last_type_symbol) : IN_type_symbol ;
 13390             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN_type_symbol, last_type_symbol) : IN_type_symbol ;
 13391             
 13391             
 13392             if(search_expression_type->is_num_type(IN_type_symbol))
 13392             
 13393             {
 13393             {
 13394         
 13394         
 13395                 symbol_c * return_type_symbol = last_type_symbol;
 13395                 symbol_c * return_type_symbol = last_type_symbol;
 13396                 return return_type_symbol;
 13396                 return return_type_symbol;
 13397                 
 13397                 
 25639 
 25639 
 25640         {
 25640         {
 25641             symbol_c *IN_type_symbol = param_data_type;
 25641             symbol_c *IN_type_symbol = param_data_type;
 25642             last_type_symbol = param_data_type;
 25642             last_type_symbol = param_data_type;
 25643             
 25643             
 25644             if(search_expression_type->is_num_type(IN_type_symbol))
 25644             
 25645             {
 25645             {
 25646         
 25646         
 25647                 symbol_c * return_type_symbol = last_type_symbol;
 25647                 symbol_c * return_type_symbol = last_type_symbol;
 25648                 return return_type_symbol;
 25648                 return return_type_symbol;
 25649                 
 25649