mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 12:25:09 +03:00
OS400: Add some more C macros equivalent procedures.
This commit is contained in:
parent
bce6a61e68
commit
5378ff9378
@ -383,5 +383,21 @@
|
|||||||
d #param1 value like(htmlNodePtr)
|
d #param1 value like(htmlNodePtr)
|
||||||
d #param2 10i 0 value
|
d #param2 10i 0 value
|
||||||
|
|
||||||
|
* C macros implemented as procedures for ILE/RPG support.
|
||||||
|
|
||||||
|
d htmlDefaultSubelement...
|
||||||
|
d pr * extproc('__htmlDefaultSubelement') const char *
|
||||||
|
d elt * value const htmlElemDesc *
|
||||||
|
|
||||||
|
d htmlElementAllowedHereDesc...
|
||||||
|
d pr 10i 0 extproc(
|
||||||
|
d '__htmlElementAllowedHereDesc')
|
||||||
|
d parent * value const htmlElemDesc *
|
||||||
|
d elt * value const htmlElemDesc *
|
||||||
|
|
||||||
|
d htmlRequiredAttrs...
|
||||||
|
d pr * extproc('__htmlRequiredAttrs') const char * *
|
||||||
|
d elt * value const htmlElemDesc *
|
||||||
|
|
||||||
/endif LIBXML_HTML_ENABLED
|
/endif LIBXML_HTML_ENABLED
|
||||||
/endif HTML_PARSER_H__
|
/endif HTML_PARSER_H__
|
||||||
|
@ -628,20 +628,20 @@
|
|||||||
|
|
||||||
/undefine XML_TESTVAL
|
/undefine XML_TESTVAL
|
||||||
/endif
|
/endif
|
||||||
*
|
|
||||||
* C macros implemented as procedures for ILE/RPG support.
|
* C macros implemented as procedures for ILE/RPG support.
|
||||||
*
|
|
||||||
/if defined(LIBXML_XPATH_ENABLED)
|
/if defined(LIBXML_XPATH_ENABLED)
|
||||||
d xmlXPathNodeSetGetLength...
|
d xmlXPathNodeSetGetLength...
|
||||||
d pr 10i 0 extproc('__xmlXPathNodeSetGetLength')
|
d pr 10i 0 extproc('__xmlXPathNodeSetGetLength')
|
||||||
d ns value like(xmlNodeSetPtr)
|
d ns value like(xmlNodeSetPtr)
|
||||||
*
|
|
||||||
d xmlXPathNodeSetItem...
|
d xmlXPathNodeSetItem...
|
||||||
d pr extproc('__xmlXPathNodeSetItem')
|
d pr extproc('__xmlXPathNodeSetItem')
|
||||||
d like(xmlNodePtr)
|
d like(xmlNodePtr)
|
||||||
d ns value like(xmlNodeSetPtr)
|
d ns value like(xmlNodeSetPtr)
|
||||||
d index 10i 0 value
|
d index 10i 0 value
|
||||||
*
|
|
||||||
d xmlXPathNodeSetIsEmpty...
|
d xmlXPathNodeSetIsEmpty...
|
||||||
d pr 10i 0 extproc('__xmlXPathNodeSetIsEmpty')
|
d pr 10i 0 extproc('__xmlXPathNodeSetIsEmpty')
|
||||||
d ns value like(xmlNodeSetPtr)
|
d ns value like(xmlNodeSetPtr)
|
||||||
|
@ -13,12 +13,13 @@
|
|||||||
#include "libxml/xmlmemory.h"
|
#include "libxml/xmlmemory.h"
|
||||||
#include "libxml/xpath.h"
|
#include "libxml/xpath.h"
|
||||||
#include "libxml/parser.h"
|
#include "libxml/parser.h"
|
||||||
|
#include "libxml/HTMLparser.h"
|
||||||
|
|
||||||
#include "rpgsupport.h"
|
#include "rpgsupport.h"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*** ILE/RPG cannot directly derefence a pointer value an has no macros.
|
*** ILE/RPG cannot directly derefence a pointer and has no macros.
|
||||||
*** The following additional procedures supply these functions.
|
*** The following additional procedures supply these functions.
|
||||||
*** In addition, the following code is adjusted for threads control at
|
*** In addition, the following code is adjusted for threads control at
|
||||||
*** compile time via the C macros.
|
*** compile time via the C macros.
|
||||||
@ -215,7 +216,7 @@ __xmlVaEnd(char * * list)
|
|||||||
#ifdef LIBXML_XPATH_ENABLED
|
#ifdef LIBXML_XPATH_ENABLED
|
||||||
|
|
||||||
int
|
int
|
||||||
__xmlXPathNodeSetGetLength(xmlNodeSetPtr ns)
|
__xmlXPathNodeSetGetLength(const xmlNodeSet * ns)
|
||||||
|
|
||||||
{
|
{
|
||||||
return xmlXPathNodeSetGetLength(ns);
|
return xmlXPathNodeSetGetLength(ns);
|
||||||
@ -223,7 +224,7 @@ __xmlXPathNodeSetGetLength(xmlNodeSetPtr ns)
|
|||||||
|
|
||||||
|
|
||||||
xmlNodePtr
|
xmlNodePtr
|
||||||
__xmlXPathNodeSetItem(xmlNodeSetPtr ns, int index)
|
__xmlXPathNodeSetItem(const xmlNodeSet * ns, int index)
|
||||||
|
|
||||||
{
|
{
|
||||||
return xmlXPathNodeSetItem(ns, index);
|
return xmlXPathNodeSetItem(ns, index);
|
||||||
@ -231,10 +232,39 @@ __xmlXPathNodeSetItem(xmlNodeSetPtr ns, int index)
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
__xmlXPathNodeSetIsEmpty(xmlNodeSetPtr ns)
|
__xmlXPathNodeSetIsEmpty(const xmlNodeSet * ns)
|
||||||
|
|
||||||
{
|
{
|
||||||
return xmlXPathNodeSetIsEmpty(ns);
|
return xmlXPathNodeSetIsEmpty(ns);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef LIBXML_HTML_ENABLED
|
||||||
|
|
||||||
|
const char *
|
||||||
|
__htmlDefaultSubelement(const htmlElemDesc * elt)
|
||||||
|
|
||||||
|
{
|
||||||
|
return htmlDefaultSubelement(elt);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
__htmlElementAllowedHereDesc(const htmlElemDesc * parent,
|
||||||
|
const htmlElemDesc * elt)
|
||||||
|
|
||||||
|
{
|
||||||
|
return htmlElementAllowedHereDesc(parent, elt);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const char * *
|
||||||
|
__htmlRequiredAttrs(const htmlElemDesc * elt)
|
||||||
|
|
||||||
|
{
|
||||||
|
return htmlRequiredAttrs(elt);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include <libxml/xmlmemory.h>
|
#include <libxml/xmlmemory.h>
|
||||||
#include <libxml/xpath.h>
|
#include <libxml/xpath.h>
|
||||||
|
#include "libxml/HTMLparser.h"
|
||||||
|
|
||||||
|
|
||||||
XMLPUBFUN xmlFreeFunc __get_xmlFree(void);
|
XMLPUBFUN xmlFreeFunc __get_xmlFree(void);
|
||||||
@ -145,4 +146,12 @@ XMLPUBFUN xmlNodePtr __xmlXPathNodeSetItem(xmlNodeSetPtr ns, int index);
|
|||||||
XMLPUBFUN int __xmlXPathNodeSetIsEmpty(xmlNodeSetPtr ns);
|
XMLPUBFUN int __xmlXPathNodeSetIsEmpty(xmlNodeSetPtr ns);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef LIBXML_HTML_ENABLED
|
||||||
|
XMLPUBFUN const char * __htmlDefaultSubelement(const htmlElemDesc * elt);
|
||||||
|
XMLPUBFUN int __htmlElementAllowedHereDesc(const htmlElemDesc * parent,
|
||||||
|
const htmlElemDesc * elt);
|
||||||
|
XMLPUBFUN const char * *
|
||||||
|
__htmlRequiredAttrs(const htmlElemDesc * elt);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user