# HG changeset patch # User Edouard Tisserant # Date 1301929983 -7200 # Node ID 4f281513277f2c9a66b072edad9c40bfbff0bc72 # Parent f1674941c3adc21c0a69628c36d330022fd53554 Fixes to make handling of standard functions in Semantic analyser compatible with code generation of standard functions diff -r f1674941c3ad -r 4f281513277f lib/iec_std_lib.h --- 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 diff -r f1674941c3ad -r 4f281513277f lib/ieclib.txt --- 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" } diff -r f1674941c3ad -r 4f281513277f stage1_2/standard_function_names.c --- 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",