mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
Return the previous as opposed to the next node (I guess this is the
* python/libxml.c (libxml_prev): Return the previous as opposed to the next node (I guess this is the result of some cut & paste programming:) Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Mon Nov 24 14:13:21 CET 2002 ERDI Gergo <cactus@cactus.rulez.org>
|
||||||
|
|
||||||
|
* python/libxml.c (libxml_prev): Return the previous as opposed to
|
||||||
|
the next node (I guess this is the result of some cut & paste programming:)
|
||||||
|
|
||||||
Sat Nov 23 17:22:22 CET 2002 Daniel Veillard <daniel@veillard.com>
|
Sat Nov 23 17:22:22 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* doc/Makefile.am: Jan Rafaj pointed a bug in the Makefile.
|
* doc/Makefile.am: Jan Rafaj pointed a bug in the Makefile.
|
||||||
|
@ -1640,13 +1640,13 @@ libxml_prev(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
|||||||
case XML_ATTRIBUTE_NODE:{
|
case XML_ATTRIBUTE_NODE:{
|
||||||
xmlAttrPtr attr = (xmlAttrPtr) cur;
|
xmlAttrPtr attr = (xmlAttrPtr) cur;
|
||||||
|
|
||||||
res = (xmlNodePtr) attr->next;
|
res = (xmlNodePtr) attr->prev;
|
||||||
}
|
}
|
||||||
case XML_NAMESPACE_DECL:
|
case XML_NAMESPACE_DECL:
|
||||||
res = NULL;
|
res = NULL;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
res = cur->next;
|
res = cur->prev;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
resultobj = libxml_xmlNodePtrWrap(res);
|
resultobj = libxml_xmlNodePtrWrap(res);
|
||||||
|
Reference in New Issue
Block a user