Tentatively fixed #69655 , make compiling with -Wredundant-decls clean.

* HTMLtree.c Makefile.am build_glob.py configure.in debugXML.c
  globals.c parser.c threads.c tree.c valid.c xmlmemory.c
  xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h
  include/libxml/parserInternals.h include/libxml/tree.h
  include/libxml/xmlmemory.h include/libxml/xpathInternals.h:
  Tentatively fixed #69655 , make compiling with -Wredundant-decls
  clean.
* python/libxml.c: fixed a warning.
Daniel
This commit is contained in:
Daniel Veillard 2002-02-10 13:20:39 +00:00
parent c5f05ada40
commit 0ba59239d9
21 changed files with 80 additions and 166 deletions

View File

@ -1,3 +1,14 @@
Sun Feb 10 14:13:34 CET 2002 Daniel Veillard <daniel@veillard.com>
* HTMLtree.c Makefile.am build_glob.py configure.in debugXML.c
globals.c parser.c threads.c tree.c valid.c xmlmemory.c
xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h
include/libxml/parserInternals.h include/libxml/tree.h
include/libxml/xmlmemory.h include/libxml/xpathInternals.h:
Tentatively fixed #69655 , make compiling with -Wredundant-decls
clean.
* python/libxml.c: fixed a warning.
Sun Feb 10 12:02:59 CET 2002 Daniel Veillard <daniel@veillard.com> Sun Feb 10 12:02:59 CET 2002 Daniel Veillard <daniel@veillard.com>
* tree.c valid.c xinclude.c: fix #68882, cleanup the XInclude * tree.c valid.c xinclude.c: fix #68882, cleanup the XInclude

View File

@ -788,9 +788,6 @@ htmlDocDumpMemory(xmlDocPtr cur, xmlChar**mem, int *size) {
* * * *
************************************************************************/ ************************************************************************/
void
htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr cur,
const char *encoding, int format);
/** /**
* htmlDtdDumpOutput: * htmlDtdDumpOutput:
* @buf: the HTML buffer output * @buf: the HTML buffer output

View File

@ -85,6 +85,7 @@ check-local: tests
testall : tests SVGtests SAXtests testall : tests SVGtests SAXtests
tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests Scripttests Catatests @TEST_THREADS@ tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests Scripttests Catatests @TEST_THREADS@
@(cd python ; $(MAKE) tests)
HTMLtests : testHTML$(EXEEXT) HTMLtests : testHTML$(EXEEXT)
@(echo > .memdump) @(echo > .memdump)

View File

@ -66,7 +66,6 @@ if __name__ == "__main__":
fields = string.split(line, ",") fields = string.split(line, ",")
# Update the header file # Update the header file
writeline(global_functions_hdr) writeline(global_functions_hdr)
writeline(global_functions_hdr, "#ifdef LIBXML_THREAD_ENABLED")
global_functions_hdr.write("extern "+fields[0]+" *") global_functions_hdr.write("extern "+fields[0]+" *")
if len(fields) == 3: if len(fields) == 3:
global_functions_hdr.write("(*") global_functions_hdr.write("(*")
@ -74,6 +73,7 @@ if __name__ == "__main__":
if len(fields) == 3: if len(fields) == 3:
global_functions_hdr.write(")"+fields[2]) global_functions_hdr.write(")"+fields[2])
writeline(global_functions_hdr,";") writeline(global_functions_hdr,";")
writeline(global_functions_hdr, "#ifdef LIBXML_THREAD_ENABLED")
writeline(global_functions_hdr,"#define "+fields[1]+" \\") writeline(global_functions_hdr,"#define "+fields[1]+" \\")
writeline(global_functions_hdr,"(*(__"+fields[1]+"()))") writeline(global_functions_hdr,"(*(__"+fields[1]+"()))")
writeline(global_functions_hdr,"#else") writeline(global_functions_hdr,"#else")
@ -84,7 +84,7 @@ if __name__ == "__main__":
writeline(global_functions_hdr,"#endif") writeline(global_functions_hdr,"#endif")
# Update the implementation file # Update the implementation file
writeline(global_functions_impl) writeline(global_functions_impl)
writeline(global_functions_impl, "extern "+fields[0]+" "+fields[1]+";") # writeline(global_functions_impl, "extern "+fields[0]+" "+fields[1]+";")
writeline(global_functions_impl, "#undef\t"+fields[1]) writeline(global_functions_impl, "#undef\t"+fields[1])
writeline(global_functions_impl, fields[0]+" *") writeline(global_functions_impl, fields[0]+" *")
if len(fields) == 3: if len(fields) == 3:

View File

@ -273,7 +273,7 @@ if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ; then
if test "${with_xptr}" = "" ; then if test "${with_xptr}" = "" ; then
with_xptr="yes" with_xptr="yes"
fi fi
CFLAGS="-g -O -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline " CFLAGS="-g -O -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls "
dnl -Wcast-qual -ansi dnl -Wcast-qual -ansi
fi fi

View File

@ -27,6 +27,7 @@
#include <libxml/HTMLparser.h> #include <libxml/HTMLparser.h>
#include <libxml/xmlerror.h> #include <libxml/xmlerror.h>
#include <libxml/globals.h> #include <libxml/globals.h>
#include <libxml/xpathInternals.h>
/** /**
* xmlDebugDumpString: * xmlDebugDumpString:

View File

@ -442,7 +442,6 @@ xmlInitializeGlobalState(xmlGlobalStatePtr gs)
} }
#ifdef LIBXML_DOCB_ENABLED #ifdef LIBXML_DOCB_ENABLED
extern xmlSAXHandler docbDefaultSAXHandler;
#undef docbDefaultSAXHandler #undef docbDefaultSAXHandler
xmlSAXHandler * xmlSAXHandler *
__docbDefaultSAXHandler(void) { __docbDefaultSAXHandler(void) {
@ -454,7 +453,6 @@ __docbDefaultSAXHandler(void) {
#endif #endif
#ifdef LIBXML_HTML_ENABLED #ifdef LIBXML_HTML_ENABLED
extern xmlSAXHandler htmlDefaultSAXHandler;
#undef htmlDefaultSAXHandler #undef htmlDefaultSAXHandler
xmlSAXHandler * xmlSAXHandler *
__htmlDefaultSAXHandler(void) { __htmlDefaultSAXHandler(void) {
@ -472,7 +470,6 @@ __htmlDefaultSAXHandler(void) {
*/ */
extern int oldXMLWDcompatibility;
#undef oldXMLWDcompatibility #undef oldXMLWDcompatibility
int * int *
__oldXMLWDcompatibility(void) { __oldXMLWDcompatibility(void) {
@ -482,7 +479,6 @@ __oldXMLWDcompatibility(void) {
return (&xmlGetGlobalState()->oldXMLWDcompatibility); return (&xmlGetGlobalState()->oldXMLWDcompatibility);
} }
extern xmlBufferAllocationScheme xmlBufferAllocScheme;
#undef xmlBufferAllocScheme #undef xmlBufferAllocScheme
xmlBufferAllocationScheme * xmlBufferAllocationScheme *
__xmlBufferAllocScheme(void) { __xmlBufferAllocScheme(void) {
@ -492,7 +488,6 @@ __xmlBufferAllocScheme(void) {
return (&xmlGetGlobalState()->xmlBufferAllocScheme); return (&xmlGetGlobalState()->xmlBufferAllocScheme);
} }
extern int xmlDefaultBufferSize;
#undef xmlDefaultBufferSize #undef xmlDefaultBufferSize
int * int *
__xmlDefaultBufferSize(void) { __xmlDefaultBufferSize(void) {
@ -502,7 +497,6 @@ __xmlDefaultBufferSize(void) {
return (&xmlGetGlobalState()->xmlDefaultBufferSize); return (&xmlGetGlobalState()->xmlDefaultBufferSize);
} }
extern xmlSAXHandler xmlDefaultSAXHandler;
#undef xmlDefaultSAXHandler #undef xmlDefaultSAXHandler
xmlSAXHandler * xmlSAXHandler *
__xmlDefaultSAXHandler(void) { __xmlDefaultSAXHandler(void) {
@ -512,7 +506,6 @@ __xmlDefaultSAXHandler(void) {
return (&xmlGetGlobalState()->xmlDefaultSAXHandler); return (&xmlGetGlobalState()->xmlDefaultSAXHandler);
} }
extern xmlSAXLocator xmlDefaultSAXLocator;
#undef xmlDefaultSAXLocator #undef xmlDefaultSAXLocator
xmlSAXLocator * xmlSAXLocator *
__xmlDefaultSAXLocator(void) { __xmlDefaultSAXLocator(void) {
@ -522,7 +515,6 @@ __xmlDefaultSAXLocator(void) {
return (&xmlGetGlobalState()->xmlDefaultSAXLocator); return (&xmlGetGlobalState()->xmlDefaultSAXLocator);
} }
extern int xmlDoValidityCheckingDefaultValue;
#undef xmlDoValidityCheckingDefaultValue #undef xmlDoValidityCheckingDefaultValue
int * int *
__xmlDoValidityCheckingDefaultValue(void) { __xmlDoValidityCheckingDefaultValue(void) {
@ -532,17 +524,6 @@ __xmlDoValidityCheckingDefaultValue(void) {
return (&xmlGetGlobalState()->xmlDoValidityCheckingDefaultValue); return (&xmlGetGlobalState()->xmlDoValidityCheckingDefaultValue);
} }
extern xmlFreeFunc xmlFree;
#undef xmlFree
xmlFreeFunc *
__xmlFree(void) {
if (IS_MAIN_THREAD)
return (&xmlFree);
else
return (&xmlGetGlobalState()->xmlFree);
}
extern xmlGenericErrorFunc xmlGenericError;
#undef xmlGenericError #undef xmlGenericError
xmlGenericErrorFunc * xmlGenericErrorFunc *
__xmlGenericError(void) { __xmlGenericError(void) {
@ -552,7 +533,6 @@ __xmlGenericError(void) {
return (&xmlGetGlobalState()->xmlGenericError); return (&xmlGetGlobalState()->xmlGenericError);
} }
extern void * xmlGenericErrorContext;
#undef xmlGenericErrorContext #undef xmlGenericErrorContext
void * * void * *
__xmlGenericErrorContext(void) { __xmlGenericErrorContext(void) {
@ -562,7 +542,6 @@ __xmlGenericErrorContext(void) {
return (&xmlGetGlobalState()->xmlGenericErrorContext); return (&xmlGetGlobalState()->xmlGenericErrorContext);
} }
extern int xmlGetWarningsDefaultValue;
#undef xmlGetWarningsDefaultValue #undef xmlGetWarningsDefaultValue
int * int *
__xmlGetWarningsDefaultValue(void) { __xmlGetWarningsDefaultValue(void) {
@ -572,7 +551,6 @@ __xmlGetWarningsDefaultValue(void) {
return (&xmlGetGlobalState()->xmlGetWarningsDefaultValue); return (&xmlGetGlobalState()->xmlGetWarningsDefaultValue);
} }
extern int xmlIndentTreeOutput;
#undef xmlIndentTreeOutput #undef xmlIndentTreeOutput
int * int *
__xmlIndentTreeOutput(void) { __xmlIndentTreeOutput(void) {
@ -582,7 +560,6 @@ __xmlIndentTreeOutput(void) {
return (&xmlGetGlobalState()->xmlIndentTreeOutput); return (&xmlGetGlobalState()->xmlIndentTreeOutput);
} }
extern int xmlKeepBlanksDefaultValue;
#undef xmlKeepBlanksDefaultValue #undef xmlKeepBlanksDefaultValue
int * int *
__xmlKeepBlanksDefaultValue(void) { __xmlKeepBlanksDefaultValue(void) {
@ -592,7 +569,6 @@ __xmlKeepBlanksDefaultValue(void) {
return (&xmlGetGlobalState()->xmlKeepBlanksDefaultValue); return (&xmlGetGlobalState()->xmlKeepBlanksDefaultValue);
} }
extern int xmlLineNumbersDefaultValue;
#undef xmlLineNumbersDefaultValue #undef xmlLineNumbersDefaultValue
int * int *
__xmlLineNumbersDefaultValue(void) { __xmlLineNumbersDefaultValue(void) {
@ -602,7 +578,6 @@ __xmlLineNumbersDefaultValue(void) {
return (&xmlGetGlobalState()->xmlLineNumbersDefaultValue); return (&xmlGetGlobalState()->xmlLineNumbersDefaultValue);
} }
extern int xmlLoadExtDtdDefaultValue;
#undef xmlLoadExtDtdDefaultValue #undef xmlLoadExtDtdDefaultValue
int * int *
__xmlLoadExtDtdDefaultValue(void) { __xmlLoadExtDtdDefaultValue(void) {
@ -612,27 +587,6 @@ __xmlLoadExtDtdDefaultValue(void) {
return (&xmlGetGlobalState()->xmlLoadExtDtdDefaultValue); return (&xmlGetGlobalState()->xmlLoadExtDtdDefaultValue);
} }
extern xmlMallocFunc xmlMalloc;
#undef xmlMalloc
xmlMallocFunc *
__xmlMalloc(void) {
if (IS_MAIN_THREAD)
return (&xmlMalloc);
else
return (&xmlGetGlobalState()->xmlMalloc);
}
extern xmlStrdupFunc xmlMemStrdup;
#undef xmlMemStrdup
xmlStrdupFunc *
__xmlMemStrdup(void) {
if (IS_MAIN_THREAD)
return (&xmlMemStrdup);
else
return (&xmlGetGlobalState()->xmlMemStrdup);
}
extern int xmlParserDebugEntities;
#undef xmlParserDebugEntities #undef xmlParserDebugEntities
int * int *
__xmlParserDebugEntities(void) { __xmlParserDebugEntities(void) {
@ -642,7 +596,6 @@ __xmlParserDebugEntities(void) {
return (&xmlGetGlobalState()->xmlParserDebugEntities); return (&xmlGetGlobalState()->xmlParserDebugEntities);
} }
extern const char * xmlParserVersion;
#undef xmlParserVersion #undef xmlParserVersion
const char * * const char * *
__xmlParserVersion(void) { __xmlParserVersion(void) {
@ -652,7 +605,6 @@ __xmlParserVersion(void) {
return (&xmlGetGlobalState()->xmlParserVersion); return (&xmlGetGlobalState()->xmlParserVersion);
} }
extern int xmlPedanticParserDefaultValue;
#undef xmlPedanticParserDefaultValue #undef xmlPedanticParserDefaultValue
int * int *
__xmlPedanticParserDefaultValue(void) { __xmlPedanticParserDefaultValue(void) {
@ -662,17 +614,6 @@ __xmlPedanticParserDefaultValue(void) {
return (&xmlGetGlobalState()->xmlPedanticParserDefaultValue); return (&xmlGetGlobalState()->xmlPedanticParserDefaultValue);
} }
extern xmlReallocFunc xmlRealloc;
#undef xmlRealloc
xmlReallocFunc *
__xmlRealloc(void) {
if (IS_MAIN_THREAD)
return (&xmlRealloc);
else
return (&xmlGetGlobalState()->xmlRealloc);
}
extern int xmlSaveNoEmptyTags;
#undef xmlSaveNoEmptyTags #undef xmlSaveNoEmptyTags
int * int *
__xmlSaveNoEmptyTags(void) { __xmlSaveNoEmptyTags(void) {
@ -682,7 +623,6 @@ __xmlSaveNoEmptyTags(void) {
return (&xmlGetGlobalState()->xmlSaveNoEmptyTags); return (&xmlGetGlobalState()->xmlSaveNoEmptyTags);
} }
extern int xmlSubstituteEntitiesDefaultValue;
#undef xmlSubstituteEntitiesDefaultValue #undef xmlSubstituteEntitiesDefaultValue
int * int *
__xmlSubstituteEntitiesDefaultValue(void) { __xmlSubstituteEntitiesDefaultValue(void) {

View File

@ -138,6 +138,27 @@ LIBXML_DLL_IMPORT extern xmlFreeFunc xmlFree;
LIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup; LIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup;
#endif /* LIBXML_THREAD_ALLOC_ENABLED */ #endif /* LIBXML_THREAD_ALLOC_ENABLED */
#ifdef LIBXML_DOCB_ENABLED
extern xmlSAXHandler *__docbDefaultSAXHandler(void);
#ifdef LIBXML_THREAD_ENABLED
#define docbDefaultSAXHandler \
(*(__docbDefaultSAXHandler()))
#else
LIBXML_DLL_IMPORT extern xmlSAXHandler docbDefaultSAXHandler;
#endif
#endif
#ifdef LIBXML_HTML_ENABLED
extern xmlSAXHandler *__htmlDefaultSAXHandler(void);
#ifdef LIBXML_THREAD_ENABLED
#define htmlDefaultSAXHandler \
(*(__htmlDefaultSAXHandler()))
#else
LIBXML_DLL_IMPORT extern xmlSAXHandler htmlDefaultSAXHandler;
#endif
#endif
/* /*
* Everything starting from the line below is * Everything starting from the line below is
* Automatically generated by build_glob.py. * Automatically generated by build_glob.py.
@ -145,160 +166,144 @@ LIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup;
*/ */
#ifdef LIBXML_THREAD_ENABLED
extern xmlSAXHandler *__docbDefaultSAXHandler(void);
#define docbDefaultSAXHandler \
(*(__docbDefaultSAXHandler()))
#else
LIBXML_DLL_IMPORT extern xmlSAXHandler docbDefaultSAXHandler;
#endif
#ifdef LIBXML_THREAD_ENABLED
extern xmlSAXHandler *__htmlDefaultSAXHandler(void);
#define htmlDefaultSAXHandler \
(*(__htmlDefaultSAXHandler()))
#else
LIBXML_DLL_IMPORT extern xmlSAXHandler htmlDefaultSAXHandler;
#endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__oldXMLWDcompatibility(void); extern int *__oldXMLWDcompatibility(void);
#ifdef LIBXML_THREAD_ENABLED
#define oldXMLWDcompatibility \ #define oldXMLWDcompatibility \
(*(__oldXMLWDcompatibility())) (*(__oldXMLWDcompatibility()))
#else #else
LIBXML_DLL_IMPORT extern int oldXMLWDcompatibility; LIBXML_DLL_IMPORT extern int oldXMLWDcompatibility;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern xmlBufferAllocationScheme *__xmlBufferAllocScheme(void); extern xmlBufferAllocationScheme *__xmlBufferAllocScheme(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlBufferAllocScheme \ #define xmlBufferAllocScheme \
(*(__xmlBufferAllocScheme())) (*(__xmlBufferAllocScheme()))
#else #else
LIBXML_DLL_IMPORT extern xmlBufferAllocationScheme xmlBufferAllocScheme; LIBXML_DLL_IMPORT extern xmlBufferAllocationScheme xmlBufferAllocScheme;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__xmlDefaultBufferSize(void); extern int *__xmlDefaultBufferSize(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlDefaultBufferSize \ #define xmlDefaultBufferSize \
(*(__xmlDefaultBufferSize())) (*(__xmlDefaultBufferSize()))
#else #else
LIBXML_DLL_IMPORT extern int xmlDefaultBufferSize; LIBXML_DLL_IMPORT extern int xmlDefaultBufferSize;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern xmlSAXHandler *__xmlDefaultSAXHandler(void); extern xmlSAXHandler *__xmlDefaultSAXHandler(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlDefaultSAXHandler \ #define xmlDefaultSAXHandler \
(*(__xmlDefaultSAXHandler())) (*(__xmlDefaultSAXHandler()))
#else #else
LIBXML_DLL_IMPORT extern xmlSAXHandler xmlDefaultSAXHandler; LIBXML_DLL_IMPORT extern xmlSAXHandler xmlDefaultSAXHandler;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern xmlSAXLocator *__xmlDefaultSAXLocator(void); extern xmlSAXLocator *__xmlDefaultSAXLocator(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlDefaultSAXLocator \ #define xmlDefaultSAXLocator \
(*(__xmlDefaultSAXLocator())) (*(__xmlDefaultSAXLocator()))
#else #else
LIBXML_DLL_IMPORT extern xmlSAXLocator xmlDefaultSAXLocator; LIBXML_DLL_IMPORT extern xmlSAXLocator xmlDefaultSAXLocator;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__xmlDoValidityCheckingDefaultValue(void); extern int *__xmlDoValidityCheckingDefaultValue(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlDoValidityCheckingDefaultValue \ #define xmlDoValidityCheckingDefaultValue \
(*(__xmlDoValidityCheckingDefaultValue())) (*(__xmlDoValidityCheckingDefaultValue()))
#else #else
LIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultValue; LIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultValue;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern xmlGenericErrorFunc *__xmlGenericError(void); extern xmlGenericErrorFunc *__xmlGenericError(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlGenericError \ #define xmlGenericError \
(*(__xmlGenericError())) (*(__xmlGenericError()))
#else #else
LIBXML_DLL_IMPORT extern xmlGenericErrorFunc xmlGenericError; LIBXML_DLL_IMPORT extern xmlGenericErrorFunc xmlGenericError;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern void * *__xmlGenericErrorContext(void); extern void * *__xmlGenericErrorContext(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlGenericErrorContext \ #define xmlGenericErrorContext \
(*(__xmlGenericErrorContext())) (*(__xmlGenericErrorContext()))
#else #else
LIBXML_DLL_IMPORT extern void * xmlGenericErrorContext; LIBXML_DLL_IMPORT extern void * xmlGenericErrorContext;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__xmlGetWarningsDefaultValue(void); extern int *__xmlGetWarningsDefaultValue(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlGetWarningsDefaultValue \ #define xmlGetWarningsDefaultValue \
(*(__xmlGetWarningsDefaultValue())) (*(__xmlGetWarningsDefaultValue()))
#else #else
LIBXML_DLL_IMPORT extern int xmlGetWarningsDefaultValue; LIBXML_DLL_IMPORT extern int xmlGetWarningsDefaultValue;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__xmlIndentTreeOutput(void); extern int *__xmlIndentTreeOutput(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlIndentTreeOutput \ #define xmlIndentTreeOutput \
(*(__xmlIndentTreeOutput())) (*(__xmlIndentTreeOutput()))
#else #else
LIBXML_DLL_IMPORT extern int xmlIndentTreeOutput; LIBXML_DLL_IMPORT extern int xmlIndentTreeOutput;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__xmlKeepBlanksDefaultValue(void); extern int *__xmlKeepBlanksDefaultValue(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlKeepBlanksDefaultValue \ #define xmlKeepBlanksDefaultValue \
(*(__xmlKeepBlanksDefaultValue())) (*(__xmlKeepBlanksDefaultValue()))
#else #else
LIBXML_DLL_IMPORT extern int xmlKeepBlanksDefaultValue; LIBXML_DLL_IMPORT extern int xmlKeepBlanksDefaultValue;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__xmlLineNumbersDefaultValue(void); extern int *__xmlLineNumbersDefaultValue(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlLineNumbersDefaultValue \ #define xmlLineNumbersDefaultValue \
(*(__xmlLineNumbersDefaultValue())) (*(__xmlLineNumbersDefaultValue()))
#else #else
LIBXML_DLL_IMPORT extern int xmlLineNumbersDefaultValue; LIBXML_DLL_IMPORT extern int xmlLineNumbersDefaultValue;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__xmlLoadExtDtdDefaultValue(void); extern int *__xmlLoadExtDtdDefaultValue(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlLoadExtDtdDefaultValue \ #define xmlLoadExtDtdDefaultValue \
(*(__xmlLoadExtDtdDefaultValue())) (*(__xmlLoadExtDtdDefaultValue()))
#else #else
LIBXML_DLL_IMPORT extern int xmlLoadExtDtdDefaultValue; LIBXML_DLL_IMPORT extern int xmlLoadExtDtdDefaultValue;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__xmlParserDebugEntities(void); extern int *__xmlParserDebugEntities(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlParserDebugEntities \ #define xmlParserDebugEntities \
(*(__xmlParserDebugEntities())) (*(__xmlParserDebugEntities()))
#else #else
LIBXML_DLL_IMPORT extern int xmlParserDebugEntities; LIBXML_DLL_IMPORT extern int xmlParserDebugEntities;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern const char * *__xmlParserVersion(void); extern const char * *__xmlParserVersion(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlParserVersion \ #define xmlParserVersion \
(*(__xmlParserVersion())) (*(__xmlParserVersion()))
#else #else
LIBXML_DLL_IMPORT extern const char * xmlParserVersion; LIBXML_DLL_IMPORT extern const char * xmlParserVersion;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__xmlPedanticParserDefaultValue(void); extern int *__xmlPedanticParserDefaultValue(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlPedanticParserDefaultValue \ #define xmlPedanticParserDefaultValue \
(*(__xmlPedanticParserDefaultValue())) (*(__xmlPedanticParserDefaultValue()))
#else #else
LIBXML_DLL_IMPORT extern int xmlPedanticParserDefaultValue; LIBXML_DLL_IMPORT extern int xmlPedanticParserDefaultValue;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__xmlSaveNoEmptyTags(void); extern int *__xmlSaveNoEmptyTags(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlSaveNoEmptyTags \ #define xmlSaveNoEmptyTags \
(*(__xmlSaveNoEmptyTags())) (*(__xmlSaveNoEmptyTags()))
#else #else
LIBXML_DLL_IMPORT extern int xmlSaveNoEmptyTags; LIBXML_DLL_IMPORT extern int xmlSaveNoEmptyTags;
#endif #endif
#ifdef LIBXML_THREAD_ENABLED
extern int *__xmlSubstituteEntitiesDefaultValue(void); extern int *__xmlSubstituteEntitiesDefaultValue(void);
#ifdef LIBXML_THREAD_ENABLED
#define xmlSubstituteEntitiesDefaultValue \ #define xmlSubstituteEntitiesDefaultValue \
(*(__xmlSubstituteEntitiesDefaultValue())) (*(__xmlSubstituteEntitiesDefaultValue()))
#else #else

View File

@ -617,12 +617,16 @@ typedef xmlParserInputPtr (*xmlExternalEntityLoader) (const char *URL,
* Global variables: just the default SAX interface tables and XML * Global variables: just the default SAX interface tables and XML
* version infos. * version infos.
*/ */
#if 0
LIBXML_DLL_IMPORT extern const char *xmlParserVersion; LIBXML_DLL_IMPORT extern const char *xmlParserVersion;
#endif
/*
LIBXML_DLL_IMPORT extern xmlSAXLocator xmlDefaultSAXLocator; LIBXML_DLL_IMPORT extern xmlSAXLocator xmlDefaultSAXLocator;
LIBXML_DLL_IMPORT extern xmlSAXHandler xmlDefaultSAXHandler; LIBXML_DLL_IMPORT extern xmlSAXHandler xmlDefaultSAXHandler;
LIBXML_DLL_IMPORT extern xmlSAXHandler htmlDefaultSAXHandler; LIBXML_DLL_IMPORT extern xmlSAXHandler htmlDefaultSAXHandler;
LIBXML_DLL_IMPORT extern xmlSAXHandler docbDefaultSAXHandler; LIBXML_DLL_IMPORT extern xmlSAXHandler docbDefaultSAXHandler;
*/
/* /*
* entity substitution default behavior. * entity substitution default behavior.
@ -636,10 +640,11 @@ LIBXML_DLL_IMPORT extern xmlSAXHandler docbDefaultSAXHandler;
*/ */
LIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultVal; LIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultVal;
#define xmlSubstituteEntitiesDefaultValue xmlSubstituteEntitiesDefaultVal #define xmlSubstituteEntitiesDefaultValue xmlSubstituteEntitiesDefaultVal
#else
LIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultValue;
#endif #endif
#if 0
LIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultValue;
LIBXML_DLL_IMPORT extern int xmlGetWarningsDefaultValue; LIBXML_DLL_IMPORT extern int xmlGetWarningsDefaultValue;
#endif
/* /*
@ -769,12 +774,6 @@ int xmlParseCtxtExternalEntity(xmlParserCtxtPtr ctx,
const xmlChar *ID, const xmlChar *ID,
xmlNodePtr *lst); xmlNodePtr *lst);
/*
* SAX initialization routines
*/
void xmlDefaultSAXHandlerInit(void);
void htmlDefaultSAXHandlerInit(void);
/* /*
* Parser contexts handling. * Parser contexts handling.
*/ */

View File

@ -189,7 +189,6 @@ int xmlIsPubidChar (int c);
int xmlIsLetter (int c); int xmlIsLetter (int c);
int xmlIsDigit (int c); int xmlIsDigit (int c);
int xmlIsIdeographic(int c); int xmlIsIdeographic(int c);
int xmlIsCombining (int c);
int xmlIsExtender (int c); int xmlIsExtender (int c);
int xmlIsCombining (int c); int xmlIsCombining (int c);
int xmlIsChar (int c); int xmlIsChar (int c);
@ -208,7 +207,6 @@ int xmlSwitchEncoding (xmlParserCtxtPtr ctxt,
xmlCharEncoding enc); xmlCharEncoding enc);
int xmlSwitchToEncoding (xmlParserCtxtPtr ctxt, int xmlSwitchToEncoding (xmlParserCtxtPtr ctxt,
xmlCharEncodingHandlerPtr handler); xmlCharEncodingHandlerPtr handler);
void xmlFreeParserCtxt (xmlParserCtxtPtr ctxt);
/** /**
* Entities * Entities

View File

@ -512,11 +512,13 @@ struct _xmlDoc {
/* /*
* Variables. * Variables.
*/ */
#if 0
LIBXML_DLL_IMPORT extern int oldXMLWDcompatibility;/* maintain compatibility with old WD */ LIBXML_DLL_IMPORT extern int oldXMLWDcompatibility;/* maintain compatibility with old WD */
LIBXML_DLL_IMPORT extern int xmlIndentTreeOutput; /* try to indent the tree dumps */ LIBXML_DLL_IMPORT extern int xmlIndentTreeOutput; /* try to indent the tree dumps */
LIBXML_DLL_IMPORT extern xmlBufferAllocationScheme xmlBufferAllocScheme; /* alloc scheme to use */ LIBXML_DLL_IMPORT extern xmlBufferAllocationScheme xmlBufferAllocScheme; /* alloc scheme to use */
LIBXML_DLL_IMPORT extern int xmlSaveNoEmptyTags; /* save empty tags as <empty></empty> */ LIBXML_DLL_IMPORT extern int xmlSaveNoEmptyTags; /* save empty tags as <empty></empty> */
LIBXML_DLL_IMPORT extern int xmlDefaultBufferSize; /* default buffer size */ LIBXML_DLL_IMPORT extern int xmlDefaultBufferSize; /* default buffer size */
#endif
/* /*
* Handling Buffers. * Handling Buffers.

View File

@ -88,11 +88,14 @@ typedef char *(*xmlStrdupFunc)(const char *str);
/* /*
* The 4 interfaces used for all memory handling within libxml * The 4 interfaces used for all memory handling within libxml
*/ *
* Now defined in globals.h
*
LIBXML_DLL_IMPORT extern xmlFreeFunc xmlFree; LIBXML_DLL_IMPORT extern xmlFreeFunc xmlFree;
LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMalloc; LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMalloc;
LIBXML_DLL_IMPORT extern xmlReallocFunc xmlRealloc; LIBXML_DLL_IMPORT extern xmlReallocFunc xmlRealloc;
LIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup; LIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup;
*/
/* /*
* The way to overload the existing functions * The way to overload the existing functions

View File

@ -480,48 +480,24 @@ void xmlXPathNodeSetAddUnique (xmlNodeSetPtr cur,
xmlNodePtr val); xmlNodePtr val);
void xmlXPathNodeSetSort (xmlNodeSetPtr set); void xmlXPathNodeSetSort (xmlNodeSetPtr set);
void xmlXPathIdFunction (xmlXPathParserContextPtr ctxt,
int nargs);
void xmlXPathRoot (xmlXPathParserContextPtr ctxt); void xmlXPathRoot (xmlXPathParserContextPtr ctxt);
void xmlXPathEvalExpr (xmlXPathParserContextPtr ctxt); void xmlXPathEvalExpr (xmlXPathParserContextPtr ctxt);
xmlChar * xmlXPathParseName (xmlXPathParserContextPtr ctxt); xmlChar * xmlXPathParseName (xmlXPathParserContextPtr ctxt);
xmlChar * xmlXPathParseNCName (xmlXPathParserContextPtr ctxt); xmlChar * xmlXPathParseNCName (xmlXPathParserContextPtr ctxt);
/*
* Debug
*/
#ifdef LIBXML_DEBUG_ENABLED
void xmlXPathDebugDumpObject(FILE *output, xmlXPathObjectPtr cur, int depth);
#endif
/* /*
* Existing functions * Existing functions
*/ */
double xmlXPathStringEvalNumber(const xmlChar *str); double xmlXPathStringEvalNumber(const xmlChar *str);
int xmlXPathEvaluatePredicateResult(xmlXPathParserContextPtr ctxt, int xmlXPathEvaluatePredicateResult(xmlXPathParserContextPtr ctxt,
xmlXPathObjectPtr res); xmlXPathObjectPtr res);
void xmlXPathInit(void);
void xmlXPathStringFunction(xmlXPathParserContextPtr ctxt, int nargs);
void xmlXPathRegisterAllFunctions(xmlXPathContextPtr ctxt); void xmlXPathRegisterAllFunctions(xmlXPathContextPtr ctxt);
xmlNodeSetPtr xmlXPathNodeSetCreate(xmlNodePtr val);
void xmlXPathNodeSetAdd(xmlNodeSetPtr cur, xmlNodePtr val);
xmlNodeSetPtr xmlXPathNodeSetMerge(xmlNodeSetPtr val1, xmlNodeSetPtr val2); xmlNodeSetPtr xmlXPathNodeSetMerge(xmlNodeSetPtr val1, xmlNodeSetPtr val2);
void xmlXPathNodeSetDel(xmlNodeSetPtr cur, xmlNodePtr val); void xmlXPathNodeSetDel(xmlNodeSetPtr cur, xmlNodePtr val);
void xmlXPathNodeSetRemove(xmlNodeSetPtr cur, int val); void xmlXPathNodeSetRemove(xmlNodeSetPtr cur, int val);
void xmlXPathFreeNodeSet(xmlNodeSetPtr obj);
xmlXPathObjectPtr xmlXPathNewNodeSet(xmlNodePtr val);
xmlXPathObjectPtr xmlXPathNewNodeSetList(xmlNodeSetPtr val); xmlXPathObjectPtr xmlXPathNewNodeSetList(xmlNodeSetPtr val);
xmlXPathObjectPtr xmlXPathWrapNodeSet(xmlNodeSetPtr val); xmlXPathObjectPtr xmlXPathWrapNodeSet(xmlNodeSetPtr val);
xmlXPathObjectPtr xmlXPathWrapExternal(void *val); xmlXPathObjectPtr xmlXPathWrapExternal(void *val);
void xmlXPathFreeNodeSetList(xmlXPathObjectPtr obj);
xmlXPathObjectPtr xmlXPathNewFloat(double val);
xmlXPathObjectPtr xmlXPathNewBoolean(int val);
xmlXPathObjectPtr xmlXPathNewString(const xmlChar *val);
xmlXPathObjectPtr xmlXPathNewCString(const char *val);
void xmlXPathFreeObject(xmlXPathObjectPtr obj);
xmlXPathContextPtr xmlXPathNewContext(xmlDocPtr doc);
void xmlXPathFreeContext(xmlXPathContextPtr ctxt);
int xmlXPathEqualValues(xmlXPathParserContextPtr ctxt); int xmlXPathEqualValues(xmlXPathParserContextPtr ctxt);
int xmlXPathCompareValues(xmlXPathParserContextPtr ctxt, int inf, int strict); int xmlXPathCompareValues(xmlXPathParserContextPtr ctxt, int inf, int strict);
@ -566,7 +542,6 @@ xmlNodePtr xmlXPathNextPrecedingSibling(xmlXPathParserContextPtr ctxt,
/* /*
* The official core of XPath functions * The official core of XPath functions
*/ */
void xmlXPathRoot(xmlXPathParserContextPtr ctxt);
void xmlXPathLastFunction(xmlXPathParserContextPtr ctxt, int nargs); void xmlXPathLastFunction(xmlXPathParserContextPtr ctxt, int nargs);
void xmlXPathPositionFunction(xmlXPathParserContextPtr ctxt, int nargs); void xmlXPathPositionFunction(xmlXPathParserContextPtr ctxt, int nargs);
void xmlXPathCountFunction(xmlXPathParserContextPtr ctxt, int nargs); void xmlXPathCountFunction(xmlXPathParserContextPtr ctxt, int nargs);

View File

@ -89,7 +89,6 @@ static const char *xmlW3CPIs[] = {
}; };
/* DEPR void xmlParserHandleReference(xmlParserCtxtPtr ctxt); */ /* DEPR void xmlParserHandleReference(xmlParserCtxtPtr ctxt); */
void xmlParserHandlePEReference(xmlParserCtxtPtr ctxt);
xmlEntityPtr xmlParseStringPEReference(xmlParserCtxtPtr ctxt, xmlEntityPtr xmlParseStringPEReference(xmlParserCtxtPtr ctxt,
const xmlChar **str); const xmlChar **str);
@ -1531,12 +1530,6 @@ static int areBlanks(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
return(1); return(1);
} }
/*
* Forward definition for recursive behavior.
*/
void xmlParsePEReference(xmlParserCtxtPtr ctxt);
void xmlParseReference(xmlParserCtxtPtr ctxt);
/************************************************************************ /************************************************************************
* * * *
* Extra stuff for namespace support * * Extra stuff for namespace support *

View File

@ -1360,7 +1360,7 @@ static PyMethodDef libxmlMethods[] = {
{ "parent", libxml_parent, METH_VARARGS, NULL }, { "parent", libxml_parent, METH_VARARGS, NULL },
{ "type", libxml_type, METH_VARARGS, NULL }, { "type", libxml_type, METH_VARARGS, NULL },
{ "doc", libxml_doc, METH_VARARGS, NULL }, { "doc", libxml_doc, METH_VARARGS, NULL },
{ NULL, NULL, NULL, NULL} { NULL }
}; };
void initlibxml2mod(void) { void initlibxml2mod(void) {

View File

@ -146,7 +146,7 @@ xmlFreeMutex(xmlMutexPtr tok)
* xmlMutexLock() is used to lock a libxml2 token. * xmlMutexLock() is used to lock a libxml2 token.
*/ */
void void
xmlMutexLock(xmlMutexPtr tok) xmlMutexLock(xmlMutexPtr tok ATTRIBUTE_UNUSED)
{ {
#ifdef HAVE_PTHREAD_H #ifdef HAVE_PTHREAD_H
pthread_mutex_lock(&tok->lock); pthread_mutex_lock(&tok->lock);
@ -163,7 +163,7 @@ xmlMutexLock(xmlMutexPtr tok)
* xmlMutexUnlock() is used to unlock a libxml2 token. * xmlMutexUnlock() is used to unlock a libxml2 token.
*/ */
void void
xmlMutexUnlock(xmlMutexPtr tok) xmlMutexUnlock(xmlMutexPtr tok ATTRIBUTE_UNUSED)
{ {
#ifdef HAVE_PTHREAD_H #ifdef HAVE_PTHREAD_H
pthread_mutex_unlock(&tok->lock); pthread_mutex_unlock(&tok->lock);
@ -208,7 +208,7 @@ xmlNewRMutex(void)
* reentrant mutex. * reentrant mutex.
*/ */
void void
xmlFreeRMutex(xmlRMutexPtr tok) xmlFreeRMutex(xmlRMutexPtr tok ATTRIBUTE_UNUSED)
{ {
#ifdef HAVE_PTHREAD_H #ifdef HAVE_PTHREAD_H
pthread_mutex_destroy(&tok->lock); pthread_mutex_destroy(&tok->lock);
@ -225,7 +225,7 @@ xmlFreeRMutex(xmlRMutexPtr tok)
* xmlRMutexLock() is used to lock a libxml2 token_r. * xmlRMutexLock() is used to lock a libxml2 token_r.
*/ */
void void
xmlRMutexLock(xmlRMutexPtr tok) xmlRMutexLock(xmlRMutexPtr tok ATTRIBUTE_UNUSED)
{ {
#ifdef HAVE_PTHREAD_H #ifdef HAVE_PTHREAD_H
pthread_mutex_lock(&tok->lock); pthread_mutex_lock(&tok->lock);
@ -257,7 +257,7 @@ xmlRMutexLock(xmlRMutexPtr tok)
* xmlRMutexUnlock() is used to unlock a libxml2 token_r. * xmlRMutexUnlock() is used to unlock a libxml2 token_r.
*/ */
void void
xmlRMutexUnlock(xmlRMutexPtr tok) xmlRMutexUnlock(xmlRMutexPtr tok ATTRIBUTE_UNUSED)
{ {
#ifdef HAVE_PTHREAD_H #ifdef HAVE_PTHREAD_H
pthread_mutex_lock(&tok->lock); pthread_mutex_lock(&tok->lock);

9
tree.c
View File

@ -2906,9 +2906,6 @@ xmlCopyPropList(xmlNodePtr target, xmlAttrPtr cur) {
* Hence two functions, the public front-end call the inner ones * Hence two functions, the public front-end call the inner ones
*/ */
static xmlNodePtr
xmlStaticCopyNodeList(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent);
static xmlNodePtr static xmlNodePtr
xmlStaticCopyNode(const xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent, xmlStaticCopyNode(const xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent,
int recursive) { int recursive) {
@ -5695,9 +5692,6 @@ xmlBufferWriteQuotedString(xmlBufferPtr buf, const xmlChar *string) {
* * * *
************************************************************************/ ************************************************************************/
void
xmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, int level,
int format);
static void static void
xmlNodeListDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, int level, xmlNodeListDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, int level,
int format); int format);
@ -6121,9 +6115,6 @@ xmlElemDump(FILE *f, xmlDocPtr doc, xmlNodePtr cur) {
* * * *
************************************************************************/ ************************************************************************/
void
xmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur,
int level, int format, const char *encoding);
static void static void
xmlNodeListDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, xmlNodeListDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur,
int level, int format, const char *encoding); int level, int format, const char *encoding);

View File

@ -315,7 +315,6 @@ xmlValidStateDebug(xmlValidCtxtPtr ctxt) {
else if ((doc->intSubset == NULL) && \ else if ((doc->intSubset == NULL) && \
(doc->extSubset == NULL)) return(0) (doc->extSubset == NULL)) return(0)
xmlElementPtr xmlGetDtdElementDesc(xmlDtdPtr dtd, const xmlChar *name);
static xmlElementPtr xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name, static xmlElementPtr xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name,
int create); int create);
xmlAttributePtr xmlScanAttributeDecl(xmlDtdPtr dtd, const xmlChar *elem); xmlAttributePtr xmlScanAttributeDecl(xmlDtdPtr dtd, const xmlChar *elem);

View File

@ -11,15 +11,19 @@
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#ifdef HAVE_TIME_H #ifdef HAVE_TIME_H
#include <time.h> #include <time.h>
#endif #endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
#ifdef HAVE_MALLOC_H #ifdef HAVE_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif #endif
#ifdef HAVE_CTYPE_H #ifdef HAVE_CTYPE_H
#include <ctype.h> #include <ctype.h>
#endif #endif
@ -40,7 +44,6 @@
void xmlMallocBreakpoint(void); void xmlMallocBreakpoint(void);
void * xmlMemMalloc(size_t size); void * xmlMemMalloc(size_t size);
void * xmlMallocLoc(size_t size, const char * file, int line);
void * xmlMemRealloc(void *ptr,size_t size); void * xmlMemRealloc(void *ptr,size_t size);
void xmlMemFree(void *ptr); void xmlMemFree(void *ptr);
char * xmlMemoryStrdup(const char *str); char * xmlMemoryStrdup(const char *str);

View File

@ -60,8 +60,6 @@
/* #define DEBUG_EXPR */ /* #define DEBUG_EXPR */
/* #define DEBUG_EVAL_COUNTS */ /* #define DEBUG_EVAL_COUNTS */
void xmlXPathStringFunction(xmlXPathParserContextPtr ctxt, int nargs);
double xmlXPathStringEvalNumber(const xmlChar *str);
double xmlXPathDivideBy(double f, double fzero); double xmlXPathDivideBy(double f, double fzero);
static xmlNs xmlXPathXMLNamespaceStruct = { static xmlNs xmlXPathXMLNamespaceStruct = {
@ -517,7 +515,6 @@ xmlXPathDebugDumpValueTree(FILE *output, xmlNodeSetPtr cur, int depth) {
xmlXPathDebugDumpNodeList(output, cur->nodeTab[0]->children, depth + 1); xmlXPathDebugDumpNodeList(output, cur->nodeTab[0]->children, depth + 1);
} }
#if defined(LIBXML_XPTR_ENABLED) #if defined(LIBXML_XPTR_ENABLED)
void xmlXPathDebugDumpObject(FILE *output, xmlXPathObjectPtr cur, int depth);
static void static void
xmlXPathDebugDumpLocationSet(FILE *output, xmlLocationSetPtr cur, int depth) { xmlXPathDebugDumpLocationSet(FILE *output, xmlLocationSetPtr cur, int depth) {
int i; int i;

View File

@ -1212,7 +1212,6 @@ xmlXPtrEvalXPointer(xmlXPathParserContextPtr ctxt) {
* * * *
************************************************************************/ ************************************************************************/
void xmlXPtrRangeToFunction(xmlXPathParserContextPtr ctxt, int nargs);
void xmlXPtrStringRangeFunction(xmlXPathParserContextPtr ctxt, int nargs); void xmlXPtrStringRangeFunction(xmlXPathParserContextPtr ctxt, int nargs);
void xmlXPtrStartPointFunction(xmlXPathParserContextPtr ctxt, int nargs); void xmlXPtrStartPointFunction(xmlXPathParserContextPtr ctxt, int nargs);
void xmlXPtrEndPointFunction(xmlXPathParserContextPtr ctxt, int nargs); void xmlXPtrEndPointFunction(xmlXPathParserContextPtr ctxt, int nargs);