From ddf2a537c01f1fe79a665d799f7bf8b543f95876 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 13 Dec 2002 13:51:18 +0000 Subject: [PATCH] updated the apibuilder script, regenerated the APIs Daniel * doc/apibuild.py doc/libexslt-api.xml doc/libxslt-api.xml: updated the apibuilder script, regenerated the APIs Daniel --- ChangeLog | 5 + doc/apibuild.py | 37 +++- doc/libexslt-api.xml | 4 + doc/libxslt-api.xml | 366 +++++++++++++++++++++++++++++++--------- python/libxsltclass.txt | 3 - 5 files changed, 325 insertions(+), 90 deletions(-) diff --git a/ChangeLog b/ChangeLog index ba82a1ca..c82065e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Dec 13 14:50:12 CET 2002 Daniel Veillard + + * doc/apibuild.py doc/libexslt-api.xml doc/libxslt-api.xml: updated + the apibuilder script, regenerated the APIs + Fri Dec 13 11:59:07 CET 2002 Daniel Veillard * libxslt/numbers.c: numbering should not traverse XInclude diff --git a/doc/apibuild.py b/doc/apibuild.py index 97380c15..7f3158e1 100755 --- a/doc/apibuild.py +++ b/doc/apibuild.py @@ -182,6 +182,10 @@ class index: if self.functions.has_key(id): up = idx.functions[id] self.functions[id].update(None, up.type, up.info, up.extra) + # else: + # print "Function %s from %s is not declared in headers" % ( + # id, idx.functions[id].module) + # TODO: do the same for variables. def analyze_dict(self, type, dict): count = 0 @@ -745,6 +749,7 @@ class CParser: name = token[1] signature = self.signature if signature != None: + type = string.split(type, '(')[0] d = self.mergeFunctionComment(name, ((type, None), signature), 1) self.index.add(name, self.filename, not self.is_header, @@ -853,7 +858,7 @@ class CParser: name = None self.comment = None comment = "" - value = "" + value = "0" while token != None: if token[0] == "sep" and token[1] == "{": token = self.token() @@ -874,9 +879,9 @@ class CParser: self.enums.append((name, value, comment)) name = token[1] comment = "" - value = "" token = self.token() if token[0] == "op" and token[1][0] == "=": + value = "" if len(token[1]) > 1: value = token[1][1:] token = self.token() @@ -884,6 +889,12 @@ class CParser: token[1] != '}'): value = value + token[1] token = self.token() + else: + try: + value = "%d" % (int(value) + 1) + except: + print "Failed to compute value of enum %s" % (name) + value="" if token[0] == "sep" and token[1] == ",": token = self.token() else: @@ -1341,12 +1352,12 @@ class docBuilder: output.write(" \n"); try: for field in self.idx.structs[name].info: - print name, field desc = field[2] if desc == None: desc = '' @@ -1362,6 +1373,15 @@ class docBuilder: output.write(" \n" % ( name, self.modulename_file(id.module), id.info)) + def serialize_variable(self, output, name): + id = self.idx.variables[name] + if id.info != None: + output.write(" \n" % ( + name, self.modulename_file(id.module), id.info)) + else: + output.write(" \n" % ( + name, self.modulename_file(id.module))) + def serialize_function(self, output, name): id = self.idx.functions[name] output.write(" <%s name='%s' file='%s'>\n" % (id.type, name, @@ -1423,6 +1443,10 @@ class docBuilder: typedefs.sort() for typedef in typedefs: self.serialize_typedef(output, typedef) + variables = self.idx.variables.keys() + variables.sort() + for variable in variables: + self.serialize_variable(output, variable) functions = self.idx.functions.keys() functions.sort() for function in functions: @@ -1437,7 +1461,8 @@ def rebuild(): if glob.glob("../parser.c") != [] : print "Rebuilding API description for libxml2" builder = docBuilder("libxml2", ["..", "../include/libxml"], - ["xmlwin32version.h", "tst.c"]) + ["xmlwin32version.h", "tst.c", + "schemasInternals.h", "xmlschemas" ]) elif glob.glob("../libxslt/transform.c") != [] : print "Rebuilding API description for libxslt" builder = docBuilder("libxslt", ["../libxslt"], diff --git a/doc/libexslt-api.xml b/doc/libexslt-api.xml index f6c08ac3..6c5369b8 100644 --- a/doc/libexslt-api.xml +++ b/doc/libexslt-api.xml @@ -50,6 +50,10 @@ Namespace for SAXON extensions functions + + + + Registers the EXSLT - Common module diff --git a/doc/libxslt-api.xml b/doc/libxslt-api.xml index 504372f8..32a47cd7 100644 --- a/doc/libxslt-api.xml +++ b/doc/libxslt-api.xml @@ -459,85 +459,303 @@ This is James Clark's XT processor namespace for extensions. - - - + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + - - - - + + + + - + - + + + + + + + + + + + + + + - + + + + + + - + + + + + + + - + + + + + + + + + + + - + + + + + + + + + + + + + - + + + + + - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + Add template "call" to call stack @@ -558,7 +776,7 @@ - + @@ -790,13 +1008,6 @@ - - Make a copy of the full tree under the element node @node and insert it as last child of @insert - - - - - Process an debug node @@ -858,11 +1069,11 @@ - + Deallocates an #xsltElemPreComp structure. - + @@ -959,7 +1170,7 @@ A function called at initialization time of an XSLT extension module. - + @@ -989,7 +1200,7 @@ A function called at shutdown time of an XSLT extension module. - + @@ -1211,7 +1422,7 @@ - + @@ -1437,7 +1648,7 @@ - + @@ -1449,13 +1660,6 @@ - - - - - - - Process the xslt processing-instruction node on the source node @@ -1648,7 +1852,7 @@ User provided function to check the value of a string like a file path or an URL ... - + @@ -1739,20 +1943,20 @@ Signature of the function to use during sorting - + A function called at initialization time of an XSLT extension module. - + A function called at shutdown time of an XSLT extension module. - + @@ -1802,7 +2006,7 @@ - + @@ -1817,7 +2021,7 @@ Signature of the function associated to elements part of the stylesheet language like xsl:if or xsl:apply-templates. - + diff --git a/python/libxsltclass.txt b/python/libxsltclass.txt index 12b6abcb..ef2bc6cf 100644 --- a/python/libxsltclass.txt +++ b/python/libxsltclass.txt @@ -121,9 +121,6 @@ Class transformCtxt() freeTransformContext() registerAllElement() - # functions from module transform.c - copyTree() - # functions from module variables evalGlobalVariables() evalOneUserParam()