[Expat-checkins] expat/lib xmlparse.c,1.92,1.93

Karl Waclawek kwaclaw@users.sourceforge.net
Wed, 09 Oct 2002 06:21:47 -0700


Update of /cvsroot/expat/expat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv1031

Modified Files:
	xmlparse.c 
Log Message:
Applied patch for bug # 620106.

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- xmlparse.c	8 Oct 2002 17:04:55 -0000	1.92
+++ xmlparse.c	9 Oct 2002 13:21:45 -0000	1.93
@@ -617,7 +617,16 @@
 #define paramEntityParsing (parser->m_paramEntityParsing)
 #endif /* XML_DTD */
 
-#define parsing (processor != prologInitProcessor)
+#define parsing \
+  (parentParser \
+    ? \
+    (isParamEntity \
+      ? \
+      (processor != externalParEntInitProcessor) \
+      : \
+      (processor != externalEntityInitProcessor)) \
+    : \
+    (processor != prologInitProcessor))
 
 XML_Parser
 XML_ParserCreate(const XML_Char *encodingName)