[libxml2] OS400: use C macros to implement equivalent RPG support procedures.
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] OS400: use C macros to implement equivalent RPG support procedures.
- Date: Sat, 4 Oct 2014 13:21:39 +0000 (UTC)
commit bce6a61e68eca99575d4720a9b524ecbc30b04b1
Author: Patrick Monnerat <pm datasphere ch>
Date: Tue May 6 11:31:16 2014 +0200
OS400: use C macros to implement equivalent RPG support procedures.
os400/rpgsupport.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/os400/rpgsupport.c b/os400/rpgsupport.c
index 74f3859..a545483 100644
--- a/os400/rpgsupport.c
+++ b/os400/rpgsupport.c
@@ -213,11 +213,12 @@ __xmlVaEnd(char * * list)
#ifdef LIBXML_XPATH_ENABLED
+
int
__xmlXPathNodeSetGetLength(xmlNodeSetPtr ns)
{
- return ns? ns->nodeNr: 0;
+ return xmlXPathNodeSetGetLength(ns);
}
@@ -225,8 +226,7 @@ xmlNodePtr
__xmlXPathNodeSetItem(xmlNodeSetPtr ns, int index)
{
- return ns && index >= 0 && index < ns->nodeNr && ns->nodeTab?
- ns->nodeTab[index]: 0;
+ return xmlXPathNodeSetItem(ns, index);
}
@@ -234,6 +234,7 @@ int
__xmlXPathNodeSetIsEmpty(xmlNodeSetPtr ns)
{
- return !ns || !ns->nodeNr || !ns->nodeTab;
+ return xmlXPathNodeSetIsEmpty(ns);
}
+
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]