1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

Nic Ferrier found debug statement left in the XPath conversion code Daniel

* python/types.c: Nic Ferrier found debug statement left in the
  XPath conversion code
Daniel
This commit is contained in:
Daniel Veillard
2006-02-22 15:11:07 +00:00
parent 5b4f56032b
commit 1255ae2e9a
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Feb 22 16:09:10 CET 2006 Daniel Veillard <daniel@veillard.com>
* python/types.c: Nic Ferrier found debug statement left in the
XPath conversion code
Tue Feb 21 20:21:07 CET 2006 Daniel Veillard <daniel@veillard.com> Tue Feb 21 20:21:07 CET 2006 Daniel Veillard <daniel@veillard.com>
* doc/xsltproc.1 doc/xsltproc.xml: new update from Daniel Leidert * doc/xsltproc.1 doc/xsltproc.xml: new update from Daniel Leidert

View File

@ -401,7 +401,9 @@ libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj)
case XPATH_RANGE: case XPATH_RANGE:
case XPATH_LOCATIONSET: case XPATH_LOCATIONSET:
default: default:
#ifdef DEBUG
printf("Unable to convert XPath object type %d\n", obj->type); printf("Unable to convert XPath object type %d\n", obj->type);
#endif
Py_INCREF(Py_None); Py_INCREF(Py_None);
ret = Py_None; ret = Py_None;
} }
@ -446,7 +448,9 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj)
cur = NULL; cur = NULL;
if (PyCObject_Check(node)) { if (PyCObject_Check(node)) {
#ifdef DEBUG
printf("Got a CObject\n"); printf("Got a CObject\n");
#endif
cur = PyxmlNode_Get(node); cur = PyxmlNode_Get(node);
} else if (PyInstance_Check(node)) { } else if (PyInstance_Check(node)) {
PyInstanceObject *inst = (PyInstanceObject *) node; PyInstanceObject *inst = (PyInstanceObject *) node;
@ -466,7 +470,9 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj)
} }
} }
} else { } else {
#ifdef DEBUG
printf("Unknown object in Python return list\n"); printf("Unknown object in Python return list\n");
#endif
} }
if (cur != NULL) { if (cur != NULL) {
xmlXPathNodeSetAdd(set, cur); xmlXPathNodeSetAdd(set, cur);
@ -474,7 +480,9 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj)
} }
ret = xmlXPathWrapNodeSet(set); ret = xmlXPathWrapNodeSet(set);
} else { } else {
#ifdef DEBUG
printf("Unable to convert Python Object to XPath"); printf("Unable to convert Python Object to XPath");
#endif
} }
Py_DECREF(obj); Py_DECREF(obj);
return (ret); return (ret);