stage4/generate_c/generate_c_st.cc
changeset 228 43831b683764
parent 226 29f8ffc203c1
child 231 b8527b0abe75
equal deleted inserted replaced
227:560c1231ad1f 228:43831b683764
   811     /* now output the value assignment */
   811     /* now output the value assignment */
   812     if (param_value != NULL)
   812     if (param_value != NULL)
   813       if ((param_direction == function_param_iterator_c::direction_in) ||
   813       if ((param_direction == function_param_iterator_c::direction_in) ||
   814           (param_direction == function_param_iterator_c::direction_inout)) {
   814           (param_direction == function_param_iterator_c::direction_inout)) {
   815         if (this->is_variable_prefix_null()) {
   815         if (this->is_variable_prefix_null()) {
   816           print_variable_prefix();
       
   817           symbol->fb_name->accept(*this);
   816           symbol->fb_name->accept(*this);
   818           s4o.print(".");
   817           s4o.print(".");
   819           param_name->accept(*this);
   818           param_name->accept(*this);
   820           s4o.print(" = ");
   819           s4o.print(" = ");
   821           print_check_function(param_type, param_value);
   820           print_check_function(param_type, param_value);
   822         }
   821         }
   823         else {
   822         else {
   824         	print_setter(param_name, param_type, param_value, symbol->fb_name);
   823           print_setter(param_name, param_type, param_value, symbol->fb_name);
   825         }
   824         }
   826         s4o.print(";\n" + s4o.indent_spaces);
   825         s4o.print(";\n" + s4o.indent_spaces);
   827       }
   826       }
   828   } /* for(...) */
   827   } /* for(...) */
   829 
   828