summaryrefslogtreecommitdiff
path: root/python/generator.py
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-02-09 18:03:01 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-02-09 18:03:01 +0000
commit5e5c2d0a93e3e1bef0aaa63500cbbbd53e6a4063 (patch)
treef9a61eeca0ef64b11ead67200454226ec3e3f110 /python/generator.py
parentb6c1e2f9362af99f8f35ea4b299d34d297c615cd (diff)
downloadlibxml2-5e5c2d0a93e3e1bef0aaa63500cbbbd53e6a4063.tar.gz
Justin Fletcher found some parts of the code needing cleanup Fixed the
* parserInternals.c valid.c: Justin Fletcher found some parts of the code needing cleanup * libxml.spec.in python/Makefile.am python/generator.py python/libxml.c python/libxml.py: Fixed the python Makefiles corrected a bug showing up on ia64, changed the name of the python internal module too Daniel
Diffstat (limited to 'python/generator.py')
-rwxr-xr-xpython/generator.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/python/generator.py b/python/generator.py
index 13a10113..13e37f4d 100755
--- a/python/generator.py
+++ b/python/generator.py
@@ -378,7 +378,8 @@ def print_function_wrapper(name, output, export, include):
include.write("PyObject * ")
include.write("libxml_%s(PyObject *self, PyObject *args);\n" % (name))
- export.write(" { \"%s\", libxml_%s, METH_VARARGS },\n" % (name, name))
+ export.write(" { \"%s\", libxml_%s, METH_VARARGS, NULL },\n" %
+ (name, name))
if file == "python":
# Those have been manually generated
@@ -726,7 +727,7 @@ if function_classes.has_key("None"):
classes.write(" ret = ");
else:
classes.write(" ");
- classes.write("_libxml.%s(" % name)
+ classes.write("libxml2mod.%s(" % name)
n = 0
for arg in args:
if n != 0:
@@ -775,7 +776,7 @@ for classname in classes_list:
if classes_destructors.has_key(classname):
classes.write(" def __del__(self):\n")
classes.write(" if self._o != None:\n")
- classes.write(" _libxml.%s(self._o)\n" %
+ classes.write(" libxml2mod.%s(self._o)\n" %
classes_destructors[classname]);
classes.write(" self._o = None\n\n");
flist = function_classes[classname]
@@ -816,7 +817,7 @@ for classname in classes_list:
classes.write(" ret = ");
else:
classes.write(" ");
- classes.write("_libxml.%s(" % name)
+ classes.write("libxml2mod.%s(" % name)
n = 0
for arg in args:
if n != 0: