stage4/generate_c/search_type_code.c
changeset 165 83963465b773
parent 153 6aed920024f9
child 169 bea932bc60b0
equal deleted inserted replaced
164:a0679c78143a 165:83963465b773
 13334             if (IN1_param_value == NULL)
 13334             if (IN1_param_value == NULL)
 13335               IN1_param_value = function_call_param_iterator.next();
 13335               IN1_param_value = function_call_param_iterator.next();
 13336             symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
 13336             symbol_c *IN1_type_symbol = search_expression_type->get_type(IN1_param_value);
 13337             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN1_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN1_type_symbol, last_type_symbol) : IN1_type_symbol ;
 13337             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(IN1_type_symbol, last_type_symbol) ? search_expression_type->common_type(IN1_type_symbol, last_type_symbol) : IN1_type_symbol ;
 13338             
 13338             
 13339             if(search_expression_type->is_num_type(IN1_type_symbol))
 13339             if(search_expression_type->is_real_type(IN1_type_symbol))
 13340             {
 13340             {
 13341         
 13341         
 13342                 {
 13342                 {
 13343                     identifier_c param_name("IN2");
 13343                     identifier_c param_name("IN2");
 13344                     /* Get the value from a foo(<param_name> = <param_value>) style call */
 13344                     /* Get the value from a foo(<param_name> = <param_value>) style call */
 25593 
 25593 
 25594         {
 25594         {
 25595             symbol_c *IN1_type_symbol = param_data_type;
 25595             symbol_c *IN1_type_symbol = param_data_type;
 25596             last_type_symbol = param_data_type;
 25596             last_type_symbol = param_data_type;
 25597             
 25597             
 25598             if(search_expression_type->is_num_type(IN1_type_symbol))
 25598             if(search_expression_type->is_real_type(IN1_type_symbol))
 25599             {
 25599             {
 25600         
 25600         
 25601                 {
 25601                 {
 25602                     identifier_c param_name("IN2");
 25602                     identifier_c param_name("IN2");
 25603                     /* Get the value from a foo(<param_name> = <param_value>) style call */
 25603                     /* Get the value from a foo(<param_name> = <param_value>) style call */