mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-25 10:50:08 +03:00
xmllint: Don't set deprecated globals
This commit is contained in:
parent
ea29b95144
commit
692a5c40ce
@ -3356,7 +3356,6 @@ main(int argc, char **argv) {
|
||||
else if ((!strcmp(argv[i], "-debugent")) ||
|
||||
(!strcmp(argv[i], "--debugent"))) {
|
||||
debugent++;
|
||||
xmlParserDebugEntities = 1;
|
||||
}
|
||||
#endif
|
||||
#ifdef LIBXML_C14N_ENABLED
|
||||
@ -3535,10 +3534,6 @@ main(int argc, char **argv) {
|
||||
defaultEntityLoader = xmlGetExternalEntityLoader();
|
||||
xmlSetExternalEntityLoader(xmllintExternalEntityLoader);
|
||||
|
||||
if (loaddtd != 0)
|
||||
xmlLoadExtDtdDefaultValue |= XML_DETECT_IDS;
|
||||
if (dtdattrs)
|
||||
xmlLoadExtDtdDefaultValue |= XML_COMPLETE_ATTRS;
|
||||
if (noent != 0)
|
||||
options |= XML_PARSE_NOENT;
|
||||
if ((noblanks != 0) || (format == 1))
|
||||
@ -3565,7 +3560,6 @@ main(int argc, char **argv) {
|
||||
xmlSchematronParserCtxtPtr ctxt;
|
||||
|
||||
/* forces loading the DTDs */
|
||||
xmlLoadExtDtdDefaultValue |= 1;
|
||||
options |= XML_PARSE_DTDLOAD;
|
||||
if (timing) {
|
||||
startTimer();
|
||||
@ -3601,7 +3595,6 @@ main(int argc, char **argv) {
|
||||
xmlRelaxNGParserCtxtPtr ctxt;
|
||||
|
||||
/* forces loading the DTDs */
|
||||
xmlLoadExtDtdDefaultValue |= 1;
|
||||
options |= XML_PARSE_DTDLOAD;
|
||||
if (timing) {
|
||||
startTimer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user