[Expat-checkins] expat/lib xmlparse.c,1.107,1.108

Karl Waclawek kwaclaw at users.sourceforge.net
Mon Feb 3 12:32:49 EST 2003


Update of /cvsroot/expat/expat/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv22997

Modified Files:
	xmlparse.c 
Log Message:
Fix for bug #679754: compile error when XML_DTD not defined.

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- xmlparse.c	28 Jan 2003 05:45:10 -0000	1.107
+++ xmlparse.c	3 Feb 2003 20:32:45 -0000	1.108
@@ -613,6 +613,7 @@
 #define paramEntityParsing (parser->m_paramEntityParsing)
 #endif /* XML_DTD */
 
+#ifdef XML_DTD
 #define parsing \
   (parentParser \
     ? \
@@ -623,6 +624,14 @@
       (processor != externalEntityInitProcessor)) \
     : \
     (processor != prologInitProcessor))
+#else
+#define parsing \
+  (parentParser \
+    ? \
+    (processor != externalEntityInitProcessor) \
+    : \
+    (processor != prologInitProcessor))
+#endif /* XML_DTD */
 
 XML_Parser
 XML_ParserCreate(const XML_Char *encodingName)





More information about the Expat-checkins mailing list