Fixes to make handling of standard functions in Semantic analyser compatible with code generation of standard functions
--- a/lib/iec_std_lib.h Mon Apr 04 13:25:39 2011 +0200
+++ b/lib/iec_std_lib.h Mon Apr 04 17:13:03 2011 +0200
@@ -791,7 +791,7 @@
return res;
}
-/* workaround for va-atgs limitation on shorter that int params */
+/* workaround for va-args limitation on shorter than int params */
#define VA_ARGS_REAL LREAL
#define VA_ARGS_LREAL LREAL
#define VA_ARGS_SINT DINT
--- a/lib/ieclib.txt Mon Apr 04 13:25:39 2011 +0200
+++ b/lib/ieclib.txt Mon Apr 04 17:13:03 2011 +0200
@@ -35,7 +35,7 @@
*)
(* The standard functions *)
-{#include "standard_functions.txt" }
+(*{#include "standard_functions.txt" }*)
(* The standard function blocks *)
{#include "edge_detection.txt" }
--- a/stage1_2/standard_function_names.c Mon Apr 04 13:25:39 2011 +0200
+++ b/stage1_2/standard_function_names.c Mon Apr 04 17:13:03 2011 +0200
@@ -36,7 +36,6 @@
const char *standard_function_names[] = {
-/*
"REAL_TO_SINT",
"REAL_TO_LINT",
"REAL_TO_DINT",
@@ -401,7 +400,6 @@
"INT_TO_ULINT",
"INT_TO_BOOL",
"INT_TO_TIME",
-*/
"TRUNC",
"BCD_TO_UDINT",
"BCD_TO_UINT",
@@ -411,10 +409,8 @@
"UINT_TO_BCD",
"USINT_TO_BCD",
"ULINT_TO_BCD",
-/*
"DATE_AND_TIME_TO_TIME_OF_DAY",
"DATE_AND_TIME_TO_DATE",
-*/
"ABS",
"SQRT",
"LN",