diff options
author | Patrick Monnerat <pm@datasphere.ch> | 2014-05-06 11:31:16 +0200 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2014-10-04 21:13:48 +0800 |
commit | bce6a61e68eca99575d4720a9b524ecbc30b04b1 (patch) | |
tree | e4da3e4748a0ef3c80871f1773435d6a93806288 /os400 | |
parent | 02fd12987418007568cd9bad12eef08a75fb134b (diff) | |
download | android_external_libxml2-bce6a61e68eca99575d4720a9b524ecbc30b04b1.tar.gz android_external_libxml2-bce6a61e68eca99575d4720a9b524ecbc30b04b1.tar.bz2 android_external_libxml2-bce6a61e68eca99575d4720a9b524ecbc30b04b1.zip |
OS400: use C macros to implement equivalent RPG support procedures.
Diffstat (limited to 'os400')
-rw-r--r-- | os400/rpgsupport.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/os400/rpgsupport.c b/os400/rpgsupport.c index 74f3859e..a5454831 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 |