stage4/generate_c/generate_c_st.cc
changeset 216 136d6ae70745
parent 208 c72748a12ae3
child 217 f5dfadf5de54
equal deleted inserted replaced
215:15c98c40f6f4 216:136d6ae70745
   504         if (param_value == NULL) {
   504         if (param_value == NULL) {
   505           /* If not, get the default value of this variable's type */
   505           /* If not, get the default value of this variable's type */
   506           param_value = (symbol_c *)param_type->accept(*type_initial_value_c::instance());
   506           param_value = (symbol_c *)param_type->accept(*type_initial_value_c::instance());
   507         }
   507         }
   508         if (param_value == NULL) ERROR;
   508         if (param_value == NULL) ERROR;
       
   509         s4o.print("(");
       
   510         if (search_expression_type->is_literal_integer_type(param_type) ||
       
   511             search_expression_type->is_literal_real_type(param_type)) {
       
   512         	if (function_type_suffix == NULL) ERROR;
       
   513         	function_type_suffix->accept(*this);
       
   514         }
       
   515         else
       
   516         	param_type->accept(*this);
       
   517         s4o.print(")");
   509         if (search_base_type.type_is_subrange(param_type)) {
   518         if (search_base_type.type_is_subrange(param_type)) {
   510           s4o.print("__CHECK_");
   519           s4o.print("__CHECK_");
   511           param_type->accept(*this);
   520           param_type->accept(*this);
   512           s4o.print("(");
   521           s4o.print("(");
   513         }
   522         }