From 0f39f084c1b81180a6a7d068c35b793d93bb6741 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sun, 10 Feb 2002 19:31:34 +0000 Subject: [PATCH] fixed a small warning. rebuilt the APIs Daniel * python/libxml.c : fixed a small warning. * doc/libxslt-api.xml doc/libxslt-decl.txt doc/libxslt-refs.xml python/libxsltclass.txt: rebuilt the APIs Daniel --- ChangeLog | 6 ++++++ doc/libxslt-api.xml | 19 +++++++++++++++++++ doc/libxslt-decl.txt | 35 ++++++++++++++++++++++++++++++++++- doc/libxslt-refs.xml | 9 +++++++++ python/libxslt.c | 2 +- python/libxsltclass.txt | 4 ++++ 6 files changed, 73 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5036d26..a60ddc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Feb 10 20:25:28 CET 2002 Daniel Veillard + + * python/libxml.c : fixed a small warning. + * doc/libxslt-api.xml doc/libxslt-decl.txt doc/libxslt-refs.xml + python/libxsltclass.txt: rebuilt the APIs + Sun Feb 10 20:16:15 CET 2002 Daniel Veillard * libxslt/imports.c libxslt/numbers.c libxslt/pattern.c diff --git a/doc/libxslt-api.xml b/doc/libxslt-api.xml index f939795..708fc7b 100644 --- a/doc/libxslt-api.xml +++ b/doc/libxslt-api.xml @@ -96,6 +96,9 @@ + + + @@ -133,6 +136,8 @@ + + @@ -405,6 +410,8 @@ registering macro, not general purpose at all but used in different modules + + This is Michael Kay's Saxon processor namespace for extensions @@ -470,6 +477,14 @@ + + + + + + + + Apply the xsl:use-attribute-sets @@ -606,6 +621,8 @@ + + Process the xslt copy node on the source node @@ -1354,6 +1371,8 @@ + + Save the profiling informations on output diff --git a/doc/libxslt-decl.txt b/doc/libxslt-decl.txt index 7a0a5e2..c63d163 100644 --- a/doc/libxslt-decl.txt +++ b/doc/libxslt-decl.txt @@ -106,7 +106,7 @@ typedef xsltCompMatch *xsltCompMatchPtr; xsltCompilePattern xsltCompMatchPtr -const xmlChar *pattern,xmlDocPtr doc,xmlNodePtr node +const xmlChar *pattern,xmlDocPtr doc,xmlNodePtr node,xsltStylesheetPtr style,xsltTransformContextPtr runtime xsltFreeCompMatchList @@ -1075,6 +1075,24 @@ xsltStylesheetPtr style #define XSLT_PAT_NO_PRIORITY -12345789 +xsltRuntimeExtra + + +xsltRuntimeExtraPtr +typedef xsltRuntimeExtra *xsltRuntimeExtraPtr; + + +xsltRuntimeExtra +struct xsltRuntimeExtra { + void *info; /* pointer to the extra data */ + xmlFreeFunc deallocate; /* pointer to the deallocation routine */ +}; + + +XSLT_RUNTIME_EXTRA +#define XSLT_RUNTIME_EXTRA(ctxt, nr) (ctxt)->extras[(nr)].info + + xsltTemplate @@ -1392,6 +1410,7 @@ struct xsltStylesheet { * Extensions */ xmlHashTablePtr extInfos; /* the extension data */ + int extrasNr; /* the number of extras required */ }; @@ -1468,6 +1487,10 @@ struct xsltTransformContext { long *profTab; /* the profile template stack */ void *_private; /* user defined data */ + + int extrasNr; /* the number of extras used */ + int extrasMax; /* the number of extras allocated */ + xsltRuntimeExtraPtr extras; /* extra per runtime informations */ }; @@ -1547,3 +1570,13 @@ xsltDecimalFormatPtr self,xmlChar *format,double number,xmlChar **result void xsltStylesheetPtr style,xmlNodePtr templ + +xsltAllocateExtra +int +xsltStylesheetPtr style + + +xsltAllocateExtraCtxt +int +xsltTransformContextPtr ctxt + diff --git a/doc/libxslt-refs.xml b/doc/libxslt-refs.xml index 7a59d93..f4467e0 100644 --- a/doc/libxslt-refs.xml +++ b/doc/libxslt-refs.xml @@ -941,6 +941,7 @@ + @@ -987,6 +988,7 @@ + @@ -1002,6 +1004,7 @@ + @@ -1079,6 +1082,7 @@ + @@ -1285,6 +1289,9 @@ + + + @@ -1322,6 +1329,8 @@ + + diff --git a/python/libxslt.c b/python/libxslt.c index ec7e4d7..4ede77c 100644 --- a/python/libxslt.c +++ b/python/libxslt.c @@ -349,7 +349,7 @@ libxslt_xsltCleanup(PyObject *self, PyObject *args) { ************************************************************************/ static PyMethodDef libxsltMethods[] = { #include "libxslt-export.c" - { NULL, NULL, NULL, NULL } + { NULL } }; void initlibxsltmod(void) { diff --git a/python/libxsltclass.txt b/python/libxsltclass.txt index e359b1d..0976401 100644 --- a/python/libxsltclass.txt +++ b/python/libxsltclass.txt @@ -128,6 +128,9 @@ Class transformCtxt() quoteOneUserParam() variableLookup() + # functions from module xsltInternals + allocateExtraCtxt() + # functions from module xsltutils message() printErrorContext() @@ -190,6 +193,7 @@ Class stylesheet() parseGlobalVariable() # functions from module xsltInternals + allocateExtra() freeStylesheet() parseStylesheetOutput() parseStylesheetProcess() -- 2.7.4