Menu

#237 1.95.6 - error in compilation, if XML_DTD is not defined

closed-fixed
None
5
2003-03-13
2003-02-03
No

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.

Discussion

  • Karl Waclawek

    Karl Waclawek - 2003-02-03

    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.

     
  • Karl Waclawek

    Karl Waclawek - 2003-02-03
    • assigned_to: nobody --> fdrake
    • status: open --> open-fixed
     
  • Fred L. Drake, Jr.

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB