Fixed dead code in c_ext, and updated test accordingly
authorEdouard Tisserant
Mon, 04 Mar 2013 12:22:49 +0900
changeset 953 1fb6cf5a4c4d
parent 952 c1f901403a34
child 954 ab487d32ce9a
Fixed dead code in c_ext, and updated test accordingly
c_ext/c_ext.py
tests/python/c_code@c_ext/cfile.xml
--- a/c_ext/c_ext.py	Thu Feb 28 00:20:05 2013 +0100
+++ b/c_ext/c_ext.py	Mon Mar 04 12:22:49 2013 +0900
@@ -184,14 +184,7 @@
         text += self.CFile.includes.gettext()
         text += "\n"
         
-        text += """/* Beremiz c_ext confnode includes */
-#ifdef _WINDOWS_H
-  #include "iec_types.h"
-#else
-  #include "iec_std_lib.h"
-#endif
-
-"""
+        text += '#include "iec_types.h"'
 
         # Adding variables
         vars = []
--- a/tests/python/c_code@c_ext/cfile.xml	Thu Feb 28 00:20:05 2013 +0100
+++ b/tests/python/c_code@c_ext/cfile.xml	Mon Mar 04 12:22:49 2013 +0900
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <CFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="cext_xsd.xsd">
   <includes>
-<![CDATA[]]>
+<![CDATA[#include "stdio.h"]]>
   </includes>
   <variables>
     <variable name="TestInput" type="SINT" class="input"/>