mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
removing history/readline changed this slightly make element content line
* result/scripts/base*: removing history/readline changed this slightly * include/libxml/parser.h SAX.c parser.c parserInternals.c xmllint.c: make element content line number generation optionnal to avoid breaking old apps added interface to switch Daniel
This commit is contained in:
19
parser.c
19
parser.c
@ -93,6 +93,7 @@ int xmlDoValidityCheckingDefaultValue = 0;
|
||||
#endif
|
||||
int xmlLoadExtDtdDefaultValue = 0;
|
||||
int xmlPedanticParserDefaultValue = 0;
|
||||
int xmlLineNumbersDefaultValue = 0;
|
||||
int xmlKeepBlanksDefaultValue = 1;
|
||||
|
||||
/*
|
||||
@ -10121,6 +10122,24 @@ xmlPedanticParserDefault(int val) {
|
||||
return(old);
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlLineNumbersDefault:
|
||||
* @val: int 0 or 1
|
||||
*
|
||||
* Set and return the previous value for enabling line numbers in elements
|
||||
* contents. This may break on old application and is turned off by default.
|
||||
*
|
||||
* Returns the last value for 0 for no substitution, 1 for substitution.
|
||||
*/
|
||||
|
||||
int
|
||||
xmlLineNumbersDefault(int val) {
|
||||
int old = xmlLineNumbersDefaultValue;
|
||||
|
||||
xmlLineNumbersDefaultValue = val;
|
||||
return(old);
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlSubstituteEntitiesDefault:
|
||||
* @val: int 0 or 1
|
||||
|
Reference in New Issue
Block a user