equal
deleted
inserted
replaced
98 /* file with declaration of token constants. Generated by bison! */ |
98 /* file with declaration of token constants. Generated by bison! */ |
99 #include "iec_bison.h" |
99 #include "iec_bison.h" |
100 |
100 |
101 /* The interface through which bison and flex interact. */ |
101 /* The interface through which bison and flex interact. */ |
102 #include "stage1_2_priv.hh" |
102 #include "stage1_2_priv.hh" |
103 #include "derived_conversion_functions.hh" |
103 #include "create_enumtype_conversion_functions.hh" |
104 |
104 |
105 #include "../absyntax_utils/add_en_eno_param_decl.hh" /* required for add_en_eno_param_decl_c */ |
105 #include "../absyntax_utils/add_en_eno_param_decl.hh" /* required for add_en_eno_param_decl_c */ |
106 |
106 |
107 /* an ugly hack!! |
107 /* an ugly hack!! |
108 * We will probably not need it when we decide |
108 * We will probably not need it when we decide |
8410 void add_enumtype_conversion_functions(const char * dname) { |
8410 void add_enumtype_conversion_functions(const char * dname) { |
8411 std::string strname; |
8411 std::string strname; |
8412 std::string tmp; |
8412 std::string tmp; |
8413 |
8413 |
8414 strname = dname; |
8414 strname = dname; |
8415 for (int i = 0; derived_conversion_functions_c::functionDataType[i] != NULL; i++) { |
8415 for (int i = 0; create_enumtype_conversion_functions_c::functionDataType[i] != NULL; i++) { |
8416 tmp = strname + std::string("_TO_") + derived_conversion_functions_c::functionDataType[i]; |
8416 tmp = strname + std::string("_TO_") + create_enumtype_conversion_functions_c::functionDataType[i]; |
8417 library_element_symtable.insert(tmp.c_str(), prev_declared_derived_function_name_token); |
8417 library_element_symtable.insert(tmp.c_str(), prev_declared_derived_function_name_token); |
8418 tmp = derived_conversion_functions_c::functionDataType[i] + std::string("_TO_") + strname; |
8418 |
|
8419 tmp = create_enumtype_conversion_functions_c::functionDataType[i] + std::string("_TO_") + strname; |
8419 library_element_symtable.insert(tmp.c_str(), prev_declared_derived_function_name_token); |
8420 library_element_symtable.insert(tmp.c_str(), prev_declared_derived_function_name_token); |
8420 } |
8421 } |
8421 } |
8422 } |
8422 |
8423 |
8423 |
8424 |