]> git.saurik.com Git - wxWidgets.git/blobdiff - src/expat/lib/xmlparse.c
Don't use "Cancel" button in the about dialog of the listctrl sample.
[wxWidgets.git] / src / expat / lib / xmlparse.c
index 6e0fa1fc5168642e0b7376c2179c774842cf491c..7dbabe8124a69fdf546a29a885cb6a5004561871 100644 (file)
@@ -8,9 +8,17 @@
 #ifdef COMPILED_FROM_DSP
 
 #include "winconfig.h"
 #ifdef COMPILED_FROM_DSP
 
 #include "winconfig.h"
-#define XMLPARSEAPI(type) type __cdecl
 #include "expat.h"
 #include "expat.h"
-#undef XMLPARSEAPI
+
+#elif defined(OS2_32)
+
+#include "os2config.h"
+#include "expat.h"
+
+#elif defined(__MSDOS__)
+
+#include "dosconfig.h"
+#include "expat.h"
 
 #elif defined(MACOS_CLASSIC)
 
 
 #elif defined(MACOS_CLASSIC)
 
@@ -19,7 +27,7 @@
 
 #else
 
 
 #else
 
-#include <expat_config.h>
+#include "expat_config.h"
 
 #ifdef __declspec
 #define XMLPARSEAPI(type) type __cdecl
 
 #ifdef __declspec
 #define XMLPARSEAPI(type) type __cdecl
@@ -4040,7 +4048,8 @@ doProlog(XML_Parser parser,
         name = el->name;
         dtd->scaffold[myindex].name = name;
         nameLen = 0;
         name = el->name;
         dtd->scaffold[myindex].name = name;
         nameLen = 0;
-        for (; name[nameLen++]; );
+        for (; name[nameLen++]; )
+            ;
         dtd->contentStringLen +=  nameLen;
         if (elementDeclHandler)
           handleDefault = XML_FALSE;
         dtd->contentStringLen +=  nameLen;
         if (elementDeclHandler)
           handleDefault = XML_FALSE;
@@ -4672,7 +4681,7 @@ defineAttribute(ELEMENT_TYPE *type, ATTRIBUTE_ID *attId, XML_Bool isCdata,
   if (type->nDefaultAtts == type->allocDefaultAtts) {
     if (type->allocDefaultAtts == 0) {
       type->allocDefaultAtts = 8;
   if (type->nDefaultAtts == type->allocDefaultAtts) {
     if (type->allocDefaultAtts == 0) {
       type->allocDefaultAtts = 8;
-      type->defaultAtts = (DEFAULT_ATTRIBUTE *)MALLOC(type->allocDefaultAtts 
+      type->defaultAtts = (DEFAULT_ATTRIBUTE *)MALLOC(type->allocDefaultAtts
                             * sizeof(DEFAULT_ATTRIBUTE));
       if (!type->defaultAtts)
         return 0;
                             * sizeof(DEFAULT_ATTRIBUTE));
       if (!type->defaultAtts)
         return 0;
@@ -5536,8 +5545,8 @@ poolGrow(STRING_POOL *pool)
     int blockSize = (pool->end - pool->start)*2;
     pool->blocks = (BLOCK *)
       pool->mem->realloc_fcn(pool->blocks,
     int blockSize = (pool->end - pool->start)*2;
     pool->blocks = (BLOCK *)
       pool->mem->realloc_fcn(pool->blocks,
-                            (offsetof(BLOCK, s)
-                             + blockSize * sizeof(XML_Char)));
+                             (offsetof(BLOCK, s)
+                             + blockSize * sizeof(XML_Char)));
     if (pool->blocks == NULL)
       return XML_FALSE;
     pool->blocks->size = blockSize;
     if (pool->blocks == NULL)
       return XML_FALSE;
     pool->blocks->size = blockSize;
@@ -5553,7 +5562,7 @@ poolGrow(STRING_POOL *pool)
     else
       blockSize *= 2;
     tem = (BLOCK *)pool->mem->malloc_fcn(offsetof(BLOCK, s)
     else
       blockSize *= 2;
     tem = (BLOCK *)pool->mem->malloc_fcn(offsetof(BLOCK, s)
-                                       + blockSize * sizeof(XML_Char));
+                                         + blockSize * sizeof(XML_Char));
     if (!tem)
       return XML_FALSE;
     tem->size = blockSize;
     if (!tem)
       return XML_FALSE;
     tem->size = blockSize;