--- a/generate_IEC_std.py Thu Aug 02 16:51:58 2007 +0200
+++ b/generate_IEC_std.py Thu Aug 02 17:54:42 2007 +0200
@@ -70,6 +70,32 @@
"""
+matiec_lesser_header = """/*
+ * (c) 2003 Mario de Sousa
+ *
+ * Offered to the public under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
+ * General Public License for more details.
+ *
+ * This code is made available on the understanding that it will not be
+ * used in safety-critical situations without a full and competent review.
+ */
+
+/*
+ * An IEC 61131-3 IL and ST compiler.
+ *
+ * Based on the
+ * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10)
+ *
+ */
+
+ """
+
def ANY_to_compiler_test_type_GEN(typename, paramname):
"""
Convert ANY_XXX IEC type declaration into IEC2CC's generated type test.
@@ -365,7 +391,7 @@
Generate the part of search_expression_type_c::visit(function_invocation)
that is responsible of returning type symbol for function invocation.
"""
-search_type_code = matiec_header + """
+search_type_code = matiec_header + """
/****
* IEC 61131-3 standard function lib
* generated code, do not edit by hand
@@ -444,7 +470,7 @@
"""
Generate the standard_function_names[] for inclusion in bizon generated code
"""
-standard_function_names = """
+standard_function_names = matiec_header + """
/****
* IEC 61131-3 standard function lib
* generated code, do not edit by hand
@@ -467,7 +493,7 @@
"""
Generate the C implementation of the IEC standard function library.
"""
-iec_std_lib_generated = matiec_header + """
+iec_std_lib_generated = matiec_lesser_header + """
/****
* IEC 61131-3 standard function lib
* generated code, do not edit by hand