# HG changeset patch # User Mario de Sousa # Date 1353947895 0 # Node ID 7b90dd17f0ba7f4c6598086b4f6ca4a2dfc5e87e # Parent 8f05bde3efa8b6665b7c8aca7f6f4d92b8a3115d# Parent 36f91a5e4fc8ce354207c33601f8dae684961f54 merge diff -r 8f05bde3efa8 -r 7b90dd17f0ba stage1_2/create_enumtype_conversion_functions.cc --- a/stage1_2/create_enumtype_conversion_functions.cc Fri Nov 23 09:31:55 2012 +0000 +++ b/stage1_2/create_enumtype_conversion_functions.cc Mon Nov 26 16:38:15 2012 +0000 @@ -47,7 +47,7 @@ "DINT" , "LINT" , "USINT" , - "UNIT" , + "UINT" , "UDINT" , "ULINT" , NULL @@ -157,6 +157,7 @@ STRING_TO_ := ; RETURN; END_IF; + ENO := FALSE; END_FUNCTION Note: if you change code below remember to update this comment. @@ -172,9 +173,10 @@ std::string value = *itr; text += "IF IN = '" + value + "' THEN\n"; text += " " + functionName + " := " + value + ";\n"; - text += " RETURN;\n"; + text += " RETURN;\n"; text += "END_IF;\n"; } + text += "ENO := FALSE;\n"; text += "END_FUNCTION\n\n"; } @@ -196,6 +198,7 @@ _TO_STRING := ''; RETURN; END_IF; + ENO := FALSE; END_FUNCTION Note: if you change code below remember to update this comment. @@ -214,6 +217,7 @@ text += " RETURN;\n"; text += "END_IF;\n"; } + text += "ENO := FALSE;\n"; text += "END_FUNCTION\n\n"; } @@ -235,6 +239,7 @@ _TO_ := ; RETURN; END_IF; + ENO := FALSE; END_FUNCTION Note: if you change code below remember to update this comment. @@ -260,6 +265,7 @@ text += "END_IF;\n"; count++; } + text += "ENO := FALSE;\n"; text += "END_FUNCTION\n\n"; } @@ -281,6 +287,7 @@ _TO_ := N; RETURN; END_IF; + ENO := FALSE; END_FUNCTION Note: if you change code below remember to update this comment. @@ -306,6 +313,7 @@ text += "END_IF;\n"; count++; } + text += "ENO := FALSE;\n"; text += "END_FUNCTION\n\n"; }