From: Daniel Veillard Date: Wed, 22 Feb 2006 15:11:07 +0000 (+0000) Subject: Nic Ferrier found debug statement left in the XPath conversion code Daniel X-Git-Tag: v1.1.28~267 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1255ae2e9a0380a04b113193185a33070dcf80f4;p=platform%2Fupstream%2Flibxslt.git 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 --- diff --git a/ChangeLog b/ChangeLog index c8bf99d..f428863 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 22 16:09:10 CET 2006 Daniel Veillard + + * python/types.c: Nic Ferrier found debug statement left in the + XPath conversion code + Tue Feb 21 20:21:07 CET 2006 Daniel Veillard * doc/xsltproc.1 doc/xsltproc.xml: new update from Daniel Leidert diff --git a/python/types.c b/python/types.c index 276ae35..53bdd5c 100644 --- a/python/types.c +++ b/python/types.c @@ -401,7 +401,9 @@ libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj) case XPATH_RANGE: case XPATH_LOCATIONSET: default: +#ifdef DEBUG printf("Unable to convert XPath object type %d\n", obj->type); +#endif Py_INCREF(Py_None); ret = Py_None; } @@ -446,7 +448,9 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj) cur = NULL; if (PyCObject_Check(node)) { +#ifdef DEBUG printf("Got a CObject\n"); +#endif cur = PyxmlNode_Get(node); } else if (PyInstance_Check(node)) { PyInstanceObject *inst = (PyInstanceObject *) node; @@ -466,7 +470,9 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj) } } } else { +#ifdef DEBUG printf("Unknown object in Python return list\n"); +#endif } if (cur != NULL) { xmlXPathNodeSetAdd(set, cur); @@ -474,7 +480,9 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj) } ret = xmlXPathWrapNodeSet(set); } else { +#ifdef DEBUG printf("Unable to convert Python Object to XPath"); +#endif } Py_DECREF(obj); return (ret);