Commits

Christian Heimes  committed 0687883

Add XML_DTD_RESET_FLAG_DEFAULT so that embedders can overwrite the default setting

  • Participants
  • Parent commits d0774a7

Comments (0)

Files changed (2)

    are reset after the endDoctypeDeclHandler has been called. The flag can be
    set inside the endDoctypeDeclHandler.
  */
+#ifndef XML_DTD_RESET_FLAG_DEFAULT
+#define XML_DTD_RESET_FLAG_DEFAULT XML_FALSE
+#endif
 XMLPARSEAPI(XML_Bool) XML_GetResetDTDFlag(XML_Parser parser);
 void XML_SetResetDTDFlag(XML_Parser parser, XML_Bool value);
 

File lib/xmlparse.c

   maxEntityIndirections = XML_DEFAULT_MAX_ENTITY_INDIRECTIONS;
   entityExpansions = 0;
   maxEntityExpansions = XML_DEFAULT_MAX_ENTITY_EXPANSIONS;
-  resetDTDFlag = XML_FALSE;
+  resetDTDFlag = XML_RESET_DTD_FLAG_DEFAULT;
 #endif
 
   attsSize = INIT_ATTS_SIZE;