generate_IEC_std.py
changeset 548 0b6ab74f4b89
parent 542 cce4903be769
equal deleted inserted replaced
547:2faf0964feb2 548:0b6ab74f4b89
   140     /* Get the value from a foo(<param_name> = <param_value>) style call */
   140     /* Get the value from a foo(<param_name> = <param_value>) style call */
   141     symbol_c *%(input_name)s_param_value = &this->default_variable_name;
   141     symbol_c *%(input_name)s_param_value = &this->default_variable_name;
   142 """%{"input_name":Paramname}
   142 """%{"input_name":Paramname}
   143                 res += """
   143                 res += """
   144     symbol_c *%(input_name)s_type_symbol = param_data_type;
   144     symbol_c *%(input_name)s_type_symbol = param_data_type;
   145     last_type_symbol = param_data_type;
   145     last_type_symbol = %(input_name)s_type_symbol;
   146 """%{"input_name":Paramname}
   146 """%{"input_name":Paramname}
   147             else:
   147             else:
   148                 res += """
   148                 res += """
   149 {
   149 {
   150     symbol_c *%(input_name)s_param_name = (symbol_c *)(new identifier_c("%(input_name)s"));
   150     symbol_c *%(input_name)s_param_name = (symbol_c *)(new identifier_c("%(input_name)s"));