diff -r 2779f4a5f305 -r d699d54d181a stage1_2/create_enumtype_conversion_functions.cc --- a/stage1_2/create_enumtype_conversion_functions.cc Wed Nov 28 22:51:24 2012 +0100 +++ b/stage1_2/create_enumtype_conversion_functions.cc Sun Dec 02 12:30:41 2012 +0100 @@ -196,12 +196,12 @@ IN: ; END_VAR IF IN = THEN - _TO_STRING := ''; + _TO_STRING := '#'; RETURN; END_IF; ... IF IN = THEN - _TO_STRING := ''; + _TO_STRING := '#'; RETURN; END_IF; ENO := FALSE; @@ -219,7 +219,7 @@ for (itr = enumerateValues.begin(); itr != enumerateValues.end(); ++itr) { std::string value = *itr; text += "IF IN = " + value + " THEN\n"; - text += " " + functionName + " := '" + value + "';\n"; + text += " " + functionName + " := '" + enumerateName + "#" + value + "';\n"; text += " RETURN;\n"; text += "END_IF;\n"; }