Skip to content
Snippets Groups Projects
Commit bc253f9b266a authored by Daniel Veillard's avatar Daniel Veillard
Browse files

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
parent 8b210a0d2272
No related branches found
No related tags found
No related merge requests found
Fri Dec 13 14:50:12 CET 2002 Daniel Veillard <daniel@veillard.com>
* 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 <daniel@veillard.com>
* libxslt/numbers.c: numbering should not traverse XInclude
......
......@@ -182,6 +182,10 @@
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 @@
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 @@
name = None
self.comment = None
comment = ""
value = ""
value = "0"
while token != None:
if token[0] == "sep" and token[1] == "{":
token = self.token()
......@@ -874,6 +879,5 @@
self.enums.append((name, value, comment))
name = token[1]
comment = ""
value = ""
token = self.token()
if token[0] == "op" and token[1][0] == "=":
......@@ -878,5 +882,6 @@
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 @@
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,8 +1352,9 @@
output.write(" <struct name='%s' file='%s' type='%s'" % (
name, self.modulename_file(id.module), id.info))
name = id.info[7:]
if self.idx.structs.has_key(name) and \
type(self.idx.structs[name]) == type(()):
if self.idx.structs.has_key(name) and ( \
type(self.idx.structs[name].info) == type(()) or
type(self.idx.structs[name].info) == type([])):
output.write(">\n");
try:
for field in self.idx.structs[name].info:
......@@ -1346,7 +1358,6 @@
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 @@
output.write(" <typedef name='%s' file='%s' type='%s'/>\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(" <variable name='%s' file='%s' type='%s'/>\n" % (
name, self.modulename_file(id.module), id.info))
else:
output.write(" <variable name='%s' file='%s'/>\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 @@
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 @@
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"],
......
......@@ -50,6 +50,10 @@
<macro name='SAXON_NAMESPACE' file='exslt'>
<info>Namespace for SAXON extensions functions</info>
</macro>
<variable name='exsltLibexsltVersion' file='exslt' type='const int'/>
<variable name='exsltLibraryVersion' file='exslt' type='const char *'/>
<variable name='exsltLibxmlVersion' file='exslt' type='const int'/>
<variable name='exsltLibxsltVersion' file='exslt' type='const int'/>
<function name='exsltCommonRegister' file='exslt'>
<info>Registers the EXSLT - Common module</info>
<return type='void'/>
......
This diff is collapsed.
......@@ -121,9 +121,6 @@
freeTransformContext()
registerAllElement()
# functions from module transform.c
copyTree()
# functions from module variables
evalGlobalVariables()
evalOneUserParam()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment