tests/python/c_code@c_ext/cfile.xml
changeset 1125 1b1472e76f07
parent 1099 d9c28879e55b
child 1401 611fded24ce4
--- a/tests/python/c_code@c_ext/cfile.xml	Mon May 13 14:31:23 2013 +0200
+++ b/tests/python/c_code@c_ext/cfile.xml	Mon May 13 14:36:54 2013 +0200
@@ -1,14 +1,16 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<CodeFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="codefile.xsd">
+<CFile>
   <includes>
-<![CDATA[#include "stdio.h"]]>
+<![CDATA[
+]]>
   </includes>
   <variables>
     <variable name="TestInput" type="SINT" initial="0"/>
     <variable name="TestOutput" type="SINT"/>
   </variables>
   <globals>
-<![CDATA[volatile long Lock=0;
+<![CDATA[
+volatile long Lock=0;
 volatile char PtoC=1,CtoP=2;
 
 extern long AtomicCompareExchange(long*,long, long);
@@ -45,21 +47,27 @@
       return 1;
   }
   return 0;
-}]]>
+}
+]]>
   </globals>
   <initFunction>
-<![CDATA[]]>
+<![CDATA[
+]]>
   </initFunction>
   <cleanUpFunction>
-<![CDATA[]]>
+<![CDATA[
+]]>
   </cleanUpFunction>
   <retrieveFunction>
-<![CDATA[]]>
+<![CDATA[
+]]>
   </retrieveFunction>
   <publishFunction>
-<![CDATA[if(!AtomicCompareExchange((long*)&Lock, 0, 1)){
+<![CDATA[
+if(!AtomicCompareExchange((long*)&Lock, 0, 1)){
     TestInput = CtoP + PtoC + TestOutput;
     AtomicCompareExchange((long*)&Lock, 1, 0);
-}]]>
+}
+]]>
   </publishFunction>
-</CodeFile>
+</CFile>