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
diff --git a/python/generator.py b/python/generator.py
index 13a1011..13e37f4 100755
--- a/python/generator.py
+++ b/python/generator.py
@@ -378,7 +378,8 @@
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 @@
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 @@
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 @@
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: