]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - docs/developer/XMLPush/XMLPush.cpp
more eol-style
[xonotic/netradiant.git] / docs / developer / XMLPush / XMLPush.cpp
index 9edc3c638aaab89b516c4ab5e630d15a40ed72d0..c3a9ec0e9db44fbec4bba1cbbe325b1240d35eac 100644 (file)
@@ -1,30 +1,30 @@
-// XMLPush.cpp : Defines the entry point for the console application.\r
-//\r
-\r
-#include "stdafx.h"\r
-\r
-int main(int argc, char* argv[])\r
-{\r
-  FILE *f;\r
-  xmlDocPtr doc;\r
-  \r
-  f = fopen("XMLDump.xml", "r");\r
-  if (f != NULL) {\r
-    int res, size = 1024;\r
-    char chars[1024];\r
-    xmlParserCtxtPtr ctxt;\r
-    \r
-    res = fread(chars, 1, 4, f);\r
-    if (res > 0) {\r
-      ctxt = xmlCreatePushParserCtxt(NULL, NULL,\r
-        chars, res, "foooo (filename)?");\r
-      while ((res = fread(chars, 1, size, f)) > 0) {\r
-        xmlParseChunk(ctxt, chars, res, 0);\r
-      }\r
-      xmlParseChunk(ctxt, chars, 0, 1);\r
-      doc = ctxt->myDoc;\r
-      xmlFreeParserCtxt(ctxt);\r
-    }\r
-  }\r
-  return 0;\r
-}\r
+// XMLPush.cpp : Defines the entry point for the console application.
+//
+
+#include "stdafx.h"
+
+int main(int argc, char* argv[])
+{
+  FILE *f;
+  xmlDocPtr doc;
+  
+  f = fopen("XMLDump.xml", "r");
+  if (f != NULL) {
+    int res, size = 1024;
+    char chars[1024];
+    xmlParserCtxtPtr ctxt;
+    
+    res = fread(chars, 1, 4, f);
+    if (res > 0) {
+      ctxt = xmlCreatePushParserCtxt(NULL, NULL,
+        chars, res, "foooo (filename)?");
+      while ((res = fread(chars, 1, size, f)) > 0) {
+        xmlParseChunk(ctxt, chars, res, 0);
+      }
+      xmlParseChunk(ctxt, chars, 0, 1);
+      doc = ctxt->myDoc;
+      xmlFreeParserCtxt(ctxt);
+    }
+  }
+  return 0;
+}