[Expat-bugs] [ expat-Bugs-679754 ] 1.95.6 - error in compilation, if XML_DTD is not defined

SourceForge.net noreply at sourceforge.net
Mon Feb 3 12:40:30 EST 2003


Bugs item #679754, was opened at 2003-02-03 14:51
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=679754&group_id=10127

Category: None
Group: None
Status: Open
>Resolution: Fixed
Priority: 5
Submitted By: Artyom Bolgar (artyom17)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: 1.95.6 - error in compilation, if XML_DTD is not defined

Initial Comment:
Hi!

The new Expat 1.95.6 is uncompilable, if XML_DTD 
macro is not defined. More exactly, the problem is in the 
xmlparse.c file, line #616:
------------------
#ifdef XML_DTD
#define isParamEntity (parser->m_isParamEntity)
#define useForeignDTD (parser->m_useForeignDTD)
#define paramEntityParsing (parser-
>m_paramEntityParsing)
#endif /* XML_DTD */

#define parsing \
  (parentParser \
    ? \
    (isParamEntity \   // <<<<< !AB
      ? \
      (processor != externalParEntInitProcessor) \
      : \
      (processor != externalEntityInitProcessor)) \
    : \
    (processor != prologInitProcessor))
--------------------
Look at the line marked as "<<<<< !AB". The 
isParamEntity macro exists only if XML_DTD is defined, 
that is why this file can't be compiled in this case.

----------------------------------------------------------------------

>Comment By: Karl Waclawek (kwaclaw)
Date: 2003-02-03 15:40

Message:
Logged In: YES 
user_id=290026

Yes, that is a bug.
Fixed in xmlparse.c rev. 1.108.

Leave open for Fred, in case he wants to add a comment.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=679754&group_id=10127



More information about the Expat-bugs mailing list