mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-29 15:41:13 +03:00
Stop calling deprecated libxml2 init functions
This commit is contained in:
@ -637,7 +637,6 @@ xsltNewTransformContext(xsltStylesheetPtr style, xmlDocPtr doc) {
|
|||||||
cur->prof = 0;
|
cur->prof = 0;
|
||||||
|
|
||||||
cur->style = style;
|
cur->style = style;
|
||||||
xmlXPathInit();
|
|
||||||
cur->xpathCtxt = xmlXPathNewContext(doc);
|
cur->xpathCtxt = xmlXPathNewContext(doc);
|
||||||
if (cur->xpathCtxt == NULL) {
|
if (cur->xpathCtxt == NULL) {
|
||||||
xsltTransformError(NULL, NULL, (xmlNodePtr) doc,
|
xsltTransformError(NULL, NULL, (xmlNodePtr) doc,
|
||||||
|
@ -1279,7 +1279,6 @@ void initlibxsltmod(void) {
|
|||||||
* Specific XSLT initializations
|
* Specific XSLT initializations
|
||||||
*/
|
*/
|
||||||
libxslt_xsltErrorInitialize();
|
libxslt_xsltErrorInitialize();
|
||||||
xmlInitMemory();
|
|
||||||
xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
|
xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
|
||||||
xmlDefaultSAXHandler.cdataBlock = NULL;
|
xmlDefaultSAXHandler.cdataBlock = NULL;
|
||||||
/*
|
/*
|
||||||
|
@ -53,7 +53,6 @@ static void
|
|||||||
xsltFuzzInit(void) {
|
xsltFuzzInit(void) {
|
||||||
/* Init libxml2, libxslt and libexslt */
|
/* Init libxml2, libxslt and libexslt */
|
||||||
xmlInitParser();
|
xmlInitParser();
|
||||||
xmlXPathInit();
|
|
||||||
xsltInit();
|
xsltInit();
|
||||||
exsltRegisterAll();
|
exsltRegisterAll();
|
||||||
|
|
||||||
|
@ -565,7 +565,6 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
xmlInitMemory();
|
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(__CYGINW__)
|
#if defined(_WIN32) && !defined(__CYGINW__)
|
||||||
setmode(fileno(stdout), O_BINARY);
|
setmode(fileno(stdout), O_BINARY);
|
||||||
|
Reference in New Issue
Block a user