From 35a201cc8ef0c3f5b2df88d2e528aabee1048348 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 30 Apr 2021 18:47:09 +0200 Subject: Initial/Final commit --- libxml2-2.9.10/os400/libxmlrpg/DOCBparser.rpgle | 120 ++ libxml2-2.9.10/os400/libxmlrpg/HTMLparser.rpgle | 419 +++++ libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle | 176 ++ libxml2-2.9.10/os400/libxmlrpg/SAX.rpgle | 213 +++ libxml2-2.9.10/os400/libxmlrpg/SAX2.rpgle | 256 +++ libxml2-2.9.10/os400/libxmlrpg/c14n.rpgle | 125 ++ libxml2-2.9.10/os400/libxmlrpg/catalog.rpgle | 248 +++ libxml2-2.9.10/os400/libxmlrpg/chvalid.rpgle | 107 ++ libxml2-2.9.10/os400/libxmlrpg/debugXML.rpgle | 254 +++ libxml2-2.9.10/os400/libxmlrpg/dict.rpgle | 85 + libxml2-2.9.10/os400/libxmlrpg/encoding.rpgle | 284 ++++ libxml2-2.9.10/os400/libxmlrpg/entities.rpgle | 176 ++ libxml2-2.9.10/os400/libxmlrpg/globals.rpgle | 581 +++++++ libxml2-2.9.10/os400/libxmlrpg/hash.rpgle | 243 +++ libxml2-2.9.10/os400/libxmlrpg/list.rpgle | 179 +++ libxml2-2.9.10/os400/libxmlrpg/nanoftp.rpgle | 172 ++ libxml2-2.9.10/os400/libxmlrpg/nanohttp.rpgle | 110 ++ libxml2-2.9.10/os400/libxmlrpg/parser.rpgle | 1436 +++++++++++++++++ .../os400/libxmlrpg/parserInternals.rpgle | 598 +++++++ libxml2-2.9.10/os400/libxmlrpg/pattern.rpgle | 130 ++ libxml2-2.9.10/os400/libxmlrpg/relaxng.rpgle | 310 ++++ .../os400/libxmlrpg/schemasInternals.rpgle | 1142 +++++++++++++ libxml2-2.9.10/os400/libxmlrpg/schematron.rpgle | 204 +++ libxml2-2.9.10/os400/libxmlrpg/threads.rpgle | 73 + libxml2-2.9.10/os400/libxmlrpg/transcode.rpgle | 71 + libxml2-2.9.10/os400/libxmlrpg/tree.rpgle | 1681 +++++++++++++++++++ libxml2-2.9.10/os400/libxmlrpg/uri.rpgle | 103 ++ libxml2-2.9.10/os400/libxmlrpg/valid.rpgle | 605 +++++++ libxml2-2.9.10/os400/libxmlrpg/xinclude.rpgle | 156 ++ libxml2-2.9.10/os400/libxmlrpg/xlink.rpgle | 169 ++ libxml2-2.9.10/os400/libxmlrpg/xmlIO.rpgle | 464 ++++++ libxml2-2.9.10/os400/libxmlrpg/xmlTypesC.rpgle | 26 + libxml2-2.9.10/os400/libxmlrpg/xmlautomata.rpgle | 183 +++ libxml2-2.9.10/os400/libxmlrpg/xmlerror.rpgle | 1686 ++++++++++++++++++++ libxml2-2.9.10/os400/libxmlrpg/xmlexports.rpgle | 15 + libxml2-2.9.10/os400/libxmlrpg/xmlmemory.rpgle | 247 +++ libxml2-2.9.10/os400/libxmlrpg/xmlmodule.rpgle | 57 + libxml2-2.9.10/os400/libxmlrpg/xmlreader.rpgle | 668 ++++++++ libxml2-2.9.10/os400/libxmlrpg/xmlregexp.rpgle | 262 +++ libxml2-2.9.10/os400/libxmlrpg/xmlsave.rpgle | 105 ++ libxml2-2.9.10/os400/libxmlrpg/xmlschemas.rpgle | 331 ++++ .../os400/libxmlrpg/xmlschemastypes.rpgle | 254 +++ libxml2-2.9.10/os400/libxmlrpg/xmlstdarg.rpgle | 35 + libxml2-2.9.10/os400/libxmlrpg/xmlstring.rpgle | 180 +++ libxml2-2.9.10/os400/libxmlrpg/xmlunicode.rpgle | 836 ++++++++++ libxml2-2.9.10/os400/libxmlrpg/xmlversion.rpgle.in | 353 ++++ libxml2-2.9.10/os400/libxmlrpg/xmlwriter.rpgle | 801 ++++++++++ libxml2-2.9.10/os400/libxmlrpg/xpath.rpgle | 675 ++++++++ .../os400/libxmlrpg/xpathInternals.rpgle | 693 ++++++++ libxml2-2.9.10/os400/libxmlrpg/xpointer.rpgle | 158 ++ 50 files changed, 18455 insertions(+) create mode 100644 libxml2-2.9.10/os400/libxmlrpg/DOCBparser.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/HTMLparser.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/SAX.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/SAX2.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/c14n.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/catalog.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/chvalid.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/debugXML.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/dict.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/encoding.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/entities.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/globals.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/hash.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/list.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/nanoftp.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/nanohttp.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/parser.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/parserInternals.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/pattern.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/relaxng.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/schemasInternals.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/schematron.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/threads.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/transcode.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/tree.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/uri.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/valid.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xinclude.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xlink.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlIO.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlTypesC.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlautomata.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlerror.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlexports.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlmemory.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlmodule.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlreader.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlregexp.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlsave.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlschemas.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlschemastypes.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlstdarg.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlstring.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlunicode.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlversion.rpgle.in create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlwriter.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xpath.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xpathInternals.rpgle create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xpointer.rpgle (limited to 'libxml2-2.9.10/os400/libxmlrpg') diff --git a/libxml2-2.9.10/os400/libxmlrpg/DOCBparser.rpgle b/libxml2-2.9.10/os400/libxmlrpg/DOCBparser.rpgle new file mode 100644 index 0000000..08a6b8c --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/DOCBparser.rpgle @@ -0,0 +1,120 @@ + * Summary: old DocBook SGML parser + * Description: interface for a DocBook SGML non-verifying parser + * This code is DEPRECATED, and should not be used anymore. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(DOCB_PARSER_H__) + /define DOCB_PARSER_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_DOCB_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/parser" + /include "libxmlrpg/parserInternals" + + * Most of the back-end structures from XML and SGML are shared. + + d docbParserCtxtPtr... + d s based(######typedef######) + d like(xmlParserCtxtPtr) + + d docbParserCtxt ds based(docbParserCtxtPtr) + d likeds(xmlParserCtxt) + + d docbSAXHandlerPtr... + d s based(######typedef######) + d like(xmlSAXHandlerPtr) + + d docbSAXHandler ds based(docbSAXHandlerPtr) + d likeds(xmlSAXHandler) + + d docbParserInputPtr... + d s based(######typedef######) + d like(xmlParserInputPtr) + + d docbParserInput... + d ds based(docbParserInputPtr) + d likeds(xmlParserInput) + + d docbDocPtr s based(######typedef######) + d like(xmlDocPtr) + + * There is only few public functions. + + d docbEncodeEntities... + d pr extproc('docbEncodeEntities') + d like(xmlCint) + d out * value options(*string) unsigned char * + d outlen * value int * + d in * value options(*string) const unsigned char + d * + d inlen * value int * + d quoteChar value like(xmlCint) + + d docbSAXParseDoc... + d pr extproc('docbSAXParseDoc') + d like(docbDocPtr) + d cur * value options(*string) xmlChar * + d encoding * value options(*string) const char * + d sax value like(docbSAXHandlerPtr) + d userData * value void * + + d docbParseDoc pr extproc('docbParseDoc') + d like(docbDocPtr) + d cur * value options(*string) xmlChar * + d encoding * value options(*string) const char * + + d docbSAXParseFile... + d pr extproc('docbSAXParseFile') + d like(docbDocPtr) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + d sax value like(docbSAXHandlerPtr) + d userData * value void * + + d docbParseFile pr extproc('docbParseFile') + d like(docbDocPtr) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + + * Interfaces for the Push mode. + + d docbFreeParserCtxt... + d pr extproc('docbFreeParserCtxt') + d ctxt value like(docbParserCtxtPtr) + + d docbCreatePushParserCtxt... + d pr extproc('docbCreatePushParserCtxt') + d like(docbParserCtxtPtr) + d sax value like(docbSAXHandlerPtr) + d user_data * value void * + d chunk * value options(*string) const char * + d size value like(xmlCint) + d filename * value options(*string) const char * + d enc value like(xmlCharEncoding) + + d docbParseChunk pr extproc('docbParseChunk') + d like(xmlCint) + d ctxt value like(docbParserCtxtPtr) + d chunk * value options(*string) const char * + d size value like(xmlCint) + d terminate value like(xmlCint) + + d docbCreateFileParserCtxt... + d pr extproc('docbCreateFileParserCtxt') + d like(docbParserCtxtPtr) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + + d docbParseDocument... + d pr extproc('docbParseDocument') + d like(xmlCint) + d ctxt value like(docbParserCtxtPtr) + + /endif LIBXML_DOCB_ENABLED + /endif DOCB_PARSER_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/HTMLparser.rpgle b/libxml2-2.9.10/os400/libxmlrpg/HTMLparser.rpgle new file mode 100644 index 0000000..c27d8e5 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/HTMLparser.rpgle @@ -0,0 +1,419 @@ + * Summary: interface for an HTML 4.0 non-verifying parser + * Description: this module implements an HTML 4.0 non-verifying parser + * with API compatible with the XML parser ones. It should + * be able to parse "real world" HTML, even if severely + * broken from a specification point of view. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(HTML_PARSER_H__) + /define HTML_PARSER_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_HTML_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/parser" + + * Most of the back-end structures from XML and HTML are shared. + + d htmlParserCtxtPtr... + d s based(######typedef######) + d like(xmlParserCtxtPtr) + + d htmlParserCtxt ds based(htmlParserCtxtPtr) + d likeds(xmlParserCtxt) + + d htmlParserNodeInfoPtr... + d s based(######typedef######) + d like(xmlParserNodeInfoPtr) + + d htmlParserNodeInfo... + d ds based(htmlParserNodeInfoPtr) + d likeds(xmlParserNodeInfo) + + d htmlSAXHandlerPtr... + d s based(######typedef######) + d like(xmlSAXHandlerPtr) + + d htmlSAXHandler ds based(htmlSAXHandlerPtr) + d likeds(xmlSAXHandler) + + d htmlParserInputPtr... + d s based(######typedef######) + d like(xmlParserInputPtr) + + d htmlParserInput... + d ds based(htmlParserInputPtr) + d likeds(xmlParserInput) + + d htmlDocPtr s based(######typedef######) + d like(xmlDocPtr) + + d htmlNodePtr s based(######typedef######) + d like(xmlNodePtr) + + * Internal description of an HTML element, representing HTML 4.01 + * and XHTML 1.0 (which share the same structure). + + d htmlElemDescPtr... + d s * based(######typedef######) + + d htmlElemDesc ds based(htmlElemDescPtr) + d align qualified + d name * const char * + d startTag like(xmlCchar) Start tag implied ? + d endTag like(xmlCchar) End tag implied ? + d saveEndTag like(xmlCchar) Save end tag ? + d empty like(xmlCchar) Empty element ? + d depr like(xmlCchar) Deprecated element ? + d dtd like(xmlCchar) Loose DTD/Frameset + d isinline like(xmlCchar) Block 0/inline elem? + d desc * const char * + * + * New fields encapsulating HTML structure + * + * Bugs: + * This is a very limited representation. It fails to tell us when + * an element *requires* subelements (we only have whether they're + * allowed or not), and it doesn't tell us where CDATA and PCDATA + * are allowed. Some element relationships are not fully represented: + * these are flagged with the word MODIFIER + * + d subelts * const char * * + d defaultsubelt * const char * + d attrs_opt * const char * * + d attrs_depr * const char * * + d attrs_req * const char * * + + * Internal description of an HTML entity. + + d htmlEntityDescPtr... + d s * based(######typedef######) + + d htmlEntityDesc... + d ds based(htmlEntityDescPtr) + d align qualified + d value like(xmlCuint) + d name * const char * + d desc * const char * + + * There is only few public functions. + + d htmlTagLookup pr extproc('htmlTagLookup') + d like(htmlElemDescPtr) const + d tag * value options(*string) const xmlChar * + + d htmlEntityLookup... + d pr extproc('htmlEntityLookup') + d like(htmlEntityDescPtr) const + d name * value options(*string) const xmlChar * + + d htmlEntityValueLookup... + d pr extproc('htmlEntityValueLookup') + d like(htmlEntityDescPtr) const + d value value like(xmlCuint) + + d htmlIsAutoClosed... + d pr extproc('htmlIsAutoClosed') + d like(xmlCint) + d doc value like(htmlDocPtr) + d elem value like(htmlNodePtr) + + d htmlAutoCloseTag... + d pr extproc('htmlAutoCloseTag') + d like(xmlCint) + d doc value like(htmlDocPtr) + d name * value options(*string) const xmlChar * + d elem value like(htmlNodePtr) + + d htmlParseEntityRef... + d pr extproc('htmlParseEntityRef') + d like(htmlEntityDescPtr) const + d ctxt value like(htmlParserCtxtPtr) + d str * const xmlChar *(*) + + d htmlParseCharRef... + d pr extproc('htmlParseCharRef') + d like(xmlCint) + d ctxt value like(htmlParserCtxtPtr) + + d htmlParseElement... + d pr extproc('htmlParseElement') + d ctxt value like(htmlParserCtxtPtr) + + d htmlNewParserCtxt... + d pr extproc('htmlNewParserCtxt') + d like(htmlParserCtxtPtr) + + d htmlCreateMemoryParserCtxt... + d pr extproc('htmlCreateMemoryParserCtxt') + d like(htmlParserCtxtPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + + d htmlParseDocument... + d pr extproc('htmlParseDocument') + d like(xmlCint) + d ctxt value like(htmlParserCtxtPtr) + + d htmlSAXParseDoc... + d pr extproc('htmlSAXParseDoc') + d like(htmlDocPtr) + d cur * value options(*string) xmlChar * + d encoding * value options(*string) const char * + d sax value like(htmlSAXHandlerPtr) + d userData * value void * + + d htmlParseDoc pr extproc('htmlParseDoc') + d like(htmlDocPtr) + d cur * value options(*string) xmlChar * + d encoding * value options(*string) const char * + + d htmlSAXParseFile... + d pr extproc('htmlSAXParseFile') + d like(htmlDocPtr) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + d sax value like(htmlSAXHandlerPtr) + d userData * value void * + + d htmlParseFile pr extproc('htmlParseFile') + d like(htmlDocPtr) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + + d UTF8ToHtml pr extproc('UTF8ToHtml') + d like(xmlCint) + d out 65535 options(*varsize) unsigned char [] + d outlen like(xmlCint) + d in * value options(*string) const unsigned char* + d inlen like(xmlCint) + + d htmlEncodeEntities... + d pr extproc('htmlEncodeEntities') + d like(xmlCint) + d out 65535 options(*varsize) unsigned char [] + d outlen like(xmlCint) + d in * value options(*string) const unsigned char* + d inlen like(xmlCint) + d quoteChar value like(xmlCint) + + d htmlIsScriptAttribute... + d pr extproc('htmlIsScriptAttribute') + d like(xmlCint) + d name * value options(*string) const xmlChar * + + d htmlHandleOmittedElem... + d pr extproc('htmlHandleOmittedElem') + d like(xmlCint) + d val value like(xmlCint) + + /if defined(LIBXML_PUSH_ENABLED) + + * Interfaces for the Push mode. + + d htmlCreatePushParserCtxt... + d pr extproc('htmlCreatePushParserCtxt') + d like(htmlParserCtxtPtr) + d sax value like(htmlSAXHandlerPtr) + d user_data * value void * + d chunk * value options(*string) const char * + d size value like(xmlCint) + d filename * value options(*string) const char * + d enc value like(xmlCharEncoding) + + d htmlParseChunk pr extproc('htmlParseChunk') + d like(xmlCint) + d ctxt value like(htmlParserCtxtPtr) + d chunk * value options(*string) const char * + d size value like(xmlCint) + d terminate value like(xmlCint) + /endif LIBXML_PUSH_ENABLED + + d htmlFreeParserCtxt... + d pr extproc('htmlFreeParserCtxt') + d ctxt value like(htmlParserCtxtPtr) + + * New set of simpler/more flexible APIs + + * xmlParserOption: + * + * This is the set of XML parser options that can be passed down + * to the xmlReadDoc() and similar calls. + + d htmlParserOption... + d s based(######typedef######) + d like(xmlCenum) + d HTML_PARSE_RECOVER... Relaxed parsing + d c X'00000001' + d HTML_PARSE_NODEFDTD... No default doctype + d c X'00000004' + d HTML_PARSE_NOERROR... No error reports + d c X'00000020' + d HTML_PARSE_NOWARNING... No warning reports + d c X'00000040' + d HTML_PARSE_PEDANTIC... Pedantic err reports + d c X'00000080' + d HTML_PARSE_NOBLANKS... Remove blank nodes + d c X'00000100' + d HTML_PARSE_NONET... Forbid net access + d c X'00000800' + d HTML_PARSE_NOIMPLIED... No implied html/body + d c X'00002000' + d HTML_PARSE_COMPACT... compact small txtnod + d c X'00010000' + d HTML_PARSE_IGNORE_ENC... Ignore encoding hint + d c X'00200000' + + d htmlCtxtReset pr extproc('htmlCtxtReset') + d ctxt value like(htmlParserCtxtPtr) + + d htmlCtxtUseOptions... + d pr extproc('htmlCtxtUseOptions') + d like(xmlCint) + d ctxt value like(htmlParserCtxtPtr) + d options value like(xmlCint) + + d htmlReadDoc pr extproc('htmlReadDoc') + d like(htmlDocPtr) + d cur * value options(*string) const xmlChar * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d htmlReadFile pr extproc('htmlReadFile') + d like(htmlDocPtr) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d htmlReadMemory pr extproc('htmlReadMemory') + d like(htmlDocPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d htmlReadFd pr extproc('htmlReadFd') + d like(htmlDocPtr) + d fd value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d htmlReadIO pr extproc('htmlReadIO') + d like(htmlDocPtr) + d ioread value like(xmlInputReadCallback) + d ioclose value like(xmlInputCloseCallback) + d ioctx * value void * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d htmlCtxtReadDoc... + d pr extproc('htmlCtxtReadDoc') + d like(htmlDocPtr) + d ctxt value like(xmlParserCtxtPtr) + d cur * value options(*string) const xmlChar * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d htmlCtxtReadFile... + d pr extproc('htmlCtxtReadFile') + d like(htmlDocPtr) + d ctxt value like(xmlParserCtxtPtr) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d htmlCtxtReadMemory... + d pr extproc('htmlCtxtReadMemory') + d like(htmlDocPtr) + d ctxt value like(xmlParserCtxtPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d htmlCtxtReadFd pr extproc('htmlCtxtReadFd') + d like(htmlDocPtr) + d ctxt value like(xmlParserCtxtPtr) + d fd value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d htmlCtxtReadIO pr extproc('htmlCtxtReadIO') + d like(htmlDocPtr) + d ctxt value like(xmlParserCtxtPtr) + d ioread value like(xmlInputReadCallback) + d ioclose value like(xmlInputCloseCallback) + d ioctx * value void * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + * Further knowledge of HTML structure + + d htmlStatus s based(######typedef######) + d like(xmlCenum) + d HTML_NA c X'0000' No check at all + d HTML_INVALID c X'0001' + d HTML_DEPRECATED... + d c X'0002' + d HTML_VALID c X'0004' + d HTML_REQUIRED c X'000C' HTML_VALID ored-in + + * Using htmlElemDesc rather than name here, to emphasise the fact + * that otherwise there's a lookup overhead + + d htmlAttrAllowed... + d pr extproc('htmlAttrAllowed') + d like(htmlStatus) + d #param1 value like(htmlElemDescPtr) const + d #param2 * value options(*string) const xmlChar * + d #param3 value like(xmlCint) + + d htmlElementAllowedHere... + d pr extproc('htmlElementAllowedHere') + d like(xmlCint) + d #param1 value like(htmlElemDescPtr) const + d #param2 * value options(*string) const xmlChar * + + d htmlElementStatusHere... + d pr extproc('htmlElementStatusHere') + d like(htmlStatus) + d #param1 value like(htmlElemDescPtr) const + d #param2 value like(htmlElemDescPtr) const + + d htmlNodeStatus pr extproc('htmlNodeStatus') + d like(htmlStatus) + d #param1 value like(htmlNodePtr) + d #param2 value like(xmlCint) + + * 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 extproc( + d '__htmlElementAllowedHereDesc') + d like(xmlCint) + 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 HTML_PARSER_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle b/libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle new file mode 100644 index 0000000..99c38a0 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle @@ -0,0 +1,176 @@ + * Summary: specific APIs to process HTML tree, especially serialization + * Description: this module implements a few function needed to process + * tree in an HTML specific way. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(HTML_TREE_H__) + /define HTML_TREE_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_HTML_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + /include "libxmlrpg/HTMLparser" + + * HTML_TEXT_NODE: + * + * Macro. A text node in a HTML document is really implemented + * the same way as a text node in an XML document. + + d HTML_TEXT_NODE c 3 + + * HTML_ENTITY_REF_NODE: + * + * Macro. An entity reference in a HTML document is really implemented + * the same way as an entity reference in an XML document. + + d HTML_ENTITY_REF_NODE... + d c 5 + + * HTML_COMMENT_NODE: + * + * Macro. A comment in a HTML document is really implemented + * the same way as a comment in an XML document. + + d HTML_COMMENT_NODE... + d c 8 + + * HTML_PRESERVE_NODE: + * + * Macro. A preserved node in a HTML document is really implemented + * the same way as a CDATA section in an XML document. + + d HTML_PRESERVE_NODE... + d c 4 + + * HTML_PI_NODE: + * + * Macro. A processing instruction in a HTML document is really implemented + * the same way as a processing instruction in an XML document. + + d HTML_PI_NODE c 7 + + d htmlNewDoc pr extproc('htmlNewDoc') + d like(htmlDocPtr) + d URI * value options(*string) const xmlChar * + d ExternalID * value options(*string) const xmlChar * + + d htmlNewDocNoDtD... + d pr extproc('htmlNewDocNoDtD') + d like(htmlDocPtr) + d URI * value options(*string) const xmlChar * + d ExternalID * value options(*string) const xmlChar * + + d htmlGetMetaEncoding... + d pr * extproc('htmlGetMetaEncoding') const xmlChar * + d doc value like(htmlDocPtr) + + d htmlSetMetaEncoding... + d pr extproc('htmlSetMetaEncoding') + d like(xmlCint) + d doc value like(htmlDocPtr) + d encoding * value options(*string) const xmlChar * + + /if defined(LIBXML_OUTPUT_ENABLED) + d htmlDocDumpMemory... + d pr extproc('htmlDocDumpMemory') + d cur value like(xmlDocPtr) + d mem * value xmlChar * * + d size like(xmlCint) + + d htmlDocDumpMemoryFormat... + d pr extproc('htmlDocDumpMemoryFormat') + d cur value like(xmlDocPtr) + d mem * value xmlChar * * + d size like(xmlCint) + d format value like(xmlCint) + + d htmlDocDump pr extproc('htmlDocDump') + d like(xmlCint) + d f * value FILE * + d cur value like(xmlDocPtr) + + d htmlSaveFile pr extproc('htmlSaveFile') + d like(xmlCint) + d filename * value options(*string) const char * + d cur value like(xmlDocPtr) + + d htmlNodeDump pr extproc('htmlNodeDump') + d like(xmlCint) + d buf value like(xmlBufferPtr) + d doc value like(xmlDocPtr) + d cur value like(xmlNodePtr) + + d htmlNodeDumpFile... + d pr extproc('htmlNodeDumpFile') + d out * value FILE * + d doc value like(xmlDocPtr) + d cur value like(xmlNodePtr) + + d htmlNodeDumpFileFormat... + d pr extproc('htmlNodeDumpFileFormat') + d like(xmlCint) + d out * value FILE * + d doc value like(xmlDocPtr) + d cur value like(xmlNodePtr) + d encoding * value options(*string) const char * + d format value like(xmlCint) + + d htmlSaveFileEnc... + d pr extproc('htmlSaveFileEnc') + d like(xmlCint) + d filename * value options(*string) const char * + d cur value like(xmlDocPtr) + d encoding * value options(*string) const char * + + d htmlSaveFileFormat... + d pr extproc('htmlSaveFileFormat') + d like(xmlCint) + d filename * value options(*string) const char * + d cur value like(xmlDocPtr) + d encoding * value options(*string) const char * + d format value like(xmlCint) + + d htmlNodeDumpFormatOutput... + d pr extproc('htmlNodeDumpFormatOutput') + d buf value like(xmlOutputBufferPtr) + d doc value like(xmlDocPtr) + d cur value like(xmlNodePtr) + d encoding * value options(*string) const char * + d format value like(xmlCint) + + d htmlDocContentDumpOutput... + d pr extproc('htmlDocContentDumpOutput') + d buf value like(xmlOutputBufferPtr) + d cur value like(xmlDocPtr) + d encoding * value options(*string) const char * + + d htmlDocContentDumpFormatOutput... + d pr extproc( + d 'htmlDocContentDumpFormatOutput') + d buf value like(xmlOutputBufferPtr) + d cur value like(xmlDocPtr) + d encoding * value options(*string) const char * + d format value like(xmlCint) + + d htmlNodeDumpOutput... + d pr extproc('htmlNodeDumpOutput') + d buf value like(xmlOutputBufferPtr) + d doc value like(xmlDocPtr) + d cur value like(xmlNodePtr) + d encoding * value options(*string) const char * + + /endif LIBXML_OUTPUT_ENABLD + + d htmlIsBooleanAttr... + d pr extproc('htmlIsBooleanAttr') + d like(xmlCint) + d name * value options(*string) const xmlChar * + + /endif LIBXML_HTML_ENABLED + /endif HTML_TREE_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/SAX.rpgle b/libxml2-2.9.10/os400/libxmlrpg/SAX.rpgle new file mode 100644 index 0000000..a22d49a --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/SAX.rpgle @@ -0,0 +1,213 @@ + * Summary: Old SAX version 1 handler, deprecated + * Description: DEPRECATED set of SAX version 1 interfaces used to + * build the DOM tree. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_SAX_H__) + /define XML_SAX_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/parser" + /include "libxmlrpg/xlink" + + /if defined(LIBXML_LEGACY_ENABLED) + + d getPublicId pr * extproc('getPublicId') const xmlChar * + d ctx * value void * + + d getSystemId pr * extproc('getSystemId') const xmlChar * + d ctx * value void * + + d setDocumentLocator... + d pr extproc('setDocumentLocator') + d ctx * value void * + d loc value like(xmlSAXLocatorPtr) + + d getLineNumber pr extproc('getLineNumber') + d like(xmlCint) + d ctx * value void * + + d getColumnNumber... + d pr extproc('getColumnNumber') + d like(xmlCint) + d ctx * value void * + + d isStandalone pr extproc('isStandalone') + d like(xmlCint) + d ctx * value void * + + d hasInternalSubset... + d pr extproc('hasInternalSubset') + d like(xmlCint) + d ctx * value void * + + d hasExternalSubset... + d pr extproc('hasExternalSubset') + d like(xmlCint) + d ctx * value void * + + d internalSubset pr extproc('internalSubset') + d ctx * value void * + d name * value options(*string) const xmlChar * + d ExternalID * value options(*string) const xmlChar * + d SystemID * value options(*string) const xmlChar * + + d externalSubset pr extproc('externalSubset') + d ctx * value void * + d name * value options(*string) const xmlChar * + d ExternalID * value options(*string) const xmlChar * + d SystemID * value options(*string) const xmlChar * + + d getEntity pr extproc('getEntity') + d like(xmlEntityPtr) + d ctx * value void * + d name * value options(*string) const xmlChar * + + d getParameterEntity... + d pr extproc('getParameterEntity') + d like(xmlEntityPtr) + d ctx * value void * + d name * value options(*string) const xmlChar * + + d resolveEntity pr extproc('resolveEntity') + d like(xmlParserInputPtr) + d ctx * value void * + d publicId * value options(*string) const xmlChar * + d systemId * value options(*string) const xmlChar * + + d entityDecl pr extproc('entityDecl') + d ctx * value void * + d name * value options(*string) const xmlChar * + d type value like(xmlCint) + d publicId * value options(*string) const xmlChar * + d systemId * value options(*string) const xmlChar * + d content * value options(*string) xmlChar * + + d attributeDecl pr extproc('attributeDecl') + d ctx * value void * + d elem * value options(*string) const xmlChar * + d fullname * value options(*string) const xmlChar * + d type value like(xmlCint) + d def value like(xmlCint) + d defaultValue * value options(*string) const xmlChar * + d tree value like(xmlEnumerationPtr) + + d elementDecl pr extproc('elementDecl') + d ctx * value void * + d name * value options(*string) const xmlChar * + d type value like(xmlCint) + d content value like(xmlElementContentPtr) + + d notationDecl pr extproc('notationDecl') + d ctx * value void * + d name * value options(*string) const xmlChar * + d publicId * value options(*string) const xmlChar * + d systemId * value options(*string) const xmlChar * + + d unparsedEntityDecl... + d pr extproc('unparsedEntityDecl') + d ctx * value void * + d name * value options(*string) const xmlChar * + d publicId * value options(*string) const xmlChar * + d systemId * value options(*string) const xmlChar * + d notationName * value options(*string) const xmlChar * + + d startDocument pr extproc('startDocument') + d ctx * value void * + + d endDocument pr extproc('endDocument') + d ctx * value void * + + d attribute pr extproc('attribute') + d ctx * value void * + d fullname * value options(*string) const xmlChar * + d value * value options(*string) const xmlChar * + + d startElement pr extproc('startElement') + d ctx * value void * + d fullname * value options(*string) const xmlChar * + d atts * const xmlChar *(*) + + d endElement pr extproc('endElement') + d ctx * value void * + d name * value options(*string) const xmlChar * + + d reference pr extproc('reference') + d ctx * value void * + d name * value options(*string) const xmlChar * + + d characters pr extproc('characters') + d ctx * value void * + d ch * value options(*string) const xmlChar * + d len value like(xmlCint) + + d ignorableWhitespace... + d pr extproc('ignorableWhitespace') + d ctx * value void * + d ch * value options(*string) const xmlChar * + d len value like(xmlCint) + + d processingInstruction... + d pr extproc('processingInstruction') + d ctx * value void * + d target * value options(*string) const xmlChar * + d data * value options(*string) const xmlChar * + + d globalNamespace... + d pr extproc('globalNamespace') + d ctx * value void * + d href * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + + d setNamespace pr extproc('setNamespace') + d ctx * value void * + d name * value options(*string) const xmlChar * + + d getNamespace pr extproc('getNamespace') + d like(xmlNsPtr) + d ctx * value void * + + d checkNamespace pr extproc('checkNamespace') + d like(xmlCint) + d ctx * value void * + d nameSpace * value options(*string) xmlChar * + + d namespaceDecl pr extproc('namespaceDecl') + d ctx * value void * + d href * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + + d comment pr extproc('comment') + d ctx * value void * + d value * value options(*string) const xmlChar * + + d cdataBlock pr extproc('cdataBlock') + d ctx * value void * + d value * value options(*string) const xmlChar * + d len value like(xmlCint) + + /if defined(LIBXML_SAX1_ENABLED) + d initxmlDefaultSAXHandler... + d pr extproc('initxmlDefaultSAXHandler') + d hdlr likeds(xmlSAXHandlerV1) + d warning value like(xmlCint) + + /if defined(LIBXML_HTML_ENABLED) + d inithtmlDefaultSAXHandler... + d pr extproc('inithtmlDefaultSAXHandler') + d hdlr likeds(xmlSAXHandlerV1) + /endif + + /if defined(LIBXML_DOCB_ENABLED) + d initdocbDefaultSAXHandler... + d pr extproc('initdocbDefaultSAXHandler') + d hdlr likeds(xmlSAXHandlerV1) + /endif + /endif LIBXML_SAX1_ENABLED + + /endif LIBXML_LEGACY_ENABLD + + /endif XML_SAX_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/SAX2.rpgle b/libxml2-2.9.10/os400/libxmlrpg/SAX2.rpgle new file mode 100644 index 0000000..c72be25 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/SAX2.rpgle @@ -0,0 +1,256 @@ + * Summary: SAX2 parser interface used to build the DOM tree + * Description: those are the default SAX2 interfaces used by + * the library when building DOM tree. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_SAX2_H__) + /define XML_SAX2_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/parser" + /include "libxmlrpg/xlink" + + d xmlSAX2GetPublicId... + d pr * extproc('xmlSAX2getPublicId') const xmlChar * + d ctx * value void * + + d xmlSAX2GetSystemId... + d pr * extproc('xmlSAX2getSystemId') const xmlChar * + d ctx * value void * + + d xmlSAX2SetDocumentLocator... + d pr extproc('xmlSAX2SetDocumentLocator') + d ctx * value void * + d loc value like(xmlSAXLocatorPtr) + + d xmlSAX2GetLineNumber... + d pr extproc('xmlSAX2GetLineNumber') + d like(xmlCint) + d ctx * value void * + + d xmlSAX2GetColumnNumber... + d pr extproc('xmlSAX2GetColumnNumber') + d like(xmlCint) + d ctx * value void * + + d xmlSAX2IsStandalone... + d pr extproc('xmlSAX2IsStandalone') + d like(xmlCint) + d ctx * value void * + + d xmlSAX2HasInternalSubset... + d pr extproc('xmlSAX2HasInternalSubset') + d like(xmlCint) + d ctx * value void * + + d xmlSAX2HasExternalSubset... + d pr extproc('xmlSAX2HasExternalSubset') + d like(xmlCint) + d ctx * value void * + + d xmlSAX2InternalSubset... + d pr extproc('xmlSAX2InternalSubset') + d ctx * value void * + d name * value options(*string) const xmlChar * + d ExternalID * value options(*string) const xmlChar * + d SystemID * value options(*string) const xmlChar * + + d xmlSAX2ExternalSubset... + d pr extproc('xmlSAX2ExternalSubset') + d ctx * value void * + d name * value options(*string) const xmlChar * + d ExternalID * value options(*string) const xmlChar * + d SystemID * value options(*string) const xmlChar * + + d xmlSAX2GetEntity... + d pr extproc('xmlSAX2GetEntity') + d like(xmlEntityPtr) + d ctx * value void * + d name * value options(*string) const xmlChar * + + d xmlSAX2GetParameterEntity... + d pr extproc('xmlSAX2GetParameterEntity') + d like(xmlEntityPtr) + d ctx * value void * + d name * value options(*string) const xmlChar * + + d xmlSAX2ResolveEntity... + d pr extproc('xmlSAX2ResolveEntity') + d like(xmlParserInputPtr) + d ctx * value void * + d publicId * value options(*string) const xmlChar * + d systemId * value options(*string) const xmlChar * + + d xmlSAX2EntityDecl... + d pr extproc('xmlSAX2EntityDecl') + d ctx * value void * + d name * value options(*string) const xmlChar * + d type value like(xmlCint) + d publicId * value options(*string) const xmlChar * + d systemId * value options(*string) const xmlChar * + d content * value options(*string) xmlChar * + + d xmlSAX2AttributeDecl... + d pr extproc('xmlSAX2AttributeDecl') + d ctx * value void * + d elem * value options(*string) const xmlChar * + d fullname * value options(*string) const xmlChar * + d type value like(xmlCint) + d def value like(xmlCint) + d defaultValue * value options(*string) const xmlChar * + d tree value like(xmlEnumerationPtr) + + d xmlSAX2ElementDecl... + d pr extproc('xmlSAX2ElementDecl') + d ctx * value void * + d name * value options(*string) const xmlChar * + d type value like(xmlCint) + d content value like(xmlElementContentPtr) + + d xmlSAX2NotationDecl... + d pr extproc('xmlSAX2NotationDecl') + d ctx * value void * + d name * value options(*string) const xmlChar * + d publicId * value options(*string) const xmlChar * + d systemId * value options(*string) const xmlChar * + + d xmlSAX2UnparsedEntityDecl... + d pr extproc('xmlSAX2UnparsedEntityDecl') + d ctx * value void * + d name * value options(*string) const xmlChar * + d publicId * value options(*string) const xmlChar * + d systemId * value options(*string) const xmlChar * + d notationName * value options(*string) xmlChar * + + d xmlSAX2StartDocument... + d pr extproc('xmlSAX2StartDocument') + d ctx * value void * + + d xmlSAX2EndDocument... + d pr extproc('xmlSAX2EndDocument') + d ctx * value void * + + /undefine XML_TESTVAL + /if defined(LIBXML_SAX1_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_HTML_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_WRITER_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_DOCB_ENABLED) + /endif + /if defined(XML_TESTVAL) + d xmlSAX2StartElement... + d pr extproc('xmlSAX2StartElement') + d ctx * value void * + d fullname * value options(*string) const xmlChar * + d atts * const xmlChar *(*) + + d xmlSAX2EndElement... + d pr extproc('xmlSAX2EndElement') + d ctx * value void * + d name * value options(*string) const xmlChar * + + /undefine XML_TESTVAL + /endif + + d xmlSAX2StartElementNs... + d pr extproc('xmlSAX2StartElementNs') + d ctx * value void * + d localname * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + d URI * value options(*string) const xmlChar * + d nb_namespaces value like(xmlCint) + d namespaces * value const xmlChar *(*) + d nb_attributes value like(xmlCint) + d nb_defaulted value like(xmlCint) + d attributes * const xmlChar *(*) + + d xmlSAX2EndElementNs... + d pr extproc('xmlSAX2EndElementNs') + d ctx * value void * + d localname * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + d URI * value options(*string) const xmlChar * + + d xmlSAX2Reference... + d pr extproc('xmlSAX2Reference') + d ctx * value void * + d name * value options(*string) const xmlChar * + + d xmlSAX2Characters... + d pr extproc('xmlSAX2Characters') + d ctx * value void * + d ch * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlSAX2IgnorableWhitespace... + d pr extproc('xmlSAX2IgnorableWhitespace') + d ctx * value void * + d ch * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlSAX2ProcessingInstruction... + d pr extproc( + d 'xmlSAX2ProcessingInstruction') + d ctx * value void * + d target * value options(*string) const xmlChar * + d data * value options(*string) const xmlChar * + + d xmlSAX2Comment... + d pr extproc('xmlSAX2Comment') + d ctx * value void * + d value * value options(*string) const xmlChar * + + d xmlSAX2CDataBlock... + d pr extproc('xmlSAX2CDataBlock') + d ctx * value void * + d value * value options(*string) const xmlChar * + d len value like(xmlCint) + + /if defined(LIBXML_SAX1_ENABLED) + d xmlSAXDefaultVersion... + d pr extproc('xmlSAXDefaultVersion') + d like(xmlCint) + d version value like(xmlCint) + /endif LIBXML_SAX1_ENABLED + + d xmlSAXVersion pr extproc('xmlSAXVersion') + d like(xmlCint) + d hdlr likeds(xmlSAXHandler) + d version value like(xmlCint) + + d xmlSAX2InitDefaultSAXHandler... + d pr extproc( + d 'xmlSAX2InitDefaultSAXHandler') + d hdlr likeds(xmlSAXHandler) + d warning value like(xmlCint) + + /if defined(LIBXML_HTML_ENABLED) + d xmlSAX2InitHtmlDefaultSAXHandler... + d pr extproc( + d 'xmlSAX2InitHtmlDefaultSAXHandler') + d hdlr likeds(xmlSAXHandler) + + d htmlDefaultSAXHandlerInit... + d pr extproc('htmlDefaultSAXHandlerInit') + /endif + + /if defined(LIBXML_DOCB_ENABLED) + d xmlSAX2InitDocbDefaultSAXHandler... + d pr extproc( + d 'xmlSAX2InitDocbDefaultSAXHandler') + d hdlr likeds(xmlSAXHandler) + + d docbDefaultSAXHandlerInit... + d pr extproc('docbDefaultSAXHandlerInit') + /endif + + d xmlDefaultSAXHandlerInit... + d pr extproc('xmlDefaultSAXHandlerInit') + + /endif XML_SAX2_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/c14n.rpgle b/libxml2-2.9.10/os400/libxmlrpg/c14n.rpgle new file mode 100644 index 0000000..963ed37 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/c14n.rpgle @@ -0,0 +1,125 @@ + * Summary: Provide Canonical XML and Exclusive XML Canonicalization + * Description: the c14n modules provides a + * + * "Canonical XML" implementation + * http://www.w3.org/TR/xml-c14n + * + * and an + * + * "Exclusive XML Canonicalization" implementation + * http://www.w3.org/TR/xml-exc-c14n + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_C14N_H__) + /define XML_C14N_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_C14N_ENABLED) + /if defined(LIBXML_OUTPUT_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + /include "libxmlrpg/xpath" + + * XML Canonicazation + * http://www.w3.org/TR/xml-c14n + * + * Exclusive XML Canonicazation + * http://www.w3.org/TR/xml-exc-c14n + * + * Canonical form of an XML document could be created if and only if + * a) default attributes (if any) are added to all nodes + * b) all character and parsed entity references are resolved + * In order to achive this in libxml2 the document MUST be loaded with + * following global setings: + * + * xmlLoadExtDtdDefaultValue = XML_DETECT_IDS ã XML_COMPLETE_ATTRS; + * xmlSubstituteEntitiesDefault(1); + * + * or corresponding parser context setting: + * xmlParserCtxtPtr ctxt; + * + * ... + * ctxt->loadsubset = XML_DETECT_IDS ã XML_COMPLETE_ATTRS; + * ctxt->replaceEntities = 1; + * ... + + * xmlC14NMode: + * + * Predefined values for C14N modes + + d xmlBufferAllocationScheme... + d xmlC14NMode s based(######typedef######) + d like(xmlCenum) + d XML_C14N_1_0 c 0 Original C14N 1.0 + d XML_C14N_EXCLUSIVE_1_0... Exclusive C14N 1.0 + d c 1 + d XML_C14N_1_1 c 2 C14N 1.1 spec + + d xmlC14NDocSaveTo... + d pr extproc('xmlC14NDocSaveTo') + d like(xmlCint) + d doc value like(xmlDocPtr) + d nodes value like(xmlNodeSetPtr) + d mode value like(xmlCint) + d inclusive_ns_prefixes... + d * options(*omit) xmlChar *(*) + d with_comments value like(xmlCint) + d buf value like(xmlOutputBufferPtr) + + d xmlC14NDocDumpMemory... + d pr extproc('xmlC14NDocDumpMemory') + d like(xmlCint) + d doc value like(xmlDocPtr) + d nodes value like(xmlNodeSetPtr) + d mode value like(xmlCint) + d inclusive_ns_prefixes... + d * options(*omit) xmlChar *(*) + d with_comments value like(xmlCint) + d doc_txt_ptr * xmlChar *(*) + + d xmlC14NDocSave pr extproc('xmlC14NDocSave') + d like(xmlCint) + d doc value like(xmlDocPtr) + d nodes value like(xmlNodeSetPtr) + d mode value like(xmlCint) + d inclusive_ns_prefixes... + d * options(*omit) xmlChar *(*) + d with_comments value like(xmlCint) + d filename * value options(*string) const char * + d compression value like(xmlCint) + + * This is the core C14N function + + * xmlC14NIsVisibleCallback: + * @user_data: user data + * @node: the curent node + * @parent: the parent node + * + * Signature for a C14N callback on visible nodes + * + * Returns 1 if the node should be included + + d xmlC14NIsVisibleCallback... + d s * based(######typedef######) + d procptr + + d xmlC14NExecute pr extproc('xmlC14NExecute') + d like(xmlCint) + d doc value like(xmlDocPtr) + d is_visible_callback... + d value like(xmlC14NIsVisibleCallback) + d user_data * value void * + d mode value like(xmlCint) + d inclusive_ns_prefixes... + d * options(*omit) xmlChar *(*) + d with_comments value like(xmlCint) + d buf value like(xmlOutputBufferPtr) + + /endif LIBXML_OUTPUT_ENABLD + /endif LIBXML_C14N_ENABLED + /endif XML_C14N_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/catalog.rpgle b/libxml2-2.9.10/os400/libxmlrpg/catalog.rpgle new file mode 100644 index 0000000..1dab819 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/catalog.rpgle @@ -0,0 +1,248 @@ + * Summary: interfaces to the Catalog handling system + * Description: the catalog module implements the support for + * XML Catalogs and SGML catalogs + * + * SGML Open Technical Resolution TR9401:1997. + * http://www.jclark.com/sp/catalog.htm + * + * XML Catalogs Working Draft 06 August 2001 + * http://www.oasis-open.org/committees/entity/spec-2001-08-06.html + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_CATALOG_H__) + /define XML_CATALOG_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_CATALOG_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/xmlstring" + /include "libxmlrpg/tree" + + * XML_CATALOGS_NAMESPACE: + * + * The namespace for the XML Catalogs elements. + + d XML_CATALOGS_NAMESPACE... + d c 'urn:oasis:names:+ + d tc:entity:xmlns:xml:catalog' + + * XML_CATALOG_PI: + * + * The specific XML Catalog Processing Instuction name. + + d XML_CATALOG_PI c 'oasis-xml-catalog' + + * The API is voluntarily limited to general cataloging. + + d xmlCatalogPrefer... + d s based(######typedef######) + d like(xmlCenum) + d XML_CATA_PREFER_NONE... + d c 0 + d XML_CATA_PREFER_PUBLIC... + d c 1 + d XML_CATA_PREFER_SYSTEM... + d c 2 + + d xmlCatalogAllow... + d s based(######typedef######) + d like(xmlCenum) + d XML_CATA_ALLOW_NONE... + d c 0 + d XML_CATA_ALLOW_GLOBAL... + d c 1 + d XML_CATA_ALLOW_DOCUMENT... + d c 2 + d XML_CATA_ALLOW_ALL... + d c 3 + + d xmlCatalogPtr s * based(######typedef######) + + * Operations on a given catalog. + + d xmlNewCatalog pr extproc('xmlNewCatalog') + d like(xmlCatalogPtr) + d sgml value like(xmlCint) + + d xmlLoadACatalog... + d pr extproc('xmlLoadACatalog') + d like(xmlCatalogPtr) + d filename * value options(*string) const char * + + d xmlLoadSGMLSuperCatalog... + d pr extproc('xmlLoadSGMLSuperCatalog') + d like(xmlCatalogPtr) + d filename * value options(*string) const char * + + d xmlConvertSGMLCatalog... + d pr extproc('xmlConvertSGMLCatalog') + d like(xmlCint) + d catal value like(xmlCatalogPtr) + + d xmlACatalogAdd pr extproc('xmlACatalogAdd') + d like(xmlCint) + d catal value like(xmlCatalogPtr) + d type * value options(*string) const xmlChar * + d orig * value options(*string) const xmlChar * + d replace * value options(*string) const xmlChar * + + d xmlACatalogRemove... + d pr extproc('xmlACatalogRemove') + d like(xmlCint) + d catal value like(xmlCatalogPtr) + d value * value options(*string) const xmlChar * + + d xmlACatalogResolve... + d pr * extproc('xmlACatalogResolve') xmlChar * + d catal value like(xmlCatalogPtr) + d pubID * value options(*string) const xmlChar * + d sysID * value options(*string) const xmlChar * + + d xmlACatalogResolveSystem... + d pr * extproc('xmlACatalogResolveSystem') xmlChar * + d catal value like(xmlCatalogPtr) + d sysID * value options(*string) const xmlChar * + + d xmlACatalogResolvePublic... + d pr * extproc('xmlACatalogResolvePublic') xmlChar * + d catal value like(xmlCatalogPtr) + d pubID * value options(*string) const xmlChar * + + d xmlACatalogResolveURI... + d pr * extproc('xmlACatalogResolveURI') xmlChar * + d catal value like(xmlCatalogPtr) + d URI * value options(*string) const xmlChar * + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlACatalogDump... + d pr extproc('xmlACatalogDump') + d catal value like(xmlCatalogPtr) + d out * value FILE * + /endif LIBXML_OUTPUT_ENABLD + + d xmlFreeCatalog pr extproc('xmlFreeCatalog') + d catal value like(xmlCatalogPtr) + + d xmlCatalogIsEmpty... + d pr extproc('xmlCatalogIsEmpty') + d like(xmlCint) + d catal value like(xmlCatalogPtr) + + * Global operations. + + d xmlInitializeCatalog... + d pr extproc('xmlInitializeCatalog') + + d xmlLoadCatalog pr extproc('xmlLoadCatalog') + d like(xmlCint) + d filename * value options(*string) const char * + + d xmlLoadCatalogs... + d pr extproc('xmlLoadCatalogs') + d paths * value options(*string) const char * + + d xmlCatalogCleanup... + d pr extproc('xmlCatalogCleanup') + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlCatalogDump pr extproc('xmlCatalogDump') + d out * value FILE * + /endif LIBXML_OUTPUT_ENABLD + + d xmlCatalogResolve... + d pr * extproc('xmlCatalogResolve') xmlChar * + d pubID * value options(*string) const xmlChar * + d sysID * value options(*string) const xmlChar * + + d xmlCatalogResolveSystem... + d pr * extproc('xmlCatalogResolveSystem') xmlChar * + d sysID * value options(*string) const xmlChar * + + d xmlCatalogResolvePublic... + d pr * extproc('xmlCatalogResolvePublic') xmlChar * + d pubID * value options(*string) const xmlChar * + + d xmlCatalogResolveURI... + d pr * extproc('xmlCatalogResolveURI') xmlChar * + d URI * value options(*string) const xmlChar * + + d xmlCatalogAdd pr extproc('xmlCatalogAdd') + d like(xmlCint) + d type * value options(*string) const xmlChar * + d orig * value options(*string) const xmlChar * + d replace * value options(*string) const xmlChar * + + d xmlCatalogRemove... + d pr extproc('xmlCatalogRemove') + d like(xmlCint) + d value * value options(*string) const xmlChar * + + d xmlParseCatalogFile... + d pr extproc('xmlParseCatalogFile') + d like(xmlDocPtr) + d filename * value options(*string) const char * + + d xmlCatalogConvert... + d pr extproc('xmlCatalogConvert') + d like(xmlCint) + + * Strictly minimal interfaces for per-document catalogs used + * by the parser. + + d xmlCatalogFreeLocal... + d pr extproc('xmlCatalogFreeLocal') + d catalogs * value void * + + d xmlCatalogAddLocal... + d pr * extproc('xmlCatalogAddLocal') void * + d catalogs * value void * + d URL * value options(*string) const xmlChar * + + d xmlCatalogLocalResolve... + d pr * extproc('xmlCatalogLocalResolve') xmlChar * + d catalogs * value void * + d pubID * value options(*string) const xmlChar * + d sysID * value options(*string) const xmlChar * + + d xmlCatalogLocalResolveURI... + d pr * extproc('xmlCatalogLocalResolveURI') xmlChar * + d catalogs * value void * + d URI * value options(*string) const xmlChar * + + * Preference settings. + + d xmlCatalogSetDebug... + d pr extproc('xmlCatalogSetDebug') + d like(xmlCint) + d level value like(xmlCint) + + d xmlCatalogSetDefaultPrefer... + d pr extproc('xmlCatalogSetDefaultPrefer') + d like(xmlCatalogPrefer) + d prefer value like(xmlCatalogPrefer) + + d xmlCatalogSetDefaults... + d pr extproc('xmlCatalogSetDefaults') + d allow value like(xmlCatalogAllow) + + d xmlCatalogGetDefaults... + d pr extproc('xmlCatalogGetDefaults') + d like(xmlCatalogAllow) + + * DEPRECATED interfaces + + d xmlCatalogGetSystem... + d pr * extproc('xmlCatalogGetSystem') const xmlChar * + d sysID * value options(*string) const xmlChar * + + d xmlCatalogGetPublic... + d pr * extproc('xmlCatalogGetPublic') const xmlChar * + d pubID * value options(*string) const xmlChar * + + /endif LIBXML_CATALOG_ENBLD + /endif XML_CATALOG_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/chvalid.rpgle b/libxml2-2.9.10/os400/libxmlrpg/chvalid.rpgle new file mode 100644 index 0000000..c601442 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/chvalid.rpgle @@ -0,0 +1,107 @@ + * Summary: Unicode character range checking + * Description: this module exports interfaces for the character + * range validation APIs + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_CHVALID_H__) + /define XML_CHVALID_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/xmlstring" + + * Define our typedefs and structures + + d xmlChSRangePtr s * based(######typedef######) + + d xmlChSRange ds based(xmlChSRangePtr) + d align qualified + d low like(xmlCushort) + d high like(xmlCushort) + + d xmlChLRangePtr s * based(######typedef######) + + d xmlChLRange ds based(xmlChLRangePtr) + d align qualified + d low like(xmlCuint) + d high like(xmlCuint) + + d xmlChRangeGroupPtr... + d s * based(######typedef######) + + d xmlChRangeGroup... + d ds based(xmlChRangeGroupPtr) + d align qualified + d nbShortRange like(xmlCint) + d nbLongRange like(xmlCint) + d shortRange like(xmlChSRangePtr) + d longRange like(xmlChLRangePtr) + + * Range checking routine + + d xmlCharInRange pr extproc('xmlCharInRange') + d like(xmlCint) + d val value like(xmlCuint) + d group like(xmlChRangeGroupPtr) const + + d xmlIsBaseCharGroup... + d ds import('xmlIsBaseCharGroup') + d likeds(xmlChRangeGroup) const + + d xmlIsCharGroup... + d ds import('xmlIsCharGroup') + d likeds(xmlChRangeGroup) const + + d xmlIsCombiningGroup... + d ds import('xmlIsCombiningGroup') + d likeds(xmlChRangeGroup) const + + d xmlIsDigitGroup... + d ds import('xmlIsDigitGroup') + d likeds(xmlChRangeGroup) const + + d xmlIsExtenderGroup... + d ds import('xmlIsExtenderGroup') + d likeds(xmlChRangeGroup) const + + d xmlIsIdeographicGroup... + d ds import('xmlIsIdeographicGroup') + d likeds(xmlChRangeGroup) const + + d xmlIsBaseChar pr extproc('xmlIsBaseChar') + d like(xmlCint) + d ch value like(xmlCuint) + + d xmlIsBlank pr extproc('xmlIsBlank') + d like(xmlCint) + d ch value like(xmlCuint) + + d xmlIsChar pr extproc('xmlIsChar') + d like(xmlCint) + d ch value like(xmlCuint) + + d xmlIsCombining pr extproc('xmlIsCombining') + d like(xmlCint) + d ch value like(xmlCuint) + + d xmlIsDigit pr extproc('xmlIsDigit') + d like(xmlCint) + d ch value like(xmlCuint) + + d xmlIsExtender pr extproc('xmlIsExtender') + d like(xmlCint) + d ch value like(xmlCuint) + + d xmlIsIdeographic... + d pr extproc('xmlIsIdeographic') + d like(xmlCint) + d ch value like(xmlCuint) + + d xmlIsPubidChar pr extproc('xmlIsPubidChar') + d like(xmlCint) + d ch value like(xmlCuint) + + /endif XML_CHVALID_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/debugXML.rpgle b/libxml2-2.9.10/os400/libxmlrpg/debugXML.rpgle new file mode 100644 index 0000000..81826bc --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/debugXML.rpgle @@ -0,0 +1,254 @@ + * Summary: Tree debugging APIs + * Description: Interfaces to a set of routines used for debugging the tree + * produced by the XML parser. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(DEBUG_XML__) + /define DEBUG_XML__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_DEBUG_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + /include "libxmlrpg/xpath" + + * The standard Dump routines. + + d xmlDebugDumpString... + d pr extproc('xmlDebugDumpString') + d output * value FILE * + d str * value options(*string) const xmlChar * + + d xmlDebugDumpAttr... + d pr extproc('xmlDebugDumpAttr') + d output * value FILE * + d attr value like(xmlAttrPtr) + d depth value like(xmlCint) + + d xmlDebugDumpAttrList... + d pr extproc('xmlDebugDumpAttrList') + d output * value FILE * + d attr value like(xmlAttrPtr) + d depth value like(xmlCint) + + d xmlDebugDumpOneNode... + d pr extproc('xmlDebugDumpOneNode') + d output * value FILE * + d node value like(xmlNodePtr) + d depth value like(xmlCint) + + d xmlDebugDumpNode... + d pr extproc('xmlDebugDumpNode') + d output * value FILE * + d node value like(xmlNodePtr) + d depth value like(xmlCint) + + d xmlDebugDumpNodeList... + d pr extproc('xmlDebugDumpNodeList') + d output * value FILE * + d node value like(xmlNodePtr) + d depth value like(xmlCint) + + d xmlDebugDumpDocumentHead... + d pr extproc('xmlDebugDumpDocumentHead') + d output * value FILE * + d doc value like(xmlDocPtr) + + d xmlDebugDumpDocument... + d pr extproc('xmlDebugDumpDocument') + d output * value FILE * + d doc value like(xmlDocPtr) + + d xmlDebugDumpDTD... + d pr extproc('xmlDebugDumpDTD') + d output * value FILE * + d dtd value like(xmlDtdPtr) + + d xmlDebugDumpEntities... + d pr extproc('xmlDebugDumpEntities') + d output * value FILE * + d doc value like(xmlDocPtr) + + **************************************************************** + * * + * Checking routines * + * * + **************************************************************** + + d xmlDebugCheckDocument... + d pr extproc('xmlDebugCheckDocument') + d like(xmlCint) + d output * value FILE * + d doc value like(xmlDocPtr) + + **************************************************************** + * * + * XML shell helpers * + * * + **************************************************************** + + d xmlLsOneNode pr extproc('xmlLsOneNode') + d output * value FILE * + d node value like(xmlNodePtr) + + d xmlLsCountNode pr extproc('xmlLsCountNode') + d like(xmlCint) + d node value like(xmlNodePtr) + + d xmlBoolToText pr * extproc('xmlBoolToText') const char * + d boolval value like(xmlCint) + + **************************************************************** + * * + * The XML shell related structures and functions * + * * + **************************************************************** + + /if defined(LIBXML_XPATH_ENABLED) + + * xmlShellReadlineFunc: + * @prompt: a string prompt + * + * This is a generic signature for the XML shell input function. + * + * Returns a string which will be freed by the Shell. + + d xmlShellReadlineFunc... + d s * based(######typedef######) + d procptr + + * xmlShellCtxt: + * + * A debugging shell context. + * TODO: add the defined function tables. + + d xmlShellCtxtPtr... + d s * based(######typedef######) + + d xmlSchellCtxt ds based(xmlShellCtxtPtr) + d align qualified + d filename * char * + d doc like(xmlDocPtr) + d node like(xmlNodePtr) + d pctxt like(xmlXPathContextPtr) + d loaded like(xmlCint) + d output * FILE * + d input like(xmlShellReadlineFunc) + + * xmlShellCmd: + * @ctxt: a shell context + * @arg: a string argument + * @node: a first node + * @node2: a second node + * + * This is a generic signature for the XML shell functions. + * + * Returns an int, negative returns indicating errors. + + d xmlShellCmd s * based(######typedef######) + d procptr + + d xmlShellPrintXPathError... + d pr extproc('xmlShellPrintXPathError') + d errorType value like(xmlCint) + d arg * value options(*string) const char * + + d xmlShellPrintXPathResult... + d pr extproc('xmlShellPrintXPathResult') + d list value like(xmlXPathObjectPtr) + + d xmlShellList pr extproc('xmlShellList') + d like(xmlCint) + d ctxt value like(xmlShellCtxtPtr) + d arg * value options(*string) char * + d node value like(xmlNodePtr) + d node2 value like(xmlNodePtr) + + d xmlShellBase pr extproc('xmlShellBase') + d like(xmlCint) + d ctxt value like(xmlShellCtxtPtr) + d arg * value options(*string) char * + d node value like(xmlNodePtr) + d node2 value like(xmlNodePtr) + + d xmlShellDir pr extproc('xmlShellDir') + d like(xmlCint) + d ctxt value like(xmlShellCtxtPtr) + d arg * value options(*string) char * + d node value like(xmlNodePtr) + d node2 value like(xmlNodePtr) + + d xmlShellLoad pr extproc('xmlShellLoad') + d like(xmlCint) + d ctxt value like(xmlShellCtxtPtr) + d filename * value options(*string) char * + d node value like(xmlNodePtr) + d node2 value like(xmlNodePtr) + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlShellPrintNode... + d pr extproc('xmlShellPrintNode') + d node value like(xmlNodePtr) + + d xmlShellCat pr extproc('xmlShellCat') + d like(xmlCint) + d ctxt value like(xmlShellCtxtPtr) + d arg * value options(*string) char * + d node value like(xmlNodePtr) + d node2 value like(xmlNodePtr) + + d xmlShellWrite pr extproc('xmlShellWrite') + d like(xmlCint) + d ctxt value like(xmlShellCtxtPtr) + d filename * value options(*string) char * + d node value like(xmlNodePtr) + d node2 value like(xmlNodePtr) + + d xmlShellSave pr extproc('xmlShellSave') + d like(xmlCint) + d ctxt value like(xmlShellCtxtPtr) + d filename * value options(*string) char * + d node value like(xmlNodePtr) + d node2 value like(xmlNodePtr) + /endif LIBXML_OUTPUT_ENABLD + + /if defined(LIBXML_VALID_ENABLED) + d xmlShellValidate... + d pr extproc('xmlShellValidate') + d like(xmlCint) + d ctxt value like(xmlShellCtxtPtr) + d dtd * value options(*string) char * + d node value like(xmlNodePtr) + d node2 value like(xmlNodePtr) + /endif LIBXML_VALID_ENABLED + + d xmlShellDu pr extproc('xmlShellDu') + d like(xmlCint) + d ctxt value like(xmlShellCtxtPtr) + d arg * value options(*string) char * + d tree value like(xmlNodePtr) + d node2 value like(xmlNodePtr) + + d xmlShellPwd pr extproc('xmlShellPwd') + d like(xmlCint) + d ctxt value like(xmlShellCtxtPtr) + d buffer * value options(*string) char * + d node value like(xmlNodePtr) + d node2 value like(xmlNodePtr) + + * The Shell interface. + + d xmlShell pr extproc('xmlShell') + d doc value like(xmlDocPtr) + d filename * value options(*string) char * + d input value like(xmlShellReadlineFunc) + d output * value FILE * + + /endif LIBXML_XPATH_ENABLED + /endif LIBXML_DEBUG_ENABLED + /endif DEBUG_XML__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/dict.rpgle b/libxml2-2.9.10/os400/libxmlrpg/dict.rpgle new file mode 100644 index 0000000..c061e4c --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/dict.rpgle @@ -0,0 +1,85 @@ + * Summary: string dictionary + * Description: dictionary of reusable strings, just used to avoid + * allocation and freeing operations. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_DICT_H__) + /define XML_DICT_H__ + + * The dictionary. + + d xmlDictPtr s * based(######typedef######) + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + + * Initializer + + d xmlInitializeDict... + d pr extproc('xmlInitializeDict') + d like(xmlCint) + + * Constructor and destructor. + + d xmlDictCreate pr extproc('xmlDictCreate') + d like(xmlDictPtr) + + d xmlDictSetLimit... + d pr extproc('xmlDictSetLimit') + d like(xmlCsize_t) + d dict value like(xmlDictPtr) + d limit value like(xmlCsize_t) + + d xmlDictGetUsage... + d pr extproc('xmlDictGetUsage') + d like(xmlCsize_t) + d dict value like(xmlDictPtr) + + d xmlDictCreateSub... + d pr extproc('xmlDictCreateSub') + d like(xmlDictPtr) + d sub value like(xmlDictPtr) + + d xmlDictReference... + d pr extproc('xmlDictGetReference') + d like(xmlCint) + d dict value like(xmlDictPtr) + + d xmlDictFree pr extproc('xmlDictFree') + d dict value like(xmlDictPtr) + + * Lookup of entry in the dictionary. + + d xmlDictLookup pr * extproc('xmlDictLookup') const xmlChar * + d dict value like(xmlDictPtr) + d name * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlDictExists pr * extproc('xmlDictExists') const xmlChar * + d dict value like(xmlDictPtr) + d name * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlDictQLookup pr * extproc('xmlDictQLookup') const xmlChar * + d dict value like(xmlDictPtr) + d name * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + + d xmlDictOwns pr extproc('xmlDictOwns') + d like(xmlCint) + d dict value like(xmlDictPtr) + d str * value options(*string) const xmlChar * + + d xmlDictSize pr extproc('xmlDictSize') + d like(xmlCint) + d dict value like(xmlDictPtr) + + * Cleanup function + + d xmlDictCleanup pr extproc('xmlDictCleanup') + + /endif ! XML_DICT_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/encoding.rpgle b/libxml2-2.9.10/os400/libxmlrpg/encoding.rpgle new file mode 100644 index 0000000..8153f3c --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/encoding.rpgle @@ -0,0 +1,284 @@ + * Summary: interface for the encoding conversion functions + * Description: interface for the encoding conversion functions needed for + * XML basic encoding and iconv() support. + * + * Related specs are + * rfc2044 (UTF-8 and UTF-16) F. Yergeau Alis Technologies + * [ISO-10646] UTF-8 and UTF-16 in Annexes + * [ISO-8859-1] ISO Latin-1 characters codes. + * [UNICODE] The Unicode Consortium, "The Unicode Standard -- + * Worldwide Character Encoding -- Version 1.0", Addison- + * Wesley, Volume 1, 1991, Volume 2, 1992. UTF-8 is + * described in Unicode Technical Report #4. + * [US-ASCII] Coded Character Set--7-bit American Standard Code for + * Information Interchange, ANSI X3.4-1986. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_CHAR_ENCODING_H__) + /define XML_CHAR_ENCODING_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + + * xmlCharEncoding: + * + * Predefined values for some standard encodings. + * Libxml does not do beforehand translation on UTF8 and ISOLatinX. + * It also supports ASCII, ISO-8859-1, and UTF16 (LE and BE) by default. + * + * Anything else would have to be translated to UTF8 before being + * given to the parser itself. The BOM for UTF16 and the encoding + * declaration are looked at and a converter is looked for at that + * point. If not found the parser stops here as asked by the XML REC. A + * converter can be registered by the user + * xmlRegisterCharEncodingHandler but the current form doesn't allow + * stateful transcoding (a serious problem agreed !). If iconv has been + * found it will be used automatically and allow stateful transcoding, + * the simplest is then to be sure to enable iconv and to provide iconv + * libs for the encoding support needed. + * + * Note that the generic "UTF-16" is not a predefined value. Instead, only + * the specific UTF-16LE and UTF-16BE are present. + + d xmlCharEncoding... + d s based(######typedef######) + d like(xmlCenum) + d XML_CHAR_ENCODING_ERROR... No encoding detected + d c -1 + d XML_CHAR_ENCODING_NONE... No encoding detected + d c 0 + d XML_CHAR_ENCODING_UTF8... UTF-8 + d c 1 + d XML_CHAR_ENCODING_UTF16LE... UTF-16 little endian + d c 2 + d XML_CHAR_ENCODING_UTF16BE... UTF-16 big endian + d c 3 + d XML_CHAR_ENCODING_UCS4LE... UCS-4 little endian + d c 4 + d XML_CHAR_ENCODING_UCS4BE... UCS-4 big endian + d c 5 + d XML_CHAR_ENCODING_EBCDIC... EBCDIC uh! + d c 6 + d XML_CHAR_ENCODING_UCS4_2143... UCS-4 unusual order + d c 7 + d XML_CHAR_ENCODING_UCS4_3412... UCS-4 unusual order + d c 8 + d XML_CHAR_ENCODING_UCS2... UCS-2 + d c 9 + d XML_CHAR_ENCODING_8859_1... ISO-8859-1 ISOLatin1 + d c 10 + d XML_CHAR_ENCODING_8859_2... ISO-8859-2 ISOLatin2 + d c 11 + d XML_CHAR_ENCODING_8859_3... ISO-8859-3 + d c 12 + d XML_CHAR_ENCODING_8859_4... ISO-8859-4 + d c 13 + d XML_CHAR_ENCODING_8859_5... ISO-8859-5 + d c 14 + d XML_CHAR_ENCODING_8859_6... ISO-8859-6 + d c 15 + d XML_CHAR_ENCODING_8859_7... ISO-8859-7 + d c 16 + d XML_CHAR_ENCODING_8859_8... ISO-8859-8 + d c 17 + d XML_CHAR_ENCODING_8859_9... ISO-8859-9 + d c 18 + d XML_CHAR_ENCODING_2022_JP... ISO-2022-JP + d c 19 + d XML_CHAR_ENCODING_SHIFT_JIS... Shift_JIS + d c 20 + d XML_CHAR_ENCODING_EUC_JP... EUC-JP + d c 21 + d XML_CHAR_ENCODING_ASCII... Pure ASCII + d c 22 + + * xmlCharEncodingInputFunc: + * @out: a pointer to an array of bytes to store the UTF-8 result + * @outlen: the length of @out + * @in: a pointer to an array of chars in the original encoding + * @inlen: the length of @in + * + * Take a block of chars in the original encoding and try to convert + * it to an UTF-8 block of chars out. + * + * Returns the number of bytes written, -1 if lack of space, or -2 + * if the transcoding failed. + * The value of @inlen after return is the number of octets consumed + * if the return value is positive, else unpredictiable. + * The value of @outlen after return is the number of octets consumed. + + d xmlCharEncodingInputFunc... + d s * based(######typedef######) + d procptr + + * xmlCharEncodingOutputFunc: + * @out: a pointer to an array of bytes to store the result + * @outlen: the length of @out + * @in: a pointer to an array of UTF-8 chars + * @inlen: the length of @in + * + * Take a block of UTF-8 chars in and try to convert it to another + * encoding. + * Note: a first call designed to produce heading info is called with + * in = NULL. If stateful this should also initialize the encoder state. + * + * Returns the number of bytes written, -1 if lack of space, or -2 + * if the transcoding failed. + * The value of @inlen after return is the number of octets consumed + * if the return value is positive, else unpredictiable. + * The value of @outlen after return is the number of octets produced. + + d xmlCharEncodingOutputFunc... + d s * based(######typedef######) + d procptr + + * Block defining the handlers for non UTF-8 encodings. + * If iconv is supported, there are two extra fields. + + /if defined(LIBXML_ICU_ENABLED) + d uconv_t ds based(######typedef######) + d align qualified + d uconv * UConverter * + d utf8 * UConverter * + /endif + + d xmlCharEncodingHandlerPtr... + d s * based(######typedef######) + + d xmlCharEncodingHandler... + d ds based(xmlCharEncodingHandlerPtr) + d align qualified + d name * char * + d input like(xmlCharEncodingInputFunc) + d output like(xmlCharEncodingOutputFunc) + * + /if defined(LIBXML_ICONV_ENABLED) + d iconv_in * iconv_t + d iconv_out * iconv_t + /endif LIBXML_ICONV_ENABLED + * + /if defined(LIBXML_ICU_ENABLED) + d uconv_in * uconv_t * + d uconv_out * uconv_t * + /endif LIBXML_ICU_ENABLED + + /include "libxmlrpg/tree" + + * Interfaces for encoding handlers. + + d xmlInitCharEncodingHandlers... + d pr extproc( + d 'xmlInitCharEncodingHandlers') + + d xmlCleanupCharEncodingHandlers... + d pr extproc( + d 'xmlCleanupCharEncodingHandlers') + + d xmlRegisterCharEncodingHandler... + d pr extproc( + d 'xmlRegisterCharEncodingHandler') + d handler value like(xmlCharEncodingHandlerPtr) + + d xmlGetCharEncodingHandler... + d pr extproc('xmlGetCharEncodingHandler') + d like(xmlCharEncodingHandlerPtr) + d enc value like(xmlCharEncoding) + + d xmlFindCharEncodingHandler... + d pr extproc('xmlFindCharEncodingHandler') + d like(xmlCharEncodingHandlerPtr) + d name * value options(*string) const char * + + d xmlNewCharEncodingHandler... + d pr extproc('xmlNewCharEncodingHandler') + d like(xmlCharEncodingHandlerPtr) + d name * value options(*string) const char * + d input value like(xmlCharEncodingInputFunc) + d output value like(xmlCharEncodingOutputFunc) + + * Interfaces for encoding names and aliases. + + d xmlAddEncodingAlias... + d pr extproc('xmlAddEncodingAlias') + d like(xmlCint) + d name * value options(*string) const char * + d alias * value options(*string) const char * + + d xmlDelEncodingAlias... + d pr extproc('xmlDelEncodingAlias') + d like(xmlCint) + d alias * value options(*string) const char * + + d xmlGetEncodingAlias... + d pr * extproc('xmlGetEncodingAlias') const char * + d alias * value options(*string) const char * + + d xmlCleanupEncodingAliases... + d pr extproc('xmlCleanupEncodingAliases') + + d xmlParseCharEncoding... + d pr extproc('xmlParseCharEncoding') + d like(xmlCharEncoding) + d name * value options(*string) const char * + + d xmlGetCharEncodingName... + d pr * extproc('xmlGetCharEncodingName') const char * + d enc value like(xmlCharEncoding) + + * Interfaces directly used by the parsers. + + d xmlDetectCharEncoding... + d pr extproc('xmlDetectCharEncoding') + d like(xmlCharEncoding) + d in * value options(*string) const unsigned char* + d len value like(xmlCint) + + d xmlCharEncOutFunc... + d pr extproc('xmlCharEncOutFunc') + d like(xmlCint) + d handler likeds(xmlCharEncodingHandler) + d out value like(xmlBufferPtr) + d in value like(xmlBufferPtr) + + d xmlCharEncInFunc... + d pr extproc('xmlCharEncInFunc') + d like(xmlCint) + d handler likeds(xmlCharEncodingHandler) + d out value like(xmlBufferPtr) + d in value like(xmlBufferPtr) + + d xmlCharEncFirstLine... + d pr extproc('xmlCharEncFirstLine') + d like(xmlCint) + d handler likeds(xmlCharEncodingHandler) + d out value like(xmlBufferPtr) + d in value like(xmlBufferPtr) + + d xmlCharEncCloseFunc... + d pr extproc('xmlCharEncCloseFunc') + d like(xmlCint) + d handler likeds(xmlCharEncodingHandler) + + * Export a few useful functions + + /if defined(LIBXML_OUTPUT_ENABLED) + d UTF8Toisolat1 pr extproc('UTF8Toisolat1') + d like(xmlCint) + d out 65535 options(*varsize) unsigned char (*) + d outlen like(xmlCint) + d in * value options(*string) const unsigned char* + d inlen like(xmlCint) + + /endif LIBXML_OUTPUT_ENABLD + + d isolat1ToUTF8 pr extproc('isolat1ToUTF8') + d like(xmlCint) + d out 65535 options(*varsize) unsigned char (*) + d outlen like(xmlCint) + d in * value options(*string) const unsigned char* + d inlen like(xmlCint) + + /endif XML_CHAR_ENCODING_H diff --git a/libxml2-2.9.10/os400/libxmlrpg/entities.rpgle b/libxml2-2.9.10/os400/libxmlrpg/entities.rpgle new file mode 100644 index 0000000..eeec1b6 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/entities.rpgle @@ -0,0 +1,176 @@ + * Summary: interface for the XML entities handling + * Description: this module provides some of the entity API needed + * for the parser and applications. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_ENTITIES_H__) + /define XML_ENTITIES_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + + * The different valid entity types. + + d xmlEntityType s based(######typedef######) + d like(xmlCenum) + d XML_INTERNAL_GENERAL_ENTITY... + d c 1 + d XML_EXTERNAL_GENERAL_PARSED_ENTITY... + d c 2 + d XML_EXTERNAL_GENERAL_UNPARSED_ENTITY... + d c 3 + d XML_INTERNAL_PARAMETER_ENTITY... + d c 4 + d XML_EXTERNAL_PARAMETER_ENTITY... + d c 5 + d XML_INTERNAL_PREDEFINED_ENTITY... + d c 6 + + * An unit of storage for an entity, contains the string, the value + * and the linkind data needed for the linking in the hash table. + + d xmlEntity ds based(xmlEntityPtr) + d align qualified + d #private * void * + d type like(xmlElementType) XML_ENTITY_DECL + d name * const xmlChar * + d children like(xmlNodePtr) First child link + d last like(xmlNodePtr) Last child link + d parent like(xmlDtdPtr) -> DTD + d next like(xmlNodePtr) next sibling link + d prev like(xmlNodePtr) prev sibling link + d doc like(xmlDocPtr) containing document + d orig * xmlChar * + d content * xmlChar * + d length like(xmlCint) content length + d etype like(xmlEntityType) The entity type + d ExternalID * const xmlChar * + d SystemlID * const xmlChar * + d nexte like(xmlEntityPtr) unused + d URI * const xmlChar * + d owner like(xmlCint) Owns children ? + d checked like(xmlCint) Content checked ? + + * All entities are stored in an hash table. + * There is 2 separate hash tables for global and parameter entities. + + d xmlEntitiesTablePtr... + d s * based(######typedef######) + + * External functions: + + /if defined(LIBXML_LEGACY_ENABLED) + d xmlInitializePredefinedEntities... + d pr extproc( + d 'xmlInitializePredefinedEntities') + /endif LIBXML_LEGACY_ENABLD + + d xmlNewEntity pr extproc('xmlNewEntity') + d like(xmlEntityPtr) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + d type value like(xmlCint) + d ExternalID * value options(*string) const xmlChar * + d SystemID * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + d xmlAddDocEntity... + d pr extproc('xmlAddDocEntity') + d like(xmlEntityPtr) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + d type value like(xmlCint) + d ExternalID * value options(*string) const xmlChar * + d SystemID * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + d xmlAddDtdEntity... + d pr extproc('xmlAddDtdEntity') + d like(xmlEntityPtr) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + d type value like(xmlCint) + d ExternalID * value options(*string) const xmlChar * + d SystemID * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + d xmlGetPredefinedEntity... + d pr extproc('xmlGetPredefinedEntity') + d like(xmlEntityPtr) + d name * value options(*string) const xmlChar * + + d xmlGetDocEntity... + d pr extproc('xmlGetDocEntity') + d like(xmlEntityPtr) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + + d xmlGetDtdEntity... + d pr extproc('xmlGetDtdEntity') + d like(xmlEntityPtr) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + + d xmlGetParameterEntity... + d pr extproc('xmlGetParameterEntity') + d like(xmlEntityPtr) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + + + /if defined(LIBXML_LEGACY_ENABLED) + d xmlEncodeEntities... + d pr * extproc('xmlEncodeEntities') xmlChar * + d doc value like(xmlDocPtr) + d input * value options(*string) const xmlChar * + /endif LIBXML_LEGACY_ENABLD + + d xmlEncodeEntitiesReentrant... + d pr * extproc( xmlChar * + d 'xmlEncodeEntitiesReentrant') + d doc value like(xmlDocPtr) + d input * value options(*string) const xmlChar * +XMLPU + d xmlEncodeSpecialChars... + d pr * extproc('xmlSpecialChars') xmlChar * + d doc value like(xmlDocPtr) + d input * value options(*string) const xmlChar * +XMLPU + d xmlCreateEntitiesTable... + d pr extproc('xmlCreateEntitiesTable') + d like(xmlEntitiesTablePtr) + + /if defined(LIBXML_TREE_ENABLED) + d xmlCopyEntitiesTable... + d pr extproc('xmlCopyEntitiesTable') + d like(xmlEntitiesTablePtr) + d table value like(xmlEntitiesTablePtr) + /endif LIBXML_TREE_ENABLED + + d xmlFreeEntitiesTable... + d pr extproc('xmlFreeEntitiesTable') + d table value like(xmlEntitiesTablePtr) +XMLPU + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlDumpEntitiesTable... + d pr extproc('xmlDumpEntitiesTable') + d buf value like(xmlBufferPtr) + d table value like(xmlEntitiesTablePtr) +XMLPU + d xmlDumpEntityDecl... + d pr extproc('xmlDumpEntityDecl') + d buf value like(xmlBufferPtr) + d ent value like(xmlEntityPtr) + /endif LIBXML_OUTPUT_ENABLD + + /if defined(LIBXML_LEGACY_ENABLED) + d xmlCleanupPredefinedEntities... + d pr extproc( +XMLPUd 'xmlCleanupPredefinedEntities') + /endif LIBXML_LEGACY_ENABLD + + /endif XML_ENTITIES_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/globals.rpgle b/libxml2-2.9.10/os400/libxmlrpg/globals.rpgle new file mode 100644 index 0000000..3fe3a9b --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/globals.rpgle @@ -0,0 +1,581 @@ + * Summary: interface for all global variables of the library + * Description: all the global variables and thread handling for + * those variables is handled by this module. + * + * The bottom of this file is automatically generated by build_glob.py + * based on the description file global.data + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_GLOBALS_H) + /define XML_GLOBALS_H + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/parser" + /include "libxmlrpg/xmlerror" + /include "libxmlrpg/SAX" + /include "libxmlrpg/SAX2" + /include "libxmlrpg/xmlmemory" + + d xmlInitGlobals pr extproc('xmlInitGlobals') + + d xmlCleanupGlobals... + d pr extproc('xmlCleanupGlobals') + + * xmlParserInputBufferCreateFilenameFunc: + * @URI: the URI to read from + * @enc: the requested source encoding + * + * Signature for the function doing the lookup for a suitable input method + * corresponding to an URI. + * + * Returns the new xmlParserInputBufferPtr in case of success or NULL if no + * method was found. + + d xmlParserInputBufferCreateFilenameFunc... + d s * based(######typedef######) + d procptr + + * xmlOutputBufferCreateFilenameFunc: + * @URI: the URI to write to + * @enc: the requested target encoding + * + * Signature for the function doing the lookup for a suitable output method + * corresponding to an URI. + * + * Returns the new xmlOutputBufferPtr in case of success or NULL if no + * method was found. + + d xmlOutputBufferCreateFilenameFunc... + d s * based(######typedef######) + d procptr + + d xmlParserInputBufferCreateFilenameDefault... + d pr extproc('xmlParserInputBufferCreate+ + d FilenameDefault') + d like(xmlParserInputBuffer... + d CreateFilenameFunc) + d func value like(xmlParserInputBuffer... + d CreateFilenameFunc) + + d xmlOutputBufferCreateFilenameDefault... + d pr extproc('xmlOutputBufferCreate+ + d FilenameDefault') + d like(xmlOutputBuffer... + d CreateFilenameFunc) + d func value like(xmlOutputBuffer... + d CreateFilenameFunc) + + * xmlRegisterNodeFunc: + * @node: the current node + * + * Signature for the registration callback of a created node + + d xmlRegisterNodeFunc... + d s * based(######typedef######) + d procptr + + * xmlDeregisterNodeFunc: + * @node: the current node + * + * Signature for the deregistration callback of a discarded node + + d xmlDeregisterNodeFunc... + d s * based(######typedef######) + d procptr + + d xmlGlobalStatePtr... + d s * based(######typedef######) + + d xmlGlobalState ds based(xmlGlobalStatePtr) + d align qualified + d xmlParserVersion... + d * const char * + d xmlDefaultSAXLocator... + d likeds(xmlSAXLocator) + d xmlDefaultSAXHandler... + d likeds(xmlSAXHandlerV1) + d docbDefaultSAXHandler... + d likeds(xmlSAXHandlerV1) + d htmlDefaultSAXHandler... + d likeds(xmlSAXHandlerV1) + d xmlFree like(xmlFreeFunc) + d xmlMalloc like(xmlMallocFunc) + d xmlMemStrdup like(xmlStrdupFunc) + d xmlRealloc like(xmlReallocFunc) + d xmlGenericError... + d like(xmlGenericErrorFunc) + d xmlStructuredError... + d like(xmlStructuredErrorFunc) + d xmlGenericErrorContext... + d * void * + d oldXMLWDcompatibility... + d like(xmlCint) + d xmlBufferAllocScheme... + d like(xmlBufferAllocationScheme) + d xmlDefaultBufferSize... + d like(xmlCint) + d xmlSubstituteEntitiesDefaultValue... + d like(xmlCint) + d xmlDoValidityCheckingDefaultValue... + d like(xmlCint) + d xmlGetWarningsDefaultValue... + d like(xmlCint) + d xmlKeepBlanksDefaultValue... + d like(xmlCint) + d xmlLineNumbersDefaultValue... + d like(xmlCint) + d xmlLoadExtDtdDefaultValue... + d like(xmlCint) + d xmlParserDebugEntities... + d like(xmlCint) + d xmlPedanticParserDefaultValue... + d like(xmlCint) + d xmlSaveNoEmptyTags... + d like(xmlCint) + d xmlIndentTreeOutput... + d like(xmlCint) + d xmlTreeIndentString... + d * const char * + d xmlRegisterNodeDefaultValue... + d like(xmlRegisterNodeFunc) + d xmlDeregisterNodeDefaultValue... + d like(xmlDeregisterNodeFunc) + d xmlMallocAtomic... + d like(xmlMallocFunc) + d xmlLastError likeds(xmlError) + d xmlParserInputBufferCreateFilenameValue... + d like(xmlParserInputBuffer... + d CreateFilenameFunc) + d xmlOutputBufferCreateFilenameValue... + d like(xmlOutputBuffer... + d CreateFilenameFunc) + d xmlStructuredErrorContext... + d * void * + + /include "libxmlrpg/threads" + + d xmlInitializeGlobalState... + d pr extproc('xmlInitializeGlobalState') + d qs value like(xmlGlobalStatePtr) + + d xmlThrDefSetGenericErrorFunc... + d pr extproc( + d 'xmlThrDefSetGenericErrorFunc') + d ctx * value void * + d handler value like(xmlGenericErrorFunc) + + d xmlThrDefSetStructuredErrorFunc... + d pr extproc( + d 'xmlThrDefSetStructuredErrorFunc') + d ctx * value void * + d handler value like(xmlStructuredErrorFunc) + + d xmlRegisterNodeDefault... + d pr extproc('xmlRegisterNodeDefault') + d like(xmlRegisterNodeFunc) + d func value like(xmlRegisterNodeFunc) + + d xmlThrDefRegisterNodeDefault... + d pr extproc( + d 'xmlThrDefRegisterNodeDefault') + d like(xmlRegisterNodeFunc) + d func value like(xmlRegisterNodeFunc) + + d xmlDeregisterNodeDefault... + d pr extproc('xmlDeregisterNodeDefault') + d like(xmlDeregisterNodeFunc) + d func value like(xmlDeregisterNodeFunc) + + d xmlThrDefDeregisterNodeDefault... + d pr extproc( + d 'xmlThrDefDeregisterNodeDefault') + d like(xmlDeregisterNodeFunc) + d func value like(xmlDeregisterNodeFunc) + + d xmlThrDefOutputBufferCreateFilenameDefault... + d pr extproc('xmlThrDefOutputBuffer+ + d CreateFilenameDefault') + d like(xmlOutputBuffer... + d CreateFilenameFunc) + d func value like(xmlOutputBuffer... + d CreateFilenameFunc) + + d xmlThrDefParserInputBufferCreateFilenameDefault... + d pr extproc('xmlThrDefParserInputBuffer+ + d CreateFilenameDefault') + d like(xmlParserInputBuffer... + d CreateFilenameFunc) + d func value like(xmlParserInputBuffer... + d CreateFilenameFunc) + + /if defined(LIBXML_DOCB_ENABLED) + d get_docbDefaultSAXHandler... + d pr extproc( + d '__get_docbDefaultSAXHandler') + d likeds(xmlSAXHandlerV1) + + d set_docbDefaultSAXHandler... + d pr extproc( + d '__set_docbDefaultSAXHandler') + d value value likeds(xmlSAXHandlerV1) + /endif + + /if defined(LIBXML_HTML_ENABLED) + d get_htmlDefaultSAXHandler... + d pr extproc( + d '__get_htmlDefaultSAXHandler') + d likeds(xmlSAXHandlerV1) + + d set_htmlDefaultSAXHandler... + d pr extproc( + d '__set_htmlDefaultSAXHandler') + d value value likeds(xmlSAXHandlerV1) + /endif + + d get_xmlLastError... + d pr extproc('__get_xmlLastError') + d likeds(xmlError) + + d set_xmlLastError... + d pr extproc('__set_xmlLastError') + d value value likeds(xmlError) + + d get_oldXMLWDcompatibility... + d pr extproc( + d '__get_oldXMLWDcompatibility') + d like(xmlCint) + + d set_oldXMLWDcompatibility... + d pr extproc( + d '__set_oldXMLWDcompatibility') + d value value like(xmlCint) + + d get_xmlBufferAllocScheme... + d pr extproc('__get_xmlBufferAllocScheme') + d like(xmlBufferAllocationScheme) + + d set_xmlBufferAllocScheme... + d pr extproc('__set_xmlBufferAllocScheme') + d value value like(xmlBufferAllocationScheme) + + d xmlThrDefBufferAllocScheme... + d pr extproc('xmlThrDefBufferAllocScheme') + d like(xmlBufferAllocationScheme) + d v value like(xmlBufferAllocationScheme) + + d get_xmlDefaultBufferSize... + d pr extproc('__get_xmlDefaultBufferSize') + d like(xmlCint) + + d set_xmlDefaultBufferSize... + d pr extproc('__set_xmlDefaultBufferSize') + d value value like(xmlCint) + + d xmlThrDefDefaultBufferSize... + d pr extproc('xmlThrDefDefaultBufferSize') + d like(xmlCint) + d v value like(xmlCint) + + d get_xmlDefaultSAXHandler... + d pr extproc('__get_xmlDefaultSAXHandler') + d likeds(xmlSAXHandlerV1) + + d set_xmlDefaultSAXHandler... + d pr extproc('__set_xmlDefaultSAXHandler') + d value value likeds(xmlSAXHandlerV1) + + d get_xmlDefaultSAXLocator... + d pr extproc('__get_xmlDefaultSAXLocator') + d likeds(xmlSAXLocator) + + d set_xmlDefaultSAXLocator... + d pr extproc('__set_xmlDefaultSAXLocator') + d value value likeds(xmlSAXLocator) + + d get_xmlDoValidityCheckingDefaultValue... + d pr extproc('__get_xmlDoValidity+ + d CheckingDefaultValue') + d like(xmlCint) + + d set_xmlDoValidityCheckingDefaultValue... + d pr extproc('__set_xmlDoValidity+ + d CheckingDefaultValue') + d value value like(xmlCint) + + d xmlThrDefDoValidityCheckingDefaultValue... + d pr extproc('xmlThrDefDoValidity+ + d CheckingDefaultValue') + d like(xmlCint) + d v value like(xmlCint) + + d get_xmlGenericError... + d pr extproc('__get_xmlGenericError') + d like(xmlGenericErrorFunc) + + d set_xmlGenericError... + d pr extproc('__set_xmlGenericError') + d func value like(xmlGenericErrorFunc) + + d get_xmlStructuredError... + d pr extproc('__get_xmlStructuredError') + d like(xmlStructuredErrorFunc) + + d set_xmlStructuredError... + d pr extproc('__set_xmlStructuredError') + d func value like(xmlStructuredErrorFunc) + + d xmlStructuredError... + d pr extproc('__call_xmlStructuredError') + d userData * value options(*string) void * + d error value like(xmlErrorPtr) + + d get_xmlGenericErrorContext... + d pr extproc( + d '__get_xmlGenericErrorContext') + d * void * + + d set_xmlGenericErrorContext... + d pr extproc( + d '__set_xmlGenericErrorContext') + d value * value options(*string) void * + + d get_xmlStructuredErrorContext... + d pr extproc( + d '__get_xmlStructuredErrorContext') + d * void * + + d set_xmlStructuredErrorContext... + d pr extproc( + d '__set_xmlStructuredErrorContext') + d value * value options(*string) void * + + d get_xmlGetWarningsDefaultValue... + d pr extproc( + d '__get_xmlGetWarningsDefaultValue') + d like(xmlCint) + + d set_xmlGetWarningsDefaultValue... + d pr extproc( + d '__set_xmlGetWarningsDefaultValue') + d value value like(xmlCint) + + d xmlThrDefGetWarningsDefaultValue... + d pr extproc( + d 'xmlThrDefGetWarningsDefaultValue') + d like(xmlCint) + d v value like(xmlCint) + + d get_xmlIndentTreeOutput... + d pr extproc('__get_xmlIndentTreeOutput') + d like(xmlCint) + + d set_xmlIndentTreeOutput... + d pr extproc('__set_xmlIndentTreeOutput') + d value value like(xmlCint) + + d xmlThrDefIndentTreeOutput... + d pr extproc('xmlThrDefIndentTreeOutput') + d like(xmlCint) + d v value like(xmlCint) + + d get_xmlTreeIndentString... + d pr * extproc('__get_xmlTreeIndentString') const char * + + d set_xmlTreeIndentString... + d pr extproc('__set_xmlTreeIndentString') + d value * value options(*string) const char * + + d xmlThrDefTreeIndentString... + d pr * extproc('xmlThrDefTreeIndentString') const char * + d v * value options(*string) const char * + + d get_xmlKeepBlanksDefaultValue... + d pr extproc( + d '__get_xmlKeepBlanksDefaultValue') + d like(xmlCint) + + d set_xmlKeepBlanksDefaultValue... + d pr extproc( + d '__set_xmlKeepBlanksDefaultValue') + d value value like(xmlCint) + + d xmlThrDefKeepBlanksDefaultValue... + d pr extproc( + d 'xmlThrDefKeepBlanksDefaultValue') + d like(xmlCint) + d v value like(xmlCint) + + d get_xmlLineNumbersDefaultValue... + d pr extproc( + d '__get_xmlLineNumbersDefaultValue') + d like(xmlCint) + + d set_xmlLineNumbersDefaultValue... + d pr extproc( + d '__set_xmlLineNumbersDefaultValue') + d value value like(xmlCint) + + d xmlThrDefLineNumbersDefaultValue... + d pr extproc( + d 'xmlThrDefLineNumbersDefaultValue') + d like(xmlCint) + d v value like(xmlCint) + + d get_xmlLoadExtDtdDefaultValue... + d pr extproc( + d '__get_xmlLoadExtDtdDefaultValue') + d like(xmlCint) + + d set_xmlLoadExtDtdDefaultValue... + d pr extproc( + d '__set_xmlLoadExtDtdDefaultValue') + d value value like(xmlCint) + + d xmlThrDefLoadExtDtdDefaultValue... + d pr extproc( + d 'xmlThrDefLoadExtDtdDefaultValue') + d like(xmlCint) + d v value like(xmlCint) + + d get_xmlParserDebugEntities... + d pr extproc( + d '__get_xmlParserDebugEntities') + d like(xmlCint) + + d set_xmlParserDebugEntities... + d pr extproc( + d '__set_xmlParserDebugEntities') + d value value like(xmlCint) + + d xmlThrDefParserDebugEntities... + d pr extproc( + d 'xmlThrDefParserDebugEntities') + d like(xmlCint) + d v value like(xmlCint) + + d get_xmlParserVersion... + d pr * extproc('__get_xmlParserVersion') const char * + + d set_xmlParserVersion... + d pr extproc('__set_xmlParserVersion') + d value * value options(*string) const char * + + d get_xmlPedanticParserDefaultValue... + d pr extproc('__get_xmlPedantic+ + d ParserDefaultValue') + d like(xmlCint) + + d set_xmlPedanticParserDefaultValue... + d pr extproc('__set_xmlPedantic+ + d ParserDefaultValue') + d value value like(xmlCint) + + d xmlThrDefPedanticParserDefaultValue... + d pr extproc('xmlThrDefPedantic+ + d ParserDefaultValue') + d like(xmlCint) + d v value like(xmlCint) + + d get_xmlSaveNoEmptyTags... + d pr extproc('__get_xmlSaveNoEmptyTags') + d like(xmlCint) + + d set_xmlSaveNoEmptyTags... + d pr extproc('__set_xmlSaveNoEmptyTags') + d value value like(xmlCint) + + d xmlThrDefSaveNoEmptyTags... + d pr extproc('xmlThrDefSaveNoEmptyTags') + d like(xmlCint) + d v value like(xmlCint) + + d get_xmlSubstituteEntitiesDefaultValue... + d pr extproc('__get_xmlSubstitute+ + d EntitiesDefaultValue') + d like(xmlCint) + + d set_xmlSubstituteEntitiesDefaultValue... + d pr extproc('__set_xmlSubstitute+ + d EntitiesDefaultValue') + d value value like(xmlCint) + + d xmlThrDefSubstituteEntitiesDefaultValue... + d pr extproc('xmlThrDefSubstitute+ + d EntitiesDefaultValue') + d like(xmlCint) + d v value like(xmlCint) + + d get_xmlRegisterNodeDefaultValue... + d pr extproc('__get_xmlRegisterNode+ + d DefaultValue') + d like(xmlRegisterNodeFunc) + + d set_xmlRegisterNodeDefaultValue... + d pr extproc('__set_xmlRegisterNode+ + d DefaultValue') + d value value like(xmlRegisterNodeFunc) + + d xmlRegisterNodeDefaultValue... + d pr extproc('__call_xmlRegisterNode+ + d DefaultValue') + d node value like(xmlNodePtr) + + d get_xmlDeregisterNodeDefaultValue... + d pr extproc('__get_xmlDeregisterNode+ + d DefaultValue') + d like(xmlDeregisterNodeFunc) + + d set_xmlDeregisterNodeDefaultValue... + d pr extproc('__set_xmlDeregisterNode+ + d DefaultValue') + d value value like(xmlDeregisterNodeFunc) + + d xmlDeregisterNodeDefaultValue... + d pr extproc('__call_xmlDeregisterNode+ + d DefaultValue') + d node value like(xmlNodePtr) + + d get_xmlParserInputBufferCreateFilenameValue... + d pr extproc('__get_xmlParserInputBuffer+ + d CreateFilenameValue') + d like(xmlParserInputBuffer... + d CreateFilenameFunc) + + d set_xmlParserInputBufferCreateFilenameValue... + d pr extproc('__set_xmlParserInputBuffer+ + d CreateFilenameValue') + d value value like(xmlParserInputBuffer... + d CreateFilenameFunc) + + d xmlParserInputBufferCreateFilenameValue... + d pr extproc('__call_xmlParserInputBuffer+ + d CreateFilenameValue') + d like(xmlParserInputBufferPtr) + d URI * value options(*string) const char * + d enc value like(xmlCharEncoding) + + d get_xmlOutputBufferCreateFilenameValue... + d pr extproc('__get_xmlOutputBuffer+ + d CreateFilenameValue') + d like( + d xmlOutputBufferCreateFilenameFunc) + + d set_xmlOutputBufferCreateFilenameValue... + d pr extproc('__set_xmlOutputBuffer+ + d CreateFilenameValue') + d value value like( + d xmlOutputBufferCreateFilenameFunc) + + d xmlOutputBufferCreateFilenameValue... + d pr extproc('__call_xmlOutputBuffer+ + d CreateFilenameValue') + d like(xmlOutputBufferPtr) + d URI * value options(*string) const char * + d encoder value like(xmlCharEncodingHandlerPtr) + d compression value like(xmlCint) + + /endif XML_GLOBALS_H diff --git a/libxml2-2.9.10/os400/libxmlrpg/hash.rpgle b/libxml2-2.9.10/os400/libxmlrpg/hash.rpgle new file mode 100644 index 0000000..b2169df --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/hash.rpgle @@ -0,0 +1,243 @@ + * Summary: Chained hash tables + * Description: This module implements the hash table support used in + * various places in the library. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_HASH_H__) + /define XML_HASH_H__ + + /include "libxmlrpg/xmlTypesC" + + * The hash table. + + d xmlHashTablePtr... + d s * based(######typedef######) + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/parser" + /include "libxmlrpg/dict" + + * function types: + + * xmlHashDeallocator: + * @payload: the data in the hash + * @name: the name associated + * + * Callback to free data from a hash. + + d xmlHashDeallocator... + d s * based(######typedef######) + d procptr + + * xmlHashCopier: + * @payload: the data in the hash + * @name: the name associated + * + * Callback to copy data from a hash. + * + * Returns a copy of the data or NULL in case of error. + + d xmlHashCopier s * based(######typedef######) + d procptr + + * xmlHashScanner: + * @payload: the data in the hash + * @data: extra scannner data + * @name: the name associated + * + * Callback when scanning data in a hash with the simple scanner. + + d xmlHashScanner s * based(######typedef######) + d procptr + + * xmlHashScannerFull: + * @payload: the data in the hash + * @data: extra scannner data + * @name: the name associated + * @name2: the second name associated + * @name3: the third name associated + * + * Callback when scanning data in a hash with the full scanner. + + d xmlHashScannerFull... + d s * based(######typedef######) + d procptr + + * Constructor and destructor. + + d xmlHashCreate pr extproc('xmlHashCreate') + d like(xmlHashTablePtr) + d size value like(xmlCint) + + d xmlHashCreateDict... + d pr extproc('xmlHashCreateDict') + d like(xmlHashTablePtr) + d size value like(xmlCint) + d dict value like(xmlDictPtr) + + d xmlHashFree pr extproc('xmlHashFree') + d table value like(xmlHashTablePtr) + d f value like(xmlHashDeallocator) + + * Add a new entry to the hash table. + + d xmlHashAddEntry... + d pr extproc('xmlHashAddEntry') + d like(xmlCint) + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d userdata * value options(*string) void * + + d xmlHashUpdateEntry... + d pr extproc('xmlHashUpdateEntry') + d like(xmlCint) + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d userdata * value options(*string) void * + d f value like(xmlHashDeallocator) + + d xmlHashAddEntry2... + d pr extproc('xmlHashAddEntry2') + d like(xmlCint) + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + d userdata * value options(*string) void * + + d xmlHashUpdateEntry2... + d pr extproc('xmlHashUpdateEntry2') + d like(xmlCint) + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + d userdata * value options(*string) void * + d f value like(xmlHashDeallocator) + + d xmlHashAddEntry3... + d pr extproc('xmlHashAddEntry3') + d like(xmlCint) + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + d name3 * value options(*string) const xmlChar * + d userdata * value options(*string) void * + + d xmlHashUpdateEntry3... + d pr extproc('xmlHashUpdateEntry3') + d like(xmlCint) + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + d name3 * value options(*string) const xmlChar * + d userdata * value options(*string) void * + d f value like(xmlHashDeallocator) + + * Remove an entry from the hash table. + + d xmlHashRemoveEntry... + d pr extproc('xmlHashRemoveEntry') + d like(xmlCint) + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d f value like(xmlHashDeallocator) + + d xmlHashRemoveEntry2... + d pr extproc('xmlHashRemoveEntry2') + d like(xmlCint) + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + d f value like(xmlHashDeallocator) + + d xmlHashRemoveEntry3... + d pr extproc('xmlHashRemoveEntry3') + d like(xmlCint) + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + d name3 * value options(*string) const xmlChar * + d f value like(xmlHashDeallocator) + + * Retrieve the userdata. + + d xmlHashLookup pr * extproc('xmlHashLookup') void * + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + + d xmlHashLookup2 pr * extproc('xmlHashLookup2') void * + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + + d xmlHashLookup3 pr * extproc('xmlHashLookup3') void * + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + d name3 * value options(*string) const xmlChar * + + d xmlHashQLookup pr * extproc('xmlHashQLookup') void * + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + + d xmlHashQLookup2... + d pr * extproc('xmlHashQLookup2') void * + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + d prefix2 * value options(*string) const xmlChar * + + d xmlHashQLookup3... + d pr * extproc('xmlHashQLookup3') void * + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + d prefix2 * value options(*string) const xmlChar * + d name3 * value options(*string) const xmlChar * + d prefix3 * value options(*string) const xmlChar * + + * Helpers. + + d xmlHashCopy pr extproc('xmlHashCopy') + d like(xmlHashTablePtr) + d table value like(xmlHashTablePtr) + d f value like(xmlHashCopier) + + d xmlHashSize pr extproc('xmlHashSize') + d like(xmlCint) + d table value like(xmlHashTablePtr) + + d xmlHashScan pr extproc('xmlHashScan') + d table value like(xmlHashTablePtr) + d f value like(xmlHashScanner) + d data * value options(*string) void * + + d xmlHashScan3 pr extproc('xmlHashScan3') + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + d name3 * value options(*string) const xmlChar * + d f value like(xmlHashScanner) + d data * value options(*string) void * + + d xmlHashScanFull... + d pr extproc('xmlHashScanFull') + d table value like(xmlHashTablePtr) + d f value like(xmlHashScannerFull) + d data * value options(*string) void * + + d xmlHashScanFull3... + d pr extproc('xmlHashScanFull3') + d table value like(xmlHashTablePtr) + d name * value options(*string) const xmlChar * + d name2 * value options(*string) const xmlChar * + d name3 * value options(*string) const xmlChar * + d f value like(xmlHashScannerFull) + d data * value options(*string) void * + + /endif XML_HASH_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/list.rpgle b/libxml2-2.9.10/os400/libxmlrpg/list.rpgle new file mode 100644 index 0000000..ce2fa1c --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/list.rpgle @@ -0,0 +1,179 @@ + * Summary: lists interfaces + * Description: this module implement the list support used in + * various place in the library. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_LINK_INCLUDE__) + /define XML_LINK_INCLUDE__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + + d xmlLinkPtr s * based(######typedef######) + + d xmlListPtr s * based(######typedef######) + + * xmlListDeallocator: + * @lk: the data to deallocate + * + * Callback function used to free data from a list. + + d xmlListDeallocator... + d s * based(######typedef######) + d procptr + + * xmlListDataCompare: + * @data0: the first data + * @data1: the second data + * + * Callback function used to compare 2 data. + * + * Returns 0 is equality, -1 or 1 otherwise depending on the ordering. + + d xmlListDataCompare... + d s * based(######typedef######) + d procptr + + * xmlListWalker: + * @data: the data found in the list + * @user: extra user provided data to the walker + * + * Callback function used when walking a list with xmlListWalk(). + * + * Returns 0 to stop walking the list, 1 otherwise. + + d xmlListWalker s * based(######typedef######) + d procptr + + * Creation/Deletion + + d xmlListCreate pr extproc('xmlListCreate') + d like(xmlListPtr) + d deallocator value like(xmlListDeallocator) + d compare value like(xmlListDataCompare) + + d xmlListDelete pr extproc('xmlListDelete') + d l value like(xmlListPtr) + + * Basic Operators + + d xmlListSearch pr * extproc('xmlListSearch') void * + d l value like(xmlListPtr) + d data * value void * + + d xmlListReverseSearch... + d pr * extproc('xmlListReverseSearch') void * + d l value like(xmlListPtr) + d data * value void * + + d xmlListInsert pr extproc('xmlListInsert') + d like(xmlCint) + d l value like(xmlListPtr) + d data * value void * + + d xmlListAppend pr extproc('xmlListAppend') + d like(xmlCint) + d l value like(xmlListPtr) + d data * value void * + + d xmlListRemoveFirst... + d pr extproc('xmlListRemoveFirst') + d like(xmlCint) + d l value like(xmlListPtr) + d data * value void * + + d xmlListRemoveLast... + d pr extproc('xmlListRemoveLast') + d like(xmlCint) + d l value like(xmlListPtr) + d data * value void * + + d xmlListRemoveAll... + d pr extproc('xmlListRemoveAll') + d like(xmlCint) + d l value like(xmlListPtr) + d data * value void * + + d xmlListClear pr extproc('xmlListClear') + d l value like(xmlListPtr) + + d xmlListEmpty pr extproc('xmlListEmpty') + d like(xmlCint) + d l value like(xmlListPtr) + + d xmlListFront pr extproc('xmlListFront') + d like(xmlLinkPtr) + d l value like(xmlListPtr) + + d xmlListEnd pr extproc('xmlListEnd') + d like(xmlLinkPtr) + d l value like(xmlListPtr) + + d xmlListSize pr extproc('xmlListSize') + d like(xmlCint) + d l value like(xmlListPtr) + + d xmlListPopFront... + d pr extproc('xmlListPopFront') + d l value like(xmlListPtr) + + d xmlListPopBack... + d pr extproc('xmlListPopBack') + d l value like(xmlListPtr) + + d xmlListPushFront... + d pr extproc('xmlListPushFront') + d like(xmlCint) + d l value like(xmlListPtr) + d data * value void * + + d xmlListPushBack... + d pr extproc('xmlListPushBack') + d like(xmlCint) + d l value like(xmlListPtr) + d data * value void * + + * Advanced Operators + + d xmlListReverse pr extproc('xmlListReverse') + d l value like(xmlListPtr) + + d xmlListSort pr extproc('xmlListSort') + d l value like(xmlListPtr) + + d xmlListWalk pr extproc('xmlListWalk') + d l value like(xmlListPtr) + d walker value like(xmlListWalker) + d user * value const void * + + d xmlListReverseWalk... + d pr extproc('xmlListReverseWalk') + d l value like(xmlListPtr) + d walker value like(xmlListWalker) + d user * value const void * + + d xmlListMerge pr extproc('xmlListMerge') + d l1 value like(xmlListPtr) + d l2 value like(xmlListPtr) + + d xmlListDup pr extproc('xmlListDup') + d like(xmlListPtr) + d old value like(xmlListPtr) + + d xmlListCopy pr extproc('xmlListCopy') + d like(xmlCint) + d cur value like(xmlListPtr) + d old value like(xmlListPtr) const + + * Link operators + + d xmlListGetData pr * extproc('xmlListGetData') void * + d lk value like(xmlLinkPtr) + + * xmlListUnique() + * xmlListSwap + + /endif XML_LINK_INCLUDE__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/nanoftp.rpgle b/libxml2-2.9.10/os400/libxmlrpg/nanoftp.rpgle new file mode 100644 index 0000000..ac4f2aa --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/nanoftp.rpgle @@ -0,0 +1,172 @@ + * Summary: minimal FTP implementation + * Description: minimal FTP implementation allowing to fetch resources + * like external subset. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(NANO_FTP_H__) + /define NANO_FTP_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_FTP_ENABLED) + + /include "libxmlrpg/xmlTypesC" + + d INVALID_SOCKET c -1 + + * ftpListCallback: + * @userData: user provided data for the callback + * @filename: the file name (including "->" when links are shown) + * @attrib: the attribute string + * @owner: the owner string + * @group: the group string + * @size: the file size + * @links: the link count + * @year: the year + * @month: the month + * @day: the day + * @hour: the hour + * @minute: the minute + * + * A callback for the xmlNanoFTPList command. + * Note that only one of year and day:minute are specified. + + d ftpListCallback... + d s * based(######typedef######) + d procptr + + * ftpDataCallback: + * @userData: the user provided context + * @data: the data received + * @len: its size in bytes + * + * A callback for the xmlNanoFTPGet command. + + d ftpDataCallback... + d s * based(######typedef######) + d procptr + + * Init + + d xmlNanoFTPInit pr extproc('xmlNanoFTPInit') + + d xmlNanoFTPCleanup... + d pr extproc('xmlNanoFTPCleanup') + + * Creating/freeing contexts. + + d xmlNanoFTPNewCtxt... + d pr * extproc('xmlNanoFTPNewCtxt') void * + d URL * value options(*string) const char * + + d xmlNanoFTPFreeCtxt... + d pr extproc('xmlNanoFTPFreeCtxt') + d ctx * value void * + + d xmlNanoFTPConnectTo... + d pr * extproc('xmlNanoFTPConnectTo') void * + d server * value options(*string) const char * + d port value like(xmlCint) + + * Opening/closing session connections. + + d xmlNanoFTPOpen pr * extproc('xmlNanoFTPOpen') void * + d URL * value options(*string) const char * + + d xmlNanoFTPConnect... + d pr extproc('xmlNanoFTPConnect') + d like(xmlCint) + d ctx * value void * + + d xmlNanoFTPClose... + d pr extproc('xmlNanoFTPClose') + d like(xmlCint) + d ctx * value void * + + d xmlNanoFTPQuit pr extproc('xmlNanoFTPQuit') + d like(xmlCint) + d ctx * value void * + + d xmlNanoFTPScanProxy... + d pr extproc('xmlNanoFTPScanProxy') + d URL * value options(*string) const char * + + d xmlNanoFTPProxy... + d pr extproc('xmlNanoFTPProxy') + d host * value options(*string) const char * + d port value like(xmlCint) + d user * value options(*string) const char * + d passwd * value options(*string) const char * + d type value like(xmlCint) + + d xmlNanoFTPUpdateURL... + d pr extproc('xmlNanoFTPUpdateURL') + d like(xmlCint) + d ctx * value void * + d URL * value options(*string) const char * + + * Rather internal commands. + + d xmlNanoFTPGetResponse... + d pr extproc('xmlNanoFTPGetResponse') + d like(xmlCint) + d ctx * value void * + + d xmlNanoFTPCheckResponse... + d pr extproc('xmlNanoFTPCheckResponse') + d like(xmlCint) + d ctx * value void * + + * CD/DIR/GET handlers. + + d xmlNanoFTPCwd pr extproc('xmlNanoFTPCwd') + d like(xmlCint) + d ctx * value void * + d directory * value options(*string) const char * + + d xmlNanoFTPDele pr extproc('xmlNanoFTPDele') + d like(xmlCint) + d ctx * value void * + d file * value options(*string) const char * + + d xmlNanoFTPGetConnection... + d pr extproc('xmlNanoFTPGetConnection') Socket descriptor + d like(xmlCint) + d ctx * value void * + + d xmlNanoFTPCloseConnection... + d pr extproc('xmlNanoFTPCloseConnection') + d like(xmlCint) + d ctx * value void * + + d xmlNanoFTPList pr extproc('xmlNanoFTPList') + d like(xmlCint) + d ctx * value void * + d callback value like(ftpListCallback) + d userData * value void * + d filename * value options(*string) const char * + + d xmlNanoFTPGetSocket... + d pr extproc('xmlNanoFTPGetSocket') Socket descriptor + d like(xmlCint) + d ctx * value void * + d filename * value options(*string) const char * + + d xmlNanoFTPGet pr extproc('xmlNanoFTPGet') + d like(xmlCint) + d ctx * value void * + d callback value like(ftpDataCallback) + d userData * value void * + d filename * value options(*string) const char * + + d xmlNanoFTPRead pr extproc('xmlNanoFTPRead') + d like(xmlCint) + d ctx * value void * + d dest * value void * + d len value like(xmlCint) + + /endif LIBXML_FTP_ENABLED + /endif NANO_FTP_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/nanohttp.rpgle b/libxml2-2.9.10/os400/libxmlrpg/nanohttp.rpgle new file mode 100644 index 0000000..d4e6008 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/nanohttp.rpgle @@ -0,0 +1,110 @@ + * Summary: minimal HTTP implementation + * Description: minimal HTTP implementation allowing to fetch resources + * like external subset. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(NANO_HTTP_H__) + /define NANO_HTTP_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_HTTP_ENABLED) + + /include "libxmlrpg/xmlTypesC" + + d xmlNanoHTTPInit... + d pr extproc('xmlNanoHTTPInit') + + d xmlNanoHTTPCleanup... + d pr extproc('xmlNanoHTTPCleanup') + + d xmlNanoHTTPScanProxy... + d pr extproc('xmlNanoHTTPScanProxy') + d URL * value options(*string) const char * + + d xmlNanoHTTPFetch... + d pr extproc('xmlNanoHTTPFetch') + d like(xmlCint) + d URL * value options(*string) const char * + d filename * value options(*string) const char * + + d xmlNanoHTTPMethod... + d pr * extproc('xmlNanoHTTPMethod') void * + d URL * value options(*string) const char * + d method * value options(*string) const char * + d input * value options(*string) const char * + d contentType * value char * * + d headers * value options(*string) const char * + d ilen value like(xmlCint) + + d xmlNanoHTTPMethodRedir... + d pr * extproc('xmlNanoHTTPMethodRedir') void * + d URL * value options(*string) const char * + d method * value options(*string) const char * + d input * value options(*string) const char * + d contentType * value char * * + d redir * value char * * + d headers * value options(*string) const char * + d ilen value like(xmlCint) + + d xmlNanoHTTPOpen... + d pr * extproc('xmlNanoHTTPOpen') void * + d URL * value options(*string) const char * + d contentType * char *(*) + + d xmlNanoHTTPOpenRedir... + d pr * extproc('xmlNanoHTTPOpenRedir') void * + d URL * value options(*string) const char * + d contentType * value char * * + d redir * value char * * + + d xmlNanoHTTPReturnCode... + d pr extproc('xmlNanoHTTPReturnCode') + d like(xmlCint) + d ctx * value void * + + d xmlNanoHTTPAuthHeader... + d pr * extproc('xmlNanoHTTPAuthHeader') const char * + d ctx * value void * + + d xmlNanoHTTPRedir... + d pr * extproc('xmlNanoHTTPRedir') const char * + d ctx * value void * + + d xmlNanoHTTPContentLength... + d pr extproc('xmlNanoHTTPContentLength') + d like(xmlCint) + d ctx * value void * + + d xmlNanoHTTPEncoding... + d pr * extproc('xmlNanoHTTPEncoding') const char * + d ctx * value void * + + d xmlNanoHTTPMimeType... + d pr * extproc('xmlNanoHTTPMimeType') const char * + d ctx * value void * + + d xmlNanoHTTPRead... + d pr extproc('xmlNanoHTTPRead') + d like(xmlCint) + d ctx * value void * + d dest * value void * + d len value like(xmlCint) + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlNanoHTTPSave... + d pr extproc('xmlNanoHTTPSave') + d like(xmlCint) + d ctxt * value void * + d filename * value options(*string) const char * + /endif LIBXML_OUTPUT_ENABLD + + d xmlNanoHTTPClose... + d pr extproc('xmlNanoHTTPClose') + d ctx * value void * + + /endif LIBXML_HTTP_ENABLED + /endif NANO_HTTP_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/parser.rpgle b/libxml2-2.9.10/os400/libxmlrpg/parser.rpgle new file mode 100644 index 0000000..fa48d4f --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/parser.rpgle @@ -0,0 +1,1436 @@ + * Summary: the core parser module + * Description: Interfaces, constants and types related to the XML parser + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_PARSER_H__) + /define XML_PARSER_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + /include "libxmlrpg/dict" + /include "libxmlrpg/hash" + /include "libxmlrpg/valid" + /include "libxmlrpg/entities" + /include "libxmlrpg/xmlerror" + /include "libxmlrpg/xmlstring" + + * XML_DEFAULT_VERSION: + * + * The default version of XML used: 1.0 + + d XML_DEFAULT_VERSION... + d c '1.0' + + * xmlParserInput: + * + * An xmlParserInput is an input flow for the XML processor. + * Each entity parsed is associated an xmlParserInput (except the + * few predefined ones). This is the case both for internal entities + * - in which case the flow is already completely in memory - or + * external entities - in which case we use the buf structure for + * progressive reading and I18N conversions to the internal UTF-8 format. + + * xmlParserInputDeallocate: + * @str: the string to deallocate + * + * Callback for freeing some parser input allocations. + + d xmlParserInputDeallocate... + d s * based(######typedef######) + d procptr + + * Input buffer + + d xmlParserInput ds based(xmlParserInputPtr) + d align qualified + d buf like(xmlParserInputBufferPtr) UTF-8 encoded buffer + d filename * const char * + d directory * const char * + d base * const char * + d cur * const char * + d end * const char * + d length like(xmlCint) Length if known + d line like(xmlCint) Current line + d col like(xmlCint) Current column + * + * NOTE: consumed is only tested for equality in the parser code, + * so even if there is an overflow this should not give troubles + * for parsing very large instances. + * + d consumed like(xmlCulong) # consumed xmlChars + d free like(xmlParserInputDeallocate) base deallocator + d encoding * const xmlChar * + d version * const xmlChar * + d standalone like(xmlCint) Standalone entity ? + d id like(xmlCint) Entity unique ID + + * xmlParserNodeInfo: + * + * The parser can be asked to collect Node informations, i.e. at what + * place in the file they were detected. + * NOTE: This is off by default and not very well tested. + + d xmlParserNodeInfoPtr... + d s * based(######typedef######) + + d xmlParserNodeInfo... + d ds based(xmlParserNodeInfoPtr) + d align qualified + d node like(xmlNodePtr) const + * Position & line # that text that created the node begins & ends on + d begin_pos like(xmlCulong) + d begin_line like(xmlCulong) + d end_pos like(xmlCulong) + d end_line like(xmlCulong) + + d xmlParserNodeInfoSeqPtr... + d s * based(######typedef######) + + d xmlParserNodeInfoSeq... + d ds based(xmlParserNodeInfoSeqPtr) + d align qualified + d maximum like(xmlCulong) + d length like(xmlCulong) + d buffer like(xmlParserNodeInfoPtr) + + * xmlParserInputState: + * + * The parser is now working also as a state based parser. + * The recursive one use the state info for entities processing. + + d xmlParserInputState... + d s based(######typedef######) + d like(xmlCenum) + d XML_PARSER_EOF... Nothing to parse + d c -1 + d XML_PARSER_START... Nothing parsed + d c 0 + d XML_PARSER_MISC... Misc* b4 int subset + d c 1 + d XML_PARSER_PI c 2 In proc instr + d XML_PARSER_DTD... In some DTD content + d c 3 + d XML_PARSER_PROLOG... Misc* after int sbst + d c 4 + d XML_PARSER_COMMENT... Within a comment + d c 5 + d XML_PARSER_START_TAG... Within a start tag + d c 6 + d XML_PARSER_CONTENT... Within the content + d c 7 + d XML_PARSER_CDATA_SECTION... Within a CDATA + d c 8 + d XML_PARSER_END_TAG... Within a closing tag + d c 9 + d XML_PARSER_ENTITY_DECL... In an entity decl + d c 10 + d XML_PARSER_ENTITY_VALUE... In entity decl value + d c 11 + d XML_PARSER_ATTRIBUTE_VALUE... In attribute value + d c 12 + d XML_PARSER_SYSTEM_LITERAL... In a SYSTEM value + d c 13 + d XML_PARSER_EPILOG... Last end tag Misc* + d c 14 + d XML_PARSER_IGNORE... In IGNORED section + d c 15 + d XML_PARSER_PUBLIC_LITERAL... In a PUBLIC value + d c 16 + + * XML_DETECT_IDS: + * + * Bit in the loadsubset context field to tell to do ID/REFs lookups. + * Use it to initialize xmlLoadExtDtdDefaultValue. + + d XML_DETECT_IDS c 2 + + * XML_COMPLETE_ATTRS: + * + * Bit in the loadsubset context field to tell to do complete the + * elements attributes lists with the ones defaulted from the DTDs. + * Use it to initialize xmlLoadExtDtdDefaultValue. + + d XML_COMPLETE_ATTRS... + d c 4 + + * XML_SKIP_IDS: + * + * Bit in the loadsubset context field to tell to not do ID/REFs + * registration. + * Used to initialize xmlLoadExtDtdDefaultValue in some special cases. + + d XML_SKIP_IDS c 8 + + * xmlParserMode: + * + * A parser can operate in various modes + + d xmlParserMode s based(######typedef######) + d like(xmlCenum) + d XML_PARSE_UNKNOWN... + d c 0 + d XML_PARSE_DOM... + d c 1 + d XML_PARSE_SAX... + d c 2 + d XML_PARSE_PUSH_DOM... + d c 3 + d XML_PARSE_PUSH_SAX... + d c 4 + d XML_PARSE_READER... + d c 5 + + * xmlParserCtxt: + * + * The parser context. + * NOTE This doesn't completely define the parser state, the (current ?) + * design of the parser uses recursive function calls since this allow + * and easy mapping from the production rules of the specification + * to the actual code. The drawback is that the actual function call + * also reflect the parser state. However most of the parsing routines + * takes as the only argument the parser context pointer, so migrating + * to a state based parser for progressive parsing shouldn't be too + * hard. + + d xmlParserCtxt ds based(xmlParserCtxtPtr) + d align qualified + d sax like(xmlSAXHandlerPtr) The SAX handler + d userData * SAX only-4 DOM build + d myDoc like(xmlDocPtr) Document being built + d wellFormed like(xmlCint) Well formed doc ? + d replaceEntities... Replace entities ? + d like(xmlCint) + d version * const xmlChar * + d encoding * const xmlChar * + d standalone like(xmlCint) Standalone document + d html like(xmlCint) HTML state/type + * + * Input stream stack + * + d input like(xmlParserInputPtr) Current input stream + d inputNr like(xmlCint) # current in streams + d inputMax like(xmlCint) Max # of in streams + d inputTab * xmlParserInputPtr * + * + * Node analysis stack only used for DOM building + * + d node like(xmlNodePtr) Current parsed node + d nodeNr like(xmlCint) Parsing stack depth + d nodeMax like(xmlCint) Max stack depth + d nodeTab * xmlNodePtr * + * + d record_info like(xmlCint) Keep node info ? + d node_seq likeds(xmlParserNodeInfoSeq) Parsed nodes info + * + d errNo like(xmlCint) Error code + * + d hasExternalSubset... + d like(xmlCint) + d hasPErefs like(xmlCint) + d external like(xmlCint) Parsing ext. entity? + * + d valid like(xmlCint) Valid document ? + d validate like(xmlCint) Try to validate ? + d vctxt likeds(xmlValidCtxt) Validity context + * + d instate like(xmlParserInputState) Current input type + d token like(xmlCint) Next look-ahead char + * + d directory * char * + * + * Node name stack + * + d name * const xmlChar * + d nameNr like(xmlCint) Parsing stack depth + d nameMax like(xmlCint) Max stack depth + d nameTab * const xmlChar * * + * + d nbChars like(xmlClong) # xmlChars processed + d checkIndex like(xmlClong) 4 progressive parse + d keepBlanks like(xmlCint) Ugly but ... + d disableSAX like(xmlCint) Disable SAX cllbacks + d inSubset like(xmlCint) In int 1/ext 2 sbset + d intSubName * const xmlChar * + d extSubURI * const xmlChar * + d extSubSytem * const xmlChar * + * + * xml:space values + * + d space * int * + d spaceNr like(xmlCint) Parsing stack depth + d spaceMax like(xmlCint) Max stack depth + d spaceTab * int * + * + d depth like(xmlCint) To detect loops + d entity like(xmlParserInputPtr) To check boundaries + d charset like(xmlCint) In-memory content + d nodelen like(xmlCint) Speed up parsing + d nodemem like(xmlCint) Speed up parsing + d pedantic like(xmlCint) Enb. pedantic warng + d #private * void * + * + d loadsubset like(xmlCint) Load ext. subset ? + d linenumbers like(xmlCint) Set line numbers ? + d catalogs * void * + d recovery like(xmlCint) Run in recovery mode + d progressive like(xmlCint) Progressive parsing? + d dict like(xmlDictPtr) Parser dictionary + d atts * const xmlChar * + d maxatts like(xmlCint) Above array size + d docdict like(xmlCint) Use dictionary ? + * + * pre-interned strings + * + d str_xml * const xmlChar * + d str_xmlns * const xmlChar * + d str_xml_ms * const xmlChar * + * + * Everything below is used only by the new SAX mode + * + d sax2 like(xmlCint) New SAX mode ? + d nsNr like(xmlCint) # inherited nmspaces + d nsMax like(xmlCint) Array size + d nsTab * const xmlChar * + d attallocs * int * + d pushTab * void * + d attsDefault like(xmlHashTablePtr) Defaulted attrs + d attsSpecial like(xmlHashTablePtr) non-CDATA attrs + d nsWellFormed like(xmlCint) Doc namespace OK ? + d options like(xmlCint) Extra options + * + * Those fields are needed only for treaming parsing so far + * + d dictNames like(xmlCint) Dict names in tree ? + d freeElemsNr like(xmlCint) # free element nodes + d freeElems like(xmlNodePtr) Free elem nodes list + d freeAttrsNr like(xmlCint) # free attr. nodes + d freeAttrs like(xmlAttrPtr) Free attr noes list + * + * the complete error informations for the last error. + * + d lastError likeds(xmlError) + d parseMode like(xmlParserMode) The parser mode + d nbentities like(xmlCulong) # entity references + d sizeentities like(xmlCulong) Parsed entities size + * + * for use by HTML non-recursive parser + * + d nodeInfo like(xmlParserNodeInfoPtr) Current NodeInfo + d nodeInfoNr like(xmlCint) Parsing stack depth + d nodeInfoMax like(xmlCint) Max stack depth + d nodeInfoTab * xmlParserNodeInfo * + * + d input_id like(xmlCint) Label inputs ? + d sizeentcopy like(xmlCulong) Entity copy volume + + * xmlSAXLocator: + * + * A SAX Locator. + + d xmlSAXLocator ds based(xmlSAXLocatorPtr) + d align qualified + d getPublicId * procptr + d getSystemId * procptr + d getLineNumber * procptr + d getColumnNumber... + d * procptr + + * xmlSAXHandler: + * + * A SAX handler is bunch of callbacks called by the parser when + * processing of the input generate data or structure informations. + + * resolveEntitySAXFunc: + * @ctx: the user data (XML parser context) + * @publicId: The public ID of the entity + * @systemId: The system ID of the entity + * + * Callback: + * The entity loader, to control the loading of external entities, + * the application can either: + * - override this resolveEntity() callback in the SAX block + * - or better use the xmlSetExternalEntityLoader() function to + * set up it's own entity resolution routine + * + * Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour. + + d resolveEntitySAXFunc... + d s * based(######typedef######) + d procptr + + * internalSubsetSAXFunc: + * @ctx: the user data (XML parser context) + * @name: the root element name + * @ExternalID: the external ID + * @SystemID: the SYSTEM ID (e.g. filename or URL) + * + * Callback on internal subset declaration. + + d internalSubsetSAXFunc... + d s * based(######typedef######) + d procptr + + * externalSubsetSAXFunc: + * @ctx: the user data (XML parser context) + * @name: the root element name + * @ExternalID: the external ID + * @SystemID: the SYSTEM ID (e.g. filename or URL) + * + * Callback on external subset declaration. + + d externalSubsetSAXFunc... + d s * based(######typedef######) + d procptr + + * getEntitySAXFunc: + * @ctx: the user data (XML parser context) + * @name: The entity name + * + * Get an entity by name. + * + * Returns the xmlEntityPtr if found. + + d getEntitySAXFunc... + d s * based(######typedef######) + d procptr + + * getParameterEntitySAXFunc: + * @ctx: the user data (XML parser context) + * @name: The entity name + * + * Get a parameter entity by name. + * + * Returns the xmlEntityPtr if found. + + d getParameterEntitySAXFunc... + d s * based(######typedef######) + d procptr + + * entityDeclSAXFunc: + * @ctx: the user data (XML parser context) + * @name: the entity name + * @type: the entity type + * @publicId: The public ID of the entity + * @systemId: The system ID of the entity + * @content: the entity value (without processing). + * + * An entity definition has been parsed. + + d entityDeclSAXFunc... + d s * based(######typedef######) + d procptr + + * notationDeclSAXFunc: + * @ctx: the user data (XML parser context) + * @name: The name of the notation + * @publicId: The public ID of the entity + * @systemId: The system ID of the entity + * + * What to do when a notation declaration has been parsed. + + d notationDeclSAXFunc... + d s * based(######typedef######) + d procptr + + * attributeDeclSAXFunc: + * @ctx: the user data (XML parser context) + * @elem: the name of the element + * @fullname: the attribute name + * @type: the attribute type + * @def: the type of default value + * @defaultValue: the attribute default value + * @tree: the tree of enumerated value set + * + * An attribute definition has been parsed. + + d attributeDeclSAXFunc... + d s * based(######typedef######) + d procptr + + * elementDeclSAXFunc: + * @ctx: the user data (XML parser context) + * @name: the element name + * @type: the element type + * @content: the element value tree + * + * An element definition has been parsed. + + d elementDeclSAXFunc... + d s * based(######typedef######) + d procptr + + * unparsedEntityDeclSAXFunc: + * @ctx: the user data (XML parser context) + * @name: The name of the entity + * @publicId: The public ID of the entity + * @systemId: The system ID of the entity + * @notationName: the name of the notation + * + * What to do when an unparsed entity declaration is parsed. + + d unparsedEntityDeclSAXFunc... + d s * based(######typedef######) + d procptr + + * setDocumentLocatorSAXFunc: + * @ctx: the user data (XML parser context) + * @loc: A SAX Locator + * + * Receive the document locator at startup, actually xmlDefaultSAXLocator. + * Everything is available on the context, so this is useless in our case. + + d setDocumentLocatorSAXFunc... + d s * based(######typedef######) + d procptr + + * startDocumentSAXFunc: + * @ctx: the user data (XML parser context) + * + * Called when the document start being processed. + + d startDocumentSAXFunc... + d s * based(######typedef######) + d procptr + + * endDocumentSAXFunc: + * @ctx: the user data (XML parser context) + * + * Called when the document end has been detected. + + d endDocumentSAXFunc... + d s * based(######typedef######) + d procptr + + * startElementSAXFunc: + * @ctx: the user data (XML parser context) + * @name: The element name, including namespace prefix + * @atts: An array of name/value attributes pairs, NULL terminated + * + * Called when an opening tag has been processed. + + d startElementSAXFunc... + d s * based(######typedef######) + d procptr + + * endElementSAXFunc: + * @ctx: the user data (XML parser context) + * @name: The element name + * + * Called when the end of an element has been detected. + + d endElementSAXFunc... + d s * based(######typedef######) + d procptr + + * attributeSAXFunc: + * @ctx: the user data (XML parser context) + * @name: The attribute name, including namespace prefix + * @value: The attribute value + * + * Handle an attribute that has been read by the parser. + * The default handling is to convert the attribute into an + * DOM subtree and past it in a new xmlAttr element added to + * the element. + + d attributeSAXFunc... + d s * based(######typedef######) + d procptr + + * referenceSAXFunc: + * @ctx: the user data (XML parser context) + * @name: The entity name + * + * Called when an entity reference is detected. + + d referenceSAXFunc... + d s * based(######typedef######) + d procptr + + * charactersSAXFunc: + * @ctx: the user data (XML parser context) + * @ch: a xmlChar string + * @len: the number of xmlChar + * + * Receiving some chars from the parser. + + d charactersSAXFunc... + d s * based(######typedef######) + d procptr + + * ignorableWhitespaceSAXFunc: + * @ctx: the user data (XML parser context) + * @ch: a xmlChar string + * @len: the number of xmlChar + * + * Receiving some ignorable whitespaces from the parser. + * UNUSED: by default the DOM building will use characters. + + d ignorableWhitespaceSAXFunc... + d s * based(######typedef######) + d procptr + + * processingInstructionSAXFunc: + * @ctx: the user data (XML parser context) + * @target: the target name + * @data: the PI data's + * + * A processing instruction has been parsed. + + d processingInstructionSAXFunc... + d s * based(######typedef######) + d procptr + + * commentSAXFunc: + * @ctx: the user data (XML parser context) + * @value: the comment content + * + * A comment has been parsed. + + d commentSAXFunc... + d s * based(######typedef######) + d procptr + + * cdataBlockSAXFunc: + * @ctx: the user data (XML parser context) + * @value: The pcdata content + * @len: the block length + * + * Called when a pcdata block has been parsed. + + d cdataBlockSAXFunc... + d s * based(######typedef######) + d procptr + + * warningSAXFunc: + * @ctx: an XML parser context + * @msg: the message to display/transmit + * @...: extra parameters for the message display + * + * Display and format a warning messages, callback. + + d warningSAXFunc... + d s * based(######typedef######) + d procptr + + * errorSAXFunc: + * @ctx: an XML parser context + * @msg: the message to display/transmit + * @...: extra parameters for the message display + * + * Display and format an error messages, callback. + + d errorSAXFunc... + d s * based(######typedef######) + d procptr + + * fatalErrorSAXFunc: + * @ctx: an XML parser context + * @msg: the message to display/transmit + * @...: extra parameters for the message display + * + * Display and format fatal error messages, callback. + * Note: so far fatalError() SAX callbacks are not used, error() + * get all the callbacks for errors. + + d fatalErrorSAXFunc... + d s * based(######typedef######) + d procptr + + * isStandaloneSAXFunc: + * @ctx: the user data (XML parser context) + * + * Is this document tagged standalone? + * + * Returns 1 if true + + d isStandaloneSAXFunc... + d s * based(######typedef######) + d procptr + + * hasInternalSubsetSAXFunc: + * @ctx: the user data (XML parser context) + * + * Does this document has an internal subset. + * + * Returns 1 if true + + d hasInternalSubsetSAXFunc... + d s * based(######typedef######) + d procptr + + * hasExternalSubsetSAXFunc: + * @ctx: the user data (XML parser context) + * + * Does this document has an external subset? + * + * Returns 1 if true + + d hasExternalSubsetSAXFunc... + d s * based(######typedef######) + d procptr + + ************************************************************************ + * * + * The SAX version 2 API extensions * + * * + ************************************************************************ + + * XML_SAX2_MAGIC: + * + * Special constant found in SAX2 blocks initialized fields + + d XML_SAX2_MAGIC c X'DEEDBEAF' + + * startElementNsSAX2Func: + * @ctx: the user data (XML parser context) + * @localname: the local name of the element + * @prefix: the element namespace prefix if available + * @URI: the element namespace name if available + * @nb_namespaces: number of namespace definitions on that node + * @namespaces: pointer to the array of prefix/URI pairs namespace + * definitions + * @nb_attributes: the number of attributes on that node + * @nb_defaulted: the number of defaulted attributes. The defaulted + * ones are at the end of the array + * @attributes: pointer to the array of + * (localname/prefix/URI/value/end) attribute values. + * + * SAX2 callback when an element start has been detected by the parser. + * It provides the namespace informations for the element, as well as + * the new namespace declarations on the element. + + d startElementNsSAX2Func... + d s * based(######typedef######) + d procptr + + * endElementNsSAX2Func: + * @ctx: the user data (XML parser context) + * @localname: the local name of the element + * @prefix: the element namespace prefix if available + * @URI: the element namespace name if available + * + * SAX2 callback when an element end has been detected by the parser. + * It provides the namespace informations for the element. + + d endElementNsSAX2Func... + d s * based(######typedef######) + d procptr + + d xmlSAXHandler ds based(xmlSAXHandlerPtr) + d align qualified + d internalSubset... + d like(internalSubsetSAXFunc) + d isStandalone like(isStandaloneSAXFunc) + d hasInternalSubset... + d like(hasInternalSubsetSAXFunc) + d hasExternalSubset... + d like(hasExternalSubsetSAXFunc) + d resolveEntity like(resolveEntitySAXFunc) + d getEntity like(getEntitySAXFunc) + d entityDecl like(entityDeclSAXFunc) + d notationDecl like(notationDeclSAXFunc) + d attributeDecl like(attributeDeclSAXFunc) + d elementDecl like(elementDeclSAXFunc) + d unparsedEntityDecl... + d like(unparsedEntityDeclSAXFunc) + d setDocumentLocator... + d like(setDocumentLocatorSAXFunc) + d startDocument like(startDocumentSAXFunc) + d endDocument like(endDocumentSAXFunc) + d startElement like(startElementSAXFunc) + d endElement like(endElementSAXFunc) + d reference like(referenceSAXFunc) + d characters like(charactersSAXFunc) + d ignorableWhitespace... + d like(ignorableWhitespaceSAXFunc) + d processingInstruction... + d like(processingInstructionSAXFunc) + d comment like(commentSAXFunc) + d warning like(warningSAXFunc) + d error like(errorSAXFunc) + d fatalError like(fatalErrorSAXFunc) + d getParameterEntity... + d like(getParameterEntitySAXFunc) + d cdataBlock like(cdataBlockSAXFunc) + d externalSubset... + d like(externalSubsetSAXFunc) + d initialized like(xmlCuint) + * + * The following fields are extensions available only on version 2 + * + d #private * void * + d startElementNs... + d like(startElementNsSAX2Func) + d endELementNs like(endElementNsSAX2Func) + d serror like(xmlStructuredErrorFunc) + + * SAX Version 1 + + d xmlSAXHandlerV1Ptr... + d s * based(######typedef######) + + d xmlSAXHandlerV1... + d ds based(xmlSAXHandlerV1Ptr) + d align qualified + d internalSubset... + d like(internalSubsetSAXFunc) + d isStandalone like(isStandaloneSAXFunc) + d hasInternalSubset... + d like(hasInternalSubsetSAXFunc) + d hasExternalSubset... + d like(hasExternalSubsetSAXFunc) + d resolveEntity like(resolveEntitySAXFunc) + d getEntity like(getEntitySAXFunc) + d entityDecl like(entityDeclSAXFunc) + d notationDecl like(notationDeclSAXFunc) + d attributeDecl like(attributeDeclSAXFunc) + d elementDecl like(elementDeclSAXFunc) + d unparsedEntityDecl... + d like(unparsedEntityDeclSAXFunc) + d setDocumentLocator... + d like(setDocumentLocatorSAXFunc) + d startDocument like(startDocumentSAXFunc) + d endDocument like(endDocumentSAXFunc) + d startElement like(startElementSAXFunc) + d endElement like(endElementSAXFunc) + d reference like(referenceSAXFunc) + d characters like(charactersSAXFunc) + d ignorableWhitespace... + d like(ignorableWhitespaceSAXFunc) + d processingInstruction... + d like(processingInstructionSAXFunc) + d comment like(commentSAXFunc) + d warning like(warningSAXFunc) + d error like(errorSAXFunc) + d fatalError like(fatalErrorSAXFunc) + d getParameterEntity... + d like(getParameterEntitySAXFunc) + d cdataBlock like(cdataBlockSAXFunc) + d externalSubset... + d like(externalSubsetSAXFunc) + d initialized like(xmlCuint) + + * xmlExternalEntityLoader: + * @URL: The System ID of the resource requested + * @ID: The Public ID of the resource requested + * @context: the XML parser context + * + * External entity loaders types. + * + * Returns the entity input parser. + + d xmlExternalEntityLoader... + d s * based(######typedef######) + d procptr + + /include "libxmlrpg/encoding" + /include "libxmlrpg/xmlIO" + /include "libxmlrpg/globals" + + * Init/Cleanup + + d xmlInitParser pr extproc('xmlInitParser') + + d xmlCleanupParser... + d pr extproc('xmlCleanupParser') + + * Input functions + + d xmlParserInputRead... + d pr extproc('xmlParserInputRead') + d like(xmlCint) + d in value like(xmlParserInputPtr) + d len value like(xmlCint) + + d xmlParserInputGrow... + d pr extproc('xmlParserInputGrow') + d like(xmlCint) + d in value like(xmlParserInputPtr) + d len value like(xmlCint) + + * Basic parsing Interfaces + + /if defined(LIBXML_SAX1_ENABLED) + d xmlParseDoc pr extproc('xmlParseDoc') + d like(xmlDocPtr) + d cur * value options(*string) const xmlChar * + + d xmlParseFile pr extproc('xmlParseFile') + d like(xmlDocPtr) + d filename * value options(*string) const char * + + d xmlParseMemory pr extproc('xmlParseMemory') + d like(xmlDocPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + /endif LIBXML_SAX1_ENABLED + + d xmlSubstituteEntitiesDefault... + d pr extproc( + d 'xmlSubstituteEntitiesDefault') + d like(xmlCint) + d val value like(xmlCint) + + d xmlKeepBlanksDefault... + d pr extproc('xmlKeepBlanksDefault') + d like(xmlCint) + d val value like(xmlCint) + + d xmlStopParser pr extproc('xmlStopParser') + d ctxt value like(xmlParserCtxtPtr) + + d xmlPedanticParserDefault... + d pr extproc('xmlPedanticParserDefault') + d like(xmlCint) + d val value like(xmlCint) + + d xmlLineNumbersDefault... + d pr extproc('xmlLineNumbersDefault') + d like(xmlCint) + d val value like(xmlCint) + + /if defined(LIBXML_SAX1_ENABLED) + * Recovery mode + + d xmlRecoverDoc pr extproc('xmlRecoverDoc') + d like(xmlDocPtr) + d cur * value options(*string) const xmlChar * + + d xmlRecoverMemory... + d pr extproc('xmlRecoverMemory') + d like(xmlDocPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + + d xmlRecoverFile pr extproc('xmlRecoverFile') + d like(xmlDocPtr) + d filename * value options(*string) const char * + /endif LIBXML_SAX1_ENABLED + + * Less common routines and SAX interfaces + + d xmlParseDocument... + d pr extproc('xmlParseDocument') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseExtParsedEnt... + d pr extproc('xmlParseExtParsedEnt') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + + /if defined(LIBXML_SAX1_ENABLED) + d xmlSAXUserParseFile... + d pr extproc('xmlSAXUserParseFile') + d like(xmlCint) + d sax value like(xmlSAXHandlerPtr) + d user_data * value void * + d filename * value options(*string) const char * + + d xmlSAXUserParseMemory... + d pr extproc('xmlSAXUserParseMemory') + d like(xmlCint) + d sax value like(xmlSAXHandlerPtr) + d user_data * value void * + d buffer * value options(*string) const char * + d size value like(xmlCint) + + d xmlSAXParseDoc pr extproc('xmlSAXParseDoc') + d like(xmlDocPtr) + d sax value like(xmlSAXHandlerPtr) + d cur * value options(*string) const xmlChar * + d recovery value like(xmlCint) + + d xmlSAXParseMemory... + d pr extproc('xmlSAXParseMemory') + d like(xmlDocPtr) + d sax value like(xmlSAXHandlerPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + d recovery value like(xmlCint) + + d xmlSAXParseMemoryWithData... + d pr extproc('xmlSAXParseMemoryWithData') + d like(xmlDocPtr) + d sax value like(xmlSAXHandlerPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + d recovery value like(xmlCint) + d data * value void * + + d xmlSAXParseFile... + d pr extproc('xmlSAXParseFile') + d like(xmlDocPtr) + d sax value like(xmlSAXHandlerPtr) + d filename * value options(*string) const char * + d recovery value like(xmlCint) + + d xmlSAXParseFileWithData... + d pr extproc('xmlSAXParseFileWithData') + d like(xmlDocPtr) + d sax value like(xmlSAXHandlerPtr) + d filename * value options(*string) const char * + d recovery value like(xmlCint) + d data * value void * + + d xmlSAXParseEntity... + d pr extproc('xmlSAXParseEntity') + d like(xmlDocPtr) + d sax value like(xmlSAXHandlerPtr) + d filename * value options(*string) const char * + + d xmlParseEntity... + d pr extproc('xmlParseEntity') + d like(xmlDocPtr) + d filename * value options(*string) const char * + /endif LIBXML_SAX1_ENABLED + + /if defined(LIBXML_VALID_ENABLED) + d xmlSAXParseDTD pr extproc('xmlSAXParseDTD') + d like(xmlDtdPtr) + d sax value like(xmlSAXHandlerPtr) + d ExternalID * value options(*string) const xmlChar * + d SystemID * value options(*string) const xmlChar * + + d xmlParseDTD pr extproc('xmlParseDTD') + d like(xmlDtdPtr) + d ExternalID * value options(*string) const xmlChar * + d SystemID * value options(*string) const xmlChar * + + d xmlIOParseDTD pr extproc('xmlIOParseDTD') + d like(xmlDtdPtr) + d sax value like(xmlSAXHandlerPtr) + d input value like(xmlParserInputBufferPtr) + d enc value like(xmlCharEncoding) + /endif LIBXML_VALID_ENABLED + + /if defined(LIBXML_SAX1_ENABLED) + d xmlParseBalancedChunkMemory... + d pr extproc( + d 'xmlParseBalancedChunkMemory') + d like(xmlCint) + d doc value like(xmlDocPtr) + d sax value like(xmlSAXHandlerPtr) + d user_data * value void * + d depth value like(xmlCint) + d user_data * value void * + d string * value options(*string) const xmlChar * + d lst * value xmlNodePtr * + /endif LIBXML_SAX1_ENABLED + + d xmlParseInNodeContext... + d pr extproc('xmlParseInNodeContext') + d like(xmlParserErrors) + d node value like(xmlNodePtr) + d data * value options(*string) const char * + d datalen value like(xmlCint) + d options value like(xmlCint) + d lst * value xmlNodePtr * + + /if defined(LIBXML_SAX1_ENABLED) + d xmlParseBalancedChunkMemoryRecover... + d pr extproc( + d 'xmlParseBalancedChunkMemoryRecover') + d like(xmlCint) + d doc value like(xmlDocPtr) + d sax value like(xmlSAXHandlerPtr) + d user_data * value void * + d depth value like(xmlCint) + d string * value options(*string) const xmlChar * + d lst * value xmlNodePtr * + d recover value like(xmlCint) + + d xmlParseExternalEntity... + d pr extproc('xmlParseExternalEntity') + d like(xmlCint) + d doc value like(xmlDocPtr) + d sax value like(xmlSAXHandlerPtr) + d user_data * value void * + d depth value like(xmlCint) + d URL * value options(*string) const xmlChar * + d ID * value options(*string) const xmlChar * + d lst * value xmlNodePtr * + /endif LIBXML_SAX1_ENABLED + + d xmlParseCtxtExternalEntity... + d pr extproc('xmlParseCtxtExternalEntity') + d like(xmlCint) + d sax value like(xmlSAXHandlerPtr) + d URL * value options(*string) const xmlChar * + d ID * value options(*string) const xmlChar * + d lst * value xmlNodePtr * + + * Parser contexts handling. + + d xmlNewParserCtxt... + d pr extproc('xmlNewParserCtxt') + d like(xmlParserCtxtPtr) + + d xmlInitParserCtxt... + d pr extproc('xmlInitParserCtxt') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + + d xmlClearParserCtxt... + d pr extproc('xmlClearParserCtxt') + d ctxt value like(xmlParserCtxtPtr) + + d xmlFreeParserCtxt... + d pr extproc('xmlFreeParserCtxt') + d ctxt value like(xmlParserCtxtPtr) + + /if defined(LIBXML_SAX1_ENABLED) + d xmlSetupParserForBuffer... + d pr extproc('xmlSetupParserForBuffer') + d ctxt value like(xmlParserCtxtPtr) + d buffer * value options(*string) const xmlChar * + d filename * value options(*string) const char * + /endif LIBXML_SAX1_ENABLED + + d xmlCreateDocParserCtxt... + d pr extproc('xmlCreateDocParserCtxt') + d like(xmlParserCtxtPtr) + d cur * value options(*string) const xmlChar * + + /if defined(LIBXML_LEGACY_ENABLED) + * Reading/setting optional parsing features. + + d xmlGetFeaturesList... + d pr extproc('xmlGetFeaturesList') + d like(xmlCint) + d len like(xmlCint) + d result * const char *(*) + + d xmlGetFeature pr extproc('xmlGetFeature') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d name * value options(*string) const char * + d result * value void * + + d xmlSetFeature pr extproc('xmlSetFeature') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d name * value options(*string) const char * + d result * value void * + /endif LIBXML_LEGACY_ENABLD + + /if defined(LIBXML_PUSH_ENABLED) + * Interfaces for the Push mode. + + d xmlCreatePushParserCtxt... + d pr extproc('xmlCreatePushParserCtxt') + d like(xmlParserCtxtPtr) + d sax value like(xmlSAXHandlerPtr) + d user_data * value void * + d chunk * value options(*string) const char * + d size value like(xmlCint) + d filename * value options(*string) const char * + + d xmlParseChunk pr extproc('xmlParseChunk') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d chunk * value options(*string) const char * + d size value like(xmlCint) + d terminate value like(xmlCint) + /endif LIBXML_PUSH_ENABLED + + * Special I/O mode. + + d xmlCreateIOParserCtxt... + d pr extproc('xmlCreateIOParserCtxt') + d like(xmlParserCtxtPtr) + d sax value like(xmlSAXHandlerPtr) + d user_data * value void * + d ioread value like(xmlInputReadCallback) + d ioclose value like(xmlInputCloseCallback) + d ioctx * value void * + d enc value like(xmlCharEncoding) + + d xmlNewIOInputStream... + d pr extproc('xmlNewIOInputStream') + d like(xmlParserInputPtr) + d ctxt value like(xmlParserCtxtPtr) + d input value like(xmlParserInputBufferPtr) + d enc value like(xmlCharEncoding) + + * Node infos. + + d xmlParserFindNodeInfo... + d pr * extproc('xmlParserFindNodeInfo') xmlParserNodeInfo * + d ctxt value like(xmlParserCtxtPtr) + d node value like(xmlNodePtr) const + + d xmlInitNodeInfoSeq... + d pr extproc('xmlInitNodeInfoSeq') + d seq value like(xmlParserNodeInfoSeqPtr) + + d xmlClearNodeInfoSeq... + d pr extproc('xmlClearNodeInfoSeq') + d seq value like(xmlParserNodeInfoSeqPtr) + + d xmlParserFindNodeInfoIndex... + d pr extproc('xmlParserFindNodeInfoIndex') + d like(xmlCulong) + d seq value like(xmlParserNodeInfoSeqPtr) + d node value like(xmlNodePtr) const + + d xmlParserAddNodeInfo... + d pr extproc('xmlParserAddNodeInfo') + d ctxt value like(xmlParserCtxtPtr) + d info value like(xmlParserNodeInfoPtr) const + + * External entities handling actually implemented in xmlIO. + + d xmlSetExternalEntityLoader... + d pr extproc('xmlSetExternalEntityLoader') + d f value like(xmlExternalEntityLoader) + + d xmlGetExternalEntityLoader... + d pr extproc('xmlGetExternalEntityLoader') + d like(xmlExternalEntityLoader) + + d xmlLoadExternalEntity... + d pr extproc('xmlLoadExternalEntity') + d like(xmlParserInputPtr) + d URL * value options(*string) const char * + d ID * value options(*string) const char * + d ctxt value like(xmlParserCtxtPtr) + + * Index lookup, actually implemented in the encoding module + + d xmlByteConsumed... + d pr extproc('xmlByteConsumed') + d like(xmlClong) + d ctxt value like(xmlParserCtxtPtr) + + * New set of simpler/more flexible APIs + + * xmlParserOption: + * + * This is the set of XML parser options that can be passed down + * to the xmlReadDoc() and similar calls. + + d xmlParserOption... + d s based(######typedef######) + d like(xmlCenum) + d XML_PARSE_RECOVER... Recover on errors + d c X'00000001' + d XML_PARSE_NOENT... Substitute entities + d c X'00000002' + d XML_PARSE_DTDLOAD... Load external subset + d c X'00000004' + d XML_PARSE_DTDATTR... Default DTD attrs + d c X'00000008' + d XML_PARSE_DTDVALID... Validate with DTD + d c X'00000010' + d XML_PARSE_NOERROR... Suppress err reports + d c X'00000020' + d XML_PARSE_NOWARNING... Suppr warn reports + d c X'00000040' + d XML_PARSE_PEDANTIC... Pedantic err report + d c X'00000080' + d XML_PARSE_NOBLANKS... Remove blank nodes + d c X'00000100' + d XML_PARSE_SAX1... Use SAX1 internally + d c X'00000200' + d XML_PARSE_XINCLUDE... Impl XInclude subst + d c X'00000400' + d XML_PARSE_NONET... Forbid netwrk access + d c X'00000800' + d XML_PARSE_NODICT... No contxt dict reuse + d c X'00001000' + d XML_PARSE_NSCLEAN... Rmv redndnt ns decls + d c X'00002000' + d XML_PARSE_NOCDATA... CDATA as text nodes + d c X'00004000' + d XML_PARSE_NOXINCNODE... No XINCL START/END + d c X'00008000' + d XML_PARSE_COMPACT... Compact text nodes + d c X'00010000' + d XML_PARSE_OLD10... B4 upd5 compatible + d c X'00020000' + d XML_PARSE_NOBASEFIX... No XINC xml:base fix + d c X'00040000' + d XML_PARSE_HUGE... No parsing limit + d c X'00080000' + d XML_PARSE_OLDSAX... Use SAX2 b4 2.7.0 + d c X'00100000' + d XML_PARSE_IGNORE_ENC... No int doc code hint + d c X'00200000' + d XML_PARSE_BIG_LINES... Big line#-->PSVI fld + d c X'00400000' + + d xmlCtxtReset pr extproc('xmlCtxtReset') + d ctxt value like(xmlParserCtxtPtr) + + d xmlCtxtResetPush... + d pr extproc('xmlCtxtResetPush') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d chunk * value options(*string) const char * + d size value like(xmlCint) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + + d xmlCtxtUseOptions... + d pr extproc('xmlCtxtUseOptions') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d options value like(xmlCint) + + d xmlReadDoc pr extproc('xmlReadDoc') + d like(xmlDocPtr) + d cur * value options(*string) const xmlChar * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReadFile pr extproc('xmlReadFile') + d like(xmlDocPtr) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReadMemory pr extproc('xmlReadMemory') + d like(xmlDocPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReadFd pr extproc('xmlReadFd') + d like(xmlDocPtr) + d fd value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReadIO pr extproc('xmlReadIO') + d like(xmlDocPtr) + d ioread value like(xmlInputReadCallback) + d ioclose value like(xmlInputCloseCallback) + d ioctx * value void * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlCtxtReadDoc pr extproc('xmlCtxtReadDoc') + d like(xmlDocPtr) + d ctxt value like(xmlParserCtxtPtr) + d cur * value options(*string) const xmlChar * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlCtxtReadFile... + d pr extproc('xmlCtxtReadFile') + d like(xmlDocPtr) + d ctxt value like(xmlParserCtxtPtr) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlCtxtReadMemory... + d pr extproc('xmlCtxtReadMemory') + d like(xmlDocPtr) + d ctxt value like(xmlParserCtxtPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlCtxtReadFd pr extproc('xmlCtxtReadFd') + d like(xmlDocPtr) + d ctxt value like(xmlParserCtxtPtr) + d fd value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlCtxtReadIO pr extproc('xmlCtxtReadIO') + d like(xmlDocPtr) + d ctxt value like(xmlParserCtxtPtr) + d ioread value like(xmlInputReadCallback) + d ioclose value like(xmlInputCloseCallback) + d ioctx * value void * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + * Library wide options + + * xmlFeature: + * + * Used to examine the existance of features that can be enabled + * or disabled at compile-time. + * They used to be called XML_FEATURE_xxx but this clashed with Expat + + d xmlFeature s based(######typedef######) + d like(xmlCenum) + d XML_WITH_THREAD... + d c 1 + d XML_WITH_TREE c 2 + d XML_WITH_OUTPUT... + d c 3 + d XML_WITH_PUSH c 4 + d XML_WITH_READER... + d c 5 + d XML_WITH_PATTERN... + d c 6 + d XML_WITH_WRITER... + d c 7 + d XML_WITH_SAX1 c 8 + d XML_WITH_FTP c 9 + d XML_WITH_HTTP c 10 + d XML_WITH_VALID... + d c 11 + d XML_WITH_HTML c 12 + d XML_WITH_LEGACY... + d c 13 + d XML_WITH_C14N c 14 + d XML_WITH_CATALOG... + d c 15 + d XML_WITH_XPATH... + d c 16 + d XML_WITH_XPTR c 17 + d XML_WITH_XINCLUDE... + d c 18 + d XML_WITH_ICONV... + d c 19 + d XML_WITH_ISO8859X... + d c 20 + d XML_WITH_UNICODE... + d c 21 + d XML_WITH_REGEXP... + d c 22 + d XML_WITH_AUTOMATA... + d c 23 + d XML_WITH_EXPR c 24 + d XML_WITH_SCHEMAS... + d c 25 + d XML_WITH_SCHEMATRON... + d c 26 + d XML_WITH_MODULES... + d c 27 + d XML_WITH_DEBUG... + d c 28 + d XML_WITH_DEBUG_MEM... + d c 29 + d XML_WITH_DEBUG_RUN... + d c 30 + d XML_WITH_ZLIB c 31 + d XML_WITH_ICU c 32 + d XML_WITH_LZMA c 33 + d XML_WITH_NONE c 99999 + + d xmlHasFeature pr extproc('xmlHasFeature') + d like(xmlCint) + d feature value like(xmlFeature) + + /endif XML_PARSER_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/parserInternals.rpgle b/libxml2-2.9.10/os400/libxmlrpg/parserInternals.rpgle new file mode 100644 index 0000000..6c8f388 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/parserInternals.rpgle @@ -0,0 +1,598 @@ + * Summary: internals routines and limits exported by the parser. + * Description: this module exports a number of internal parsing routines + * they are not really all intended for applications but + * can prove useful doing low level processing. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_PARSER_INTERNALS_H__) + /define XML_PARSER_INTERNALS_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/parser" + /include "libxmlrpg/HTMLparser" + /include "libxmlrpg/chvalid" + + * xmlParserMaxDepth: + * + * arbitrary depth limit for the XML documents that we allow to + * process. This is not a limitation of the parser but a safety + * boundary feature, use XML_PARSE_HUGE option to override it. + + d xmlParserMaxDepth... + d s import('xmlParserMaxDepth') + d like(xmlCuint) + + * XML_MAX_TEXT_LENGTH: + * + * Maximum size allowed for a single text node when building a tree. + * This is not a limitation of the parser but a safety boundary feature, + * use XML_PARSE_HUGE option to override it. + * Introduced in 2.9.0 + + d XML_MAX_TEXT_LENGTH... + d c 10000000 + + * XML_MAX_NAME_LENGTH: + * + * Maximum size allowed for a markup identitier + * This is not a limitation of the parser but a safety boundary feature, + * use XML_PARSE_HUGE option to override it. + * Note that with the use of parsing dictionaries overriding the limit + * may result in more runtime memory usage in face of "unfriendly' content + * Introduced in 2.9.0 + + d XML_MAX_NAME_LENGTH... + d c 50000 + + * XML_MAX_DICTIONARY_LIMIT: + * + * Maximum size allowed by the parser for a dictionary by default + * This is not a limitation of the parser but a safety boundary feature, + * use XML_PARSE_HUGE option to override it. + * Introduced in 2.9.0 + + d XML_MAX_DICTIONARY_LIMIT... + d c 10000000 + + * XML_MAX_LOOKUP_LIMIT: + * + * Maximum size allowed by the parser for ahead lookup + * This is an upper boundary enforced by the parser to avoid bad + * behaviour on "unfriendly' content + * Introduced in 2.9.0 + + d XML_MAX_LOOKUP_LIMIT... + d c 10000000 + + * XML_MAX_NAMELEN: + * + * Identifiers can be longer, but this will be more costly + * at runtime. + + d XML_MAX_NAMELEN... + d c 100 + + * INPUT_CHUNK: + * + * The parser tries to always have that amount of input ready. + * One of the point is providing context when reporting errors. + + d INPUT_CHUNK c 250 + + * Global variables used for predefined strings. + + d xmlStringText s 4 import('xmlStringText') \0 in 5th byte + + d xmlStringTextNoenc... + d s 9 import('xmlStringTextNoenc') \0 in 10th byte + + d xmlStringComment... + d s 7 import('xmlStringComment') \0 in 8th byte + + * Function to finish the work of the macros where needed. + + d xmlIsLetter pr extproc('xmlIsLetter') + d like(xmlCint) + d c value like(xmlCint) + + * Parser context. + + d xmlCreateFileParserCtxt... + d pr extproc('xmlCreateFileParserCtxt') + d like(xmlParserCtxtPtr) + d filename * value options(*string) const char * + + d xmlCreateURLParserCtxt... + d pr extproc('xmlCreateURLParserCtxt') + d like(xmlParserCtxtPtr) + d filename * value options(*string) const char * + d options value like(xmlCint) + + d xmlCreateMemoryParserCtxt... + d pr extproc('xmlCreateMemoryParserCtxt') + d like(xmlParserCtxtPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + + d xmlCreateEntityParserCtxt... + d pr extproc('xmlCreateEntityParserCtxt') + d like(xmlParserCtxtPtr) + d URL * value options(*string) const xmlChar * + d ID * value options(*string) const xmlChar * + d base * value options(*string) const xmlChar * + + d xmlSwitchEncoding... + d pr extproc('xmlSwitchEncoding') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d enc value like(xmlCharEncoding) + + d xmlSwitchToEncoding... + d pr extproc('xmlSwitchToEncoding') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d handler value like(xmlCharEncodingHandlerPtr) + + d xmlSwitchInputEncoding... + d pr extproc('xmlSwitchInputEncoding') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d input value like(xmlParserInputPtr) + d handler value like(xmlCharEncodingHandlerPtr) + + * Input Streams. + + d xmlNewStringInputStream... + d pr extproc('xmlNewStringInputStream') + d like(xmlParserInputPtr) + d ctxt value like(xmlParserCtxtPtr) + d buffer * value options(*string) const xmlChar * + + d xmlNewEntityInputStream... + d pr extproc('xmlNewEntityInputStream') + d like(xmlParserInputPtr) + d ctxt value like(xmlParserCtxtPtr) + d entity value like(xmlEntityPtr) + + d xmlPushInput pr extproc('xmlPushInput') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d input value like(xmlParserInputPtr) + + d xmlPopInput pr extproc('xmlPopInput') + d like(xmlChar) + d ctxt value like(xmlParserCtxtPtr) + + d xmlFreeInputStream... + d pr extproc('xmlFreeInputStream') + d input value like(xmlParserInputPtr) + + d xmlNewInputFromFile... + d pr extproc('xmlNewInputFromFile') + d like(xmlParserInputPtr) + d ctxt value like(xmlParserCtxtPtr) + d filename * value options(*string) const char * + + d xmlNewInputStream... + d pr extproc('xmlNewInputStream') + d like(xmlParserInputPtr) + d ctxt value like(xmlParserCtxtPtr) + + * Namespaces. + + d xmlSplitQName pr * extproc('xmlSplitQName') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + d name * value options(*string) const xmlChar * + d prefix * xmlChar *(*) + + * Generic production rules. + + d xmlParseName pr * extproc('xmlParseName') const xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseNmtoken... + d pr * extproc('xmlParseNmtoken') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseEntityValue... + d pr * extproc('xmlParseEntityValue') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + d orig * xmlChar *(*) + + d xmlParseAttValue... + d pr * extproc('xmlParseAttValue') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseSystemLiteral... + d pr * extproc('xmlParseSystemLiteral') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParsePubidLiteral... + d pr * extproc('xmlParsePubidLiteral') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseCharData... + d pr extproc('xmlParseCharData') + d ctxt value like(xmlParserCtxtPtr) + d cdata value like(xmlCint) + + d xmlParseExternalID... + d pr * extproc('xmlParseExternalID') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + d publicID * xmlChar *(*) + d strict value like(xmlCint) + + d xmlParseComment... + d pr extproc('xmlParseComment') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParsePITarget... + d pr * extproc('xmlParsePITarget') const xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParsePI pr extproc('xmlParsePI') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseNotationDecl... + d pr extproc('xmlParseNotationDecl') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseEntityDecl... + d pr extproc('xmlParseEntityDecl') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseDefaultDecl... + d pr extproc('xmlParseDefaultDecl') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d value * xmlChar *(*) + + d xmlParseNotationType... + d pr extproc('xmlParseNotationType') + d like(xmlEnumerationPtr) + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseEnumerationType... + d pr extproc('xmlParseEnumerationType') + d like(xmlEnumerationPtr) + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseEnumeratedType... + d pr extproc('xmlParseEnumeratedType') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d tree * value xmlEnumerationPtr * + + d xmlParseAttributeType... + d pr extproc('xmlParseAttributeType') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d tree * value xmlEnumerationPtr * + + d xmlParseAttributeListDecl... + d pr extproc('xmlParseAttributeListDecl') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseElementMixedContentDecl... + d pr extproc( + d 'xmlParseElementMixedContentDecl') + d like(xmlElementContentPtr) + d ctxt value like(xmlParserCtxtPtr) + d inputchk value like(xmlCint) + + d xmlParseElementChildrenContentDecl... + d pr extproc( + d 'xmlParseElementChildrenContentDecl') + d like(xmlElementContentPtr) + d ctxt value like(xmlParserCtxtPtr) + d inputchk value like(xmlCint) + + d xmlParseElementContentDecl... + d pr extproc('xmlParseElementContentDecl') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d name * value options(*string) const xmlChar * + d result * value xmlElementContentPtr + d * + + d xmlParseElementDecl... + d pr extproc('xmlParseElementDecl') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseMarkupDecl... + d pr extproc('xmlParseMarkupDecl') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseCharRef... + d pr extproc('xmlParseCharRef') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseEntityRef... + d pr extproc('xmlParseEntityRef') + d like(xmlEntityPtr) + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseReference... + d pr extproc('xmlParseReference') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParsePEReference... + d pr extproc('xmlParsePEReference') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseDocTypeDecl... + d pr extproc('xmlParseDocTypeDecl') + d ctxt value like(xmlParserCtxtPtr) + + /if defined(LIBXML_SAX1_ENABLED) + d xmlParseAttribute... + d pr * extproc('xmlParseAttribute') const xmlChar * + d ctxt value like(xmlParserCtxtPtr) + d value * xmlChar *(*) + + d xmlParseStartTag... + d pr * extproc('xmlParseStartTag') const xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseEndTag pr extproc('xmlParseEndTag') + d ctxt value like(xmlParserCtxtPtr) + /endif LIBXML_SAX1_ENABLED + + d xmlParseCDSect pr extproc('xmlParseCDSect') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseContent... + d pr extproc('xmlParseContent') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseElement... + d pr extproc('xmlParseElement') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseVersionNum... + d pr * extproc('xmlParseVersionNum') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseVersionInfo... + d pr * extproc('xmlParseVersionInfo') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseEncName... + d pr * extproc('xmlParseEncName') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseEncodingDecl... + d pr * extproc('xmlParseEncodingDecl') const xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseSDDecl pr extproc('xmlParseSDDecl') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseXMLDecl... + d pr extproc('xmlParseXMLDecl') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseTextDecl... + d pr extproc('xmlParseTextDecl') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseMisc pr extproc('xmlParseMisc') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseExternalSubset... + d pr extproc('xmlParseExternalSubset') + d ctxt value like(xmlParserCtxtPtr) + d ExternalID * value options(*string) const xmlChar * + d SystemID * value options(*string) const xmlChar * + + * XML_SUBSTITUTE_NONE: + * + * If no entities need to be substituted. + + d XML_SUBSTITUTE_NONE... + d c 0 + + * XML_SUBSTITUTE_REF: + * + * Whether general entities need to be substituted. + + d XML_SUBSTITUTE_REF... + d c 1 + + * XML_SUBSTITUTE_PEREF: + * + * Whether parameter entities need to be substituted. + + d XML_SUBSTITUTE_PEREF... + d c 2 + + * XML_SUBSTITUTE_BOTH: + * + * Both general and parameter entities need to be substituted. + + d XML_SUBSTITUTE_BOTH... + d c 3 + + d xmlStringDecodeEntities... + d pr * extproc('xmlStringDecodeEntities') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + d str * value options(*string) const xmlChar * + d what value like(xmlCint) + d end value like(xmlChar) + d end2 value like(xmlChar) + d end3 value like(xmlChar) + + d xmlStringLenDecodeEntities... + d pr * extproc('xmlStringLenDecodeEntities')xmlChar * + d ctxt value like(xmlParserCtxtPtr) + d str * value options(*string) const xmlChar * + d len value like(xmlCint) + d what value like(xmlCint) + d end value like(xmlChar) + d end2 value like(xmlChar) + d end3 value like(xmlChar) + + * Generated by MACROS on top of parser.c c.f. PUSH_AND_POP. + + d nodePush pr extproc('nodePush') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d value value like(xmlNodePtr) + + d nodePop pr extproc('nodePop') + d like(xmlNodePtr) + d ctxt value like(xmlParserCtxtPtr) + + d inputPush pr extproc('inputPush') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d value value like(xmlParserInputPtr) + + d inputPop pr extproc('inputPop') + d like(xmlParserInputPtr) + d ctxt value like(xmlParserCtxtPtr) + + d namePop pr * extproc('namePop') const xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d namePush pr extproc('namePush') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d value * value options(*string) const xmlChar * + + * other commodities shared between parser.c and parserInternals. + + d xmlSkipBlankChars... + d pr extproc('xmlSkipBlankChars') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + + d xmlStringCurrentChar... + d pr extproc('xmlStringCurrentChar') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d cur * value options(*string) const xmlChar * + d len * value int * + + d xmlParserHandlePEReference... + d pr extproc('xmlParserHandlePEReference') + d ctxt value like(xmlParserCtxtPtr) + + d xmlCheckLanguageID... + d pr extproc('xmlCheckLanguageID') + d like(xmlCint) + d lang * value options(*string) const xmlChar * + + * Really core function shared with HTML parser. + + d xmlCurrentChar pr extproc('xmlCurrentChar') + d like(xmlCint) + d ctxt value like(xmlParserCtxtPtr) + d len * value int * + + d xmlCopyCharMultiByte... + d pr extproc('xmlCopyCharMultiByte') + d like(xmlCint) + d out * value options(*string) xmlChar * + d val value like(xmlCint) + + d xmlCopyChar pr extproc('xmlCopyChar') + d like(xmlCint) + d len value like(xmlCint) + d out * value options(*string) xmlChar * + d val value like(xmlCint) + + d xmlNextChar pr extproc('xmlNextChar') + d ctxt value like(xmlParserCtxtPtr) + + d xmlParserInputShrink... + d pr extproc('xmlParserInputShrink') + d in value like(xmlParserInputPtr) + + /if defined(LIBXML_HTML_ENABLED) + + * Actually comes from the HTML parser but launched from the init stuff. + + d htmlInitAutoClose... + d pr extproc('htmlInitAutoClose') + + d htmlCreateFileParserCtxt... + d pr extproc('htmlCreateFileParserCtxt') + d like(htmlParserCtxtPtr) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + /endif + + * Specific function to keep track of entities references + * and used by the XSLT debugger. + + /if defined(LIBXML_LEGACY_ENABLED) + * xmlEntityReferenceFunc: + * @ent: the entity + * @firstNode: the fist node in the chunk + * @lastNode: the last nod in the chunk + * + * Callback function used when one needs to be able to track back the + * provenance of a chunk of nodes inherited from an entity replacement. + + d xmlEntityReferenceFunc... + d s * based(######typedef######) + d procptr + + d xmlSetEntityReferenceFunc... + d pr extproc('xmlSetEntityReferenceFunc') + d func value like(xmlEntityReferenceFunc) + + d xmlParseQuotedString... + d pr * extproc('xmlParseQuotedString') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParseNamespace... + d pr extproc('xmlParseNamespace') + d ctxt value like(xmlParserCtxtPtr) + + d xmlNamespaceParseNSDef... + d pr * extproc('xmlNamespaceParseNSDef') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlScanName pr * extproc('xmlScanName') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlNamespaceParseNCName... + d pr * extproc('xmlNamespaceParseNCName') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + + d xmlParserHandleReference... + d pr extproc('xmlParserHandleReference') + d ctxt value like(xmlParserCtxtPtr) + + d xmlNamespaceParseQName... + d pr * extproc('xmlNamespaceParseQName') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + d prefix * xmlChar *(*) + + * Entities + + d xmlDecodeEntities... + d pr * extproc('xmlDecodeEntities') xmlChar * + d ctxt value like(xmlParserCtxtPtr) + d len value like(xmlCint) + d what value like(xmlCint) + d end value like(xmlChar) + d end2 value like(xmlChar) + d end3 value like(xmlChar) + + d xmlHandleEntity... + d pr extproc('xmlHandleEntity') + d ctxt value like(xmlParserCtxtPtr) + d entity value like(xmlEntityPtr) + /endif LIBXML_LEGACY_ENABLD + + /endif diff --git a/libxml2-2.9.10/os400/libxmlrpg/pattern.rpgle b/libxml2-2.9.10/os400/libxmlrpg/pattern.rpgle new file mode 100644 index 0000000..ef02301 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/pattern.rpgle @@ -0,0 +1,130 @@ + * Summary: pattern expression handling + * Description: allows to compile and test pattern expressions for nodes + * either in a tree or based on a parser state. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_PATTERN_H__) + /define XML_PATTERN_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_PATTERN_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + /include "libxmlrpg/dict" + + * xmlPattern: + * + * A compiled (XPath based) pattern to select nodes + + d xmlPatternPtr... + d s * based(######typedef######) + + * xmlPatternFlags: + * + * This is the set of options affecting the behaviour of pattern + * matching with this module + + d xmlPatternFlags... + d s based(######typedef######) + d like(xmlCenum) + d XML_PATTERN_DEFAULT... Simple pattern match + d c X'0000' + d XML_PATTERN_XPATH... Std XPath pattern + d c X'0001' + d XML_PATTERN_XSSEL... Schm sel XPth subset + d c X'0002' + d XML_PATTERN_XSFIELD... Schm fld XPth subset + d c X'0004' + + d xmlFreePattern pr extproc('xmlFreePattern') + d comp value like(xmlPatternPtr) + + d xmlFreePatternList... + d pr extproc('xmlFreePatternList') + d comp value like(xmlPatternPtr) + + d xmlPatterncompile... + d pr extproc('xmlPatterncompile') + d like(xmlPatternPtr) + d pattern * value options(*string) const xmlChar * + d dict * value xmlDict * + d flags value like(xmlCint) + d namespaces * const xmlChar *(*) + + d xmlPatternMatch... + d pr extproc('xmlPatternMatch') + d like(xmlCint) + d comp value like(xmlPatternPtr) + d node value like(xmlNodePtr) + + * streaming interfaces + + d xmlStreamCtxtPtr... + d s * based(######typedef######) + + d xmlPatternStreamable... + d pr extproc('xmlPatternStreamable') + d like(xmlCint) + d comp value like(xmlPatternPtr) + + d xmlPatternMaxDepth... + d pr extproc('xmlPatternMaxDepth') + d like(xmlCint) + d comp value like(xmlPatternPtr) + + d xmlPatternMinDepth... + d pr extproc('xmlPatternMinDepth') + d like(xmlCint) + d comp value like(xmlPatternPtr) + + d xmlPatternFromRoot... + d pr extproc('xmlPatternFromRoot') + d like(xmlCint) + d comp value like(xmlPatternPtr) + + d xmlPatternGetStreamCtxt... + d pr extproc('xmlPatternGetStreamCtxt') + d like(xmlStreamCtxtPtr) + d comp value like(xmlPatternPtr) + + d xmlFreeStreamCtxt... + d pr extproc('xmlFreeStreamCtxt') + d stream value like(xmlStreamCtxtPtr) + + d xmlStreamPushNode... + d pr extproc('xmlStreamPushNode') + d like(xmlCint) + d stream value like(xmlStreamCtxtPtr) + d name * value options(*string) const xmlChar * + d ns * value options(*string) const xmlChar * + d nodeType value like(xmlCint) + + d xmlStreamPush pr extproc('xmlStreamPush') + d like(xmlCint) + d stream value like(xmlStreamCtxtPtr) + d name * value options(*string) const xmlChar * + d ns * value options(*string) const xmlChar * + + d xmlStreamPushAttr... + d pr extproc('xmlStreamPushAttr') + d like(xmlCint) + d stream value like(xmlStreamCtxtPtr) + d name * value options(*string) const xmlChar * + d ns * value options(*string) const xmlChar * + + d xmlStreamPop pr extproc('xmlStreamPop') + d like(xmlCint) + d stream value like(xmlStreamCtxtPtr) + + d xmlStreamWantsAnyNode... + d pr extproc('xmlStreamWantsAnyNode') + d like(xmlCint) + d stream value like(xmlStreamCtxtPtr) + + /endif LIBXML_PATTERN_ENBLD + /endif XML_PATTERN_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/relaxng.rpgle b/libxml2-2.9.10/os400/libxmlrpg/relaxng.rpgle new file mode 100644 index 0000000..15b8471 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/relaxng.rpgle @@ -0,0 +1,310 @@ + * Summary: implementation of the Relax-NG validation + * Description: implementation of the Relax-NG validation + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_RELAX_NG__) + /define XML_RELAX_NG__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_SCHEMAS_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/hash" + /include "libxmlrpg/xmlstring" + + d xmlRelaxNGPtr s * based(######typedef######) + + * xmlRelaxNGValidityErrorFunc: + * @ctx: the validation context + * @msg: the message + * @...: extra arguments + * + * Signature of an error callback from a Relax-NG validation + + d xmlRelaxNGValidityErrorFunc... + d s * based(######typedef######) + d procptr + + * xmlRelaxNGValidityWarningFunc: + * @ctx: the validation context + * @msg: the message + * @...: extra arguments + * + * Signature of a warning callback from a Relax-NG validation + + d xmlRelaxNGValidityWarningFunc... + d s * based(######typedef######) + d procptr + + * A schemas validation context + + d xmlRelaxNGParserCtxtPtr... + d s * based(######typedef######) + + d xmlRelaxNGValidCtxtPtr... + d s * based(######typedef######) + + * xmlRelaxNGValidErr: + * + * List of possible Relax NG validation errors + + d xmlRelaxNGValidErr... + d s based(######typedef######) + d like(xmlCenum) + d XML_RELAXNG_OK... + d c 0 + d XML_RELAXNG_ERR_MEMORY... + d c 1 + d XML_RELAXNG_ERR_TYPE... + d c 2 + d XML_RELAXNG_ERR_TYPEVAL... + d c 3 + d XML_RELAXNG_ERR_DUPID... + d c 4 + d XML_RELAXNG_ERR_TYPECMP... + d c 5 + d XML_RELAXNG_ERR_NOSTATE... + d c 6 + d XML_RELAXNG_ERR_NODEFINE... + d c 7 + d XML_RELAXNG_ERR_LISTEXTRA... + d c 8 + d XML_RELAXNG_ERR_LISTEMPTY... + d c 9 + d XML_RELAXNG_ERR_INTERNODATA... + d c 10 + d XML_RELAXNG_ERR_INTERSEQ... + d c 11 + d XML_RELAXNG_ERR_INTEREXTRA... + d c 12 + d XML_RELAXNG_ERR_ELEMNAME... + d c 13 + d XML_RELAXNG_ERR_ATTRNAME... + d c 14 + d XML_RELAXNG_ERR_ELEMNONS... + d c 15 + d XML_RELAXNG_ERR_ATTRNONS... + d c 16 + d XML_RELAXNG_ERR_ELEMWRONGNS... + d c 17 + d XML_RELAXNG_ERR_ATTRWRONGNS... + d c 18 + d XML_RELAXNG_ERR_ELEMEXTRANS... + d c 19 + d XML_RELAXNG_ERR_ATTREXTRANS... + d c 20 + d XML_RELAXNG_ERR_ELEMNOTEMPTY... + d c 21 + d XML_RELAXNG_ERR_NOELEM... + d c 22 + d XML_RELAXNG_ERR_NOTELEM... + d c 23 + d XML_RELAXNG_ERR_ATTRVALID... + d c 24 + d XML_RELAXNG_ERR_CONTENTVALID... + d c 25 + d XML_RELAXNG_ERR_EXTRACONTENT... + d c 26 + d XML_RELAXNG_ERR_INVALIDATTR... + d c 27 + d XML_RELAXNG_ERR_DATAELEM... + d c 28 + d XML_RELAXNG_ERR_VALELEM... + d c 29 + d XML_RELAXNG_ERR_LISTELEM... + d c 30 + d XML_RELAXNG_ERR_DATATYPE... + d c 31 + d XML_RELAXNG_ERR_VALUE... + d c 32 + d XML_RELAXNG_ERR_LIST... + d c 33 + d XML_RELAXNG_ERR_NOGRAMMAR... + d c 34 + d XML_RELAXNG_ERR_EXTRADATA... + d c 35 + d XML_RELAXNG_ERR_LACKDATA... + d c 36 + d XML_RELAXNG_ERR_INTERNAL... + d c 37 + d XML_RELAXNG_ERR_ELEMWRONG... + d c 38 + d XML_RELAXNG_ERR_TEXTWRONG... + d c 39 + + * xmlRelaxNGParserFlags: + * + * List of possible Relax NG Parser flags + + d xmlRelaxNGParserFlag... + d s based(######typedef######) + d like(xmlCenum) + d XML_RELAXNGP_NONE... + d c 0 + d XML_RELAXNGP_FREE_DOC... + d c 1 + d XML_RELAXNGP_CRNG... + d c 2 + + d xmlRelaxNGInitTypes... + d pr extproc('xmlRelaxNGInitTypes') + d like(xmlCint) + + d xmlRelaxNGCleanupTypes... + d pr extproc('xmlRelaxNGCleanupTypes') + + + * Interfaces for parsing. + + d xmlRelaxNGNewParserCtxt... + d pr extproc('xmlRelaxNGNewParserCtxt') + d like(xmlRelaxNGParserCtxtPtr) + d URL * value options(*string) const char * + + d xmlRelaxNGNewMemParserCtxt... + d pr extproc('xmlRelaxNGNewMemParserCtxt') + d like(xmlRelaxNGParserCtxtPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + + d xmlRelaxNGNewDocParserCtxt... + d pr extproc('xmlRelaxNGNewDocParserCtxt') + d like(xmlRelaxNGParserCtxtPtr) + d doc value like(xmlDocPtr) + + d xmlRelaxParserSetFlag... + d pr extproc('xmlRelaxParserSetFlag') + d like(xmlCint) + d ctxt value like(xmlRelaxNGParserCtxtPtr) + d flag value like(xmlCint) + + d xmlRelaxNGFreeParserCtxt... + d pr extproc('xmlRelaxNGFreeParserCtxt') + d ctxt value like(xmlRelaxNGParserCtxtPtr) + + d xmlRelaxNGSetParserErrors... + d pr extproc('xmlRelaxNGSetParserErrors') + d ctxt value like(xmlRelaxNGParserCtxtPtr) + d err value + d like(xmlRelaxNGValidityErrorFunc) + d warn value + d like(xmlRelaxNGValidityWarningFunc) + d ctx * value void * + + d xmlRelaxNGGetParserErrors... + d pr extproc('xmlRelaxNGGetParserErrors') + d like(xmlCint) + d ctxt value like(xmlRelaxNGParserCtxtPtr) + d err like(xmlRelaxNGValidityErrorFunc) + d warn like(xmlRelaxNGValidityWarningFunc) + d ctx * void *(*) + + d xmlRelaxNGSetParserStructuredErrors... + d pr extproc( + d 'xmlRelaxNGSetParserStructuredErrors' + d ) + d ctxt value like(xmlRelaxNGParserCtxtPtr) + d serror value like(xmlStructuredErrorFunc) + d ctx * value void * + + d xmlRelaxNGParse... + d pr extproc('xmlRelaxNGParse') + d like(xmlRelaxNGPtr) + d ctxt value like(xmlRelaxNGParserCtxtPtr) + + d xmlRelaxNGFree pr extproc('xmlRelaxNGFree') + d schema value like(xmlRelaxNGPtr) + + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlRelaxNGDump pr extproc('xmlRelaxNGDump') + d output * value FILE * + d schema value like(xmlRelaxNGPtr) + + d xmlRelaxNGDumpTree... + d pr extproc('xmlRelaxNGDumpTree') + d output * value FILE * + d schema value like(xmlRelaxNGPtr) + /endif LIBXML_OUTPUT_ENABLD + + * Interfaces for validating + + d xmlRelaxNGSetValidErrors... + d pr extproc('xmlRelaxNGSetValidErrors') + d ctxt value like(xmlRelaxNGValidCtxtPtr) + d err value + d like(xmlRelaxNGValidityErrorFunc) + d warn value + d like(xmlRelaxNGValidityWarningFunc) + d ctx * value void * + + d xmlRelaxNGGetValidErrors... + d pr extproc('xmlRelaxNGGetValidErrors') + d like(xmlCint) + d ctxt value like(xmlRelaxNGValidCtxtPtr) + d err like(xmlRelaxNGValidityErrorFunc) + d warn like(xmlRelaxNGValidityWarningFunc) + d ctx * value void * * + + d xmlRelaxNGSetValidStructuredErrors... + d pr extproc( + d 'xmlRelaxNGSetValidStructuredErrors') + d ctxt value like(xmlRelaxNGValidCtxtPtr) + d serror value like(xmlStructuredErrorFunc) + d ctx * value void * + + d xmlRelaxNGNewValidCtxt... + d pr extproc('xmlRelaxNGNewValidCtxt') + d like(xmlRelaxNGValidCtxtPtr) + d schema value like(xmlRelaxNGPtr) + + d xmlRelaxNGFreeValidCtxt... + d pr extproc('xmlRelaxNGFreeValidCtxt') + d ctxt value like(xmlRelaxNGValidCtxtPtr) + + d xmlRelaxNGValidateDoc... + d pr extproc('xmlRelaxNGValidateDoc') + d like(xmlCint) + d ctxt value like(xmlRelaxNGValidCtxtPtr) + d doc value like(xmlDocPtr) + + * Interfaces for progressive validation when possible + + d xmlRelaxNGValidatePushElement... + d pr extproc( + d 'xmlRelaxNGValidatePushElement') + d like(xmlCint) + d ctxt value like(xmlRelaxNGValidCtxtPtr) + d doc value like(xmlDocPtr) + d elem value like(xmlNodePtr) + + d xmlRelaxNGValidatePushCData... + d pr extproc( + d 'xmlRelaxNGValidatePushCData') + d like(xmlCint) + d ctxt value like(xmlRelaxNGValidCtxtPtr) + d data * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlRelaxNGValidatePopElement... + d pr extproc( + d 'xmlRelaxNGValidatePopElement') + d like(xmlCint) + d ctxt value like(xmlRelaxNGValidCtxtPtr) + d doc value like(xmlDocPtr) + d elem value like(xmlNodePtr) + + d xmlRelaxNGValidateFullElement... + d pr extproc( + d 'xmlRelaxNGValidateFullElement') + d like(xmlCint) + d ctxt value like(xmlRelaxNGValidCtxtPtr) + d doc value like(xmlDocPtr) + d elem value like(xmlNodePtr) + + /endif LIBXML_SCHEMAS_ENBLD + /endif XML_RELAX_NG__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/schemasInternals.rpgle b/libxml2-2.9.10/os400/libxmlrpg/schemasInternals.rpgle new file mode 100644 index 0000000..765ed00 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/schemasInternals.rpgle @@ -0,0 +1,1142 @@ + * Summary: internal interfaces for XML Schemas + * Description: internal interfaces for the XML Schemas handling + * and schema validity checking + * The Schemas development is a Work In Progress. + * Some of those interfaces are not guaranteed to be API or + * ABI stable ! + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_SCHEMA_INTERNALS_H__) + /define XML_SCHEMA_INTERNALS_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_SCHEMAS_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/xmlregexp" + /include "libxmlrpg/hash" + /include "libxmlrpg/dict" + + d xmlSchemaValType... + d s based(######typedef######) + d like(xmlCenum) + d XML_SCHEMAS_UNKNOWN... + d c 0 + d XML_SCHEMAS_STRING... + d c 1 + d XML_SCHEMAS_NORMSTRING... + d c 2 + d XML_SCHEMAS_DECIMAL... + d c 3 + d XML_SCHEMAS_TIME... + d c 4 + d XML_SCHEMAS_GDAY... + d c 5 + d XML_SCHEMAS_GMONTH... + d c 6 + d XML_SCHEMAS_GMONTHDAY... + d c 7 + d XML_SCHEMAS_GYEAR... + d c 8 + d XML_SCHEMAS_GYEARMONTH... + d c 9 + d XML_SCHEMAS_DATE... + d c 10 + d XML_SCHEMAS_DATETIME... + d c 11 + d XML_SCHEMAS_DURATION... + d c 12 + d XML_SCHEMAS_FLOAT... + d c 13 + d XML_SCHEMAS_DOUBLE... + d c 14 + d XML_SCHEMAS_BOOLEAN... + d c 15 + d XML_SCHEMAS_TOKEN... + d c 16 + d XML_SCHEMAS_LANGUAGE... + d c 17 + d XML_SCHEMAS_NMTOKEN... + d c 18 + d XML_SCHEMAS_NMTOKENS... + d c 19 + d XML_SCHEMAS_NAME... + d c 20 + d XML_SCHEMAS_QNAME... + d c 21 + d XML_SCHEMAS_NCNAME... + d c 22 + d XML_SCHEMAS_ID... + d c 23 + d XML_SCHEMAS_IDREF... + d c 24 + d XML_SCHEMAS_IDREFS... + d c 25 + d XML_SCHEMAS_ENTITY... + d c 26 + d XML_SCHEMAS_ENTITIES... + d c 27 + d XML_SCHEMAS_NOTATION... + d c 28 + d XML_SCHEMAS_ANYURI... + d c 29 + d XML_SCHEMAS_INTEGER... + d c 30 + d XML_SCHEMAS_NPINTEGER... + d c 31 + d XML_SCHEMAS_NINTEGER... + d c 32 + d XML_SCHEMAS_NNINTEGER... + d c 33 + d XML_SCHEMAS_PINTEGER... + d c 34 + d XML_SCHEMAS_INT... + d c 35 + d XML_SCHEMAS_UINT... + d c 36 + d XML_SCHEMAS_LONG... + d c 37 + d XML_SCHEMAS_ULONG... + d c 38 + d XML_SCHEMAS_SHORT... + d c 39 + d XML_SCHEMAS_USHORT... + d c 40 + d XML_SCHEMAS_BYTE... + d c 41 + d XML_SCHEMAS_UBYTE... + d c 42 + d XML_SCHEMAS_HEXBINARY... + d c 43 + d XML_SCHEMAS_BASE64BINARY... + d c 44 + d XML_SCHEMAS_ANYTYPE... + d c 45 + d XML_SCHEMAS_ANYSIMPLETYPE... + d c 46 + + * XML Schemas defines multiple type of types. + + d xmlSchemaTypeType... + d s based(######typedef######) + d like(xmlCenum) + d XML_SCHEMA_TYPE_BASIC... A builtin datatype + d c 1 + d XML_SCHEMA_TYPE_ANY... + d c 2 + d XML_SCHEMA_TYPE_FACET... + d c 3 + d XML_SCHEMA_TYPE_SIMPLE... + d c 4 + d XML_SCHEMA_TYPE_COMPLEX... + d c 5 + d XML_SCHEMA_TYPE_SEQUENCE... + d c 6 + d XML_SCHEMA_TYPE_CHOICE... + d c 7 + d XML_SCHEMA_TYPE_ALL... + d c 8 + d XML_SCHEMA_TYPE_SIMPLE_CONTENT... + d c 9 + d XML_SCHEMA_TYPE_COMPLEX_CONTENT... + d c 10 + d XML_SCHEMA_TYPE_UR... + d c 11 + d XML_SCHEMA_TYPE_RESTRICTION... + d c 12 + d XML_SCHEMA_TYPE_EXTENSION... + d c 13 + d XML_SCHEMA_TYPE_ELEMENT... + d c 14 + d XML_SCHEMA_TYPE_ATTRIBUTE... + d c 15 + d XML_SCHEMA_TYPE_ATTRIBUTEGROUP... + d c 16 + d XML_SCHEMA_TYPE_GROUP... + d c 17 + d XML_SCHEMA_TYPE_NOTATION... + d c 18 + d XML_SCHEMA_TYPE_LIST... + d c 19 + d XML_SCHEMA_TYPE_UNION... + d c 20 + d XML_SCHEMA_TYPE_ANY_ATTRIBUTE... + d c 21 + d XML_SCHEMA_TYPE_IDC_UNIQUE... + d c 22 + d XML_SCHEMA_TYPE_IDC_KEY... + d c 23 + d XML_SCHEMA_TYPE_IDC_KEYREF... + d c 24 + d XML_SCHEMA_TYPE_PARTICLE... + d c 25 + d XML_SCHEMA_TYPE_ATTRIBUTE_USE... + d c 26 + d XML_SCHEMA_FACET_MININCLUSIVE... + d c 1000 + d XML_SCHEMA_FACET_MINEXCLUSIVE... + d c 1001 + d XML_SCHEMA_FACET_MAXINCLUSIVE... + d c 1002 + d XML_SCHEMA_FACET_MAXEXCLUSIVE... + d c 1003 + d XML_SCHEMA_FACET_TOTALDIGITS... + d c 1004 + d XML_SCHEMA_FACET_FRACTIONDIGITS... + d c 1005 + d XML_SCHEMA_FACET_PATTERN... + d c 1006 + d XML_SCHEMA_FACET_ENUMERATION... + d c 1007 + d XML_SCHEMA_FACET_WHITESPACE... + d c 1008 + d XML_SCHEMA_FACET_LENGTH... + d c 1009 + d XML_SCHEMA_FACET_MAXLENGTH... + d c 1010 + d XML_SCHEMA_FACET_MINLENGTH... + d c 1011 + d XML_SCHEMA_EXTRA_QNAMEREF... + d c 2000 + d XML_SCHEMA_EXTRA_ATTR_USE_PROHIB... + d c 2001 + + d xmlSchemaContentType... + d s based(######typedef######) + d like(xmlCenum) + d XML_SCHEMA_CONTENT_UNKNOWN... + d c 0 + d XML_SCHEMA_CONTENT_EMPTY... + d c 1 + d XML_SCHEMA_CONTENT_ELEMENTS... + d c 2 + d XML_SCHEMA_CONTENT_MIXED... + d c 3 + d XML_SCHEMA_CONTENT_SIMPLE... + d c 4 + d XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS... Obsolete + d c 5 + d XML_SCHEMA_CONTENT_BASIC... + d c 6 + d XML_SCHEMA_CONTENT_ANY... + d c 7 + + d xmlSchemaValPtr... + d s * based(######typedef######) + + d xmlSchemaTypePtr... + d s * based(######typedef######) + + d xmlSchemaFacetPtr... + d s * based(######typedef######) + + * Annotation + + d xmlSchemaAnnotPtr... + d s * based(######typedef######) + + d xmlSchemaAnnot ds based(xmlSchemaAnnotPtr) + d align qualified + d next like(xmlSchemaAnnotPtr) + d content like(xmlNodePtr) The annotation + + * XML_SCHEMAS_ANYATTR_SKIP: + * + * Skip unknown attribute from validation + * Obsolete, not used anymore. + + d XML_SCHEMAS_ANYATTR_SKIP... + d c 1 + + * XML_SCHEMAS_ANYATTR_LAX: + * + * Ignore validation non definition on attributes + * Obsolete, not used anymore. + + d XML_SCHEMAS_ANYATTR_LAX... + d c 2 + + * XML_SCHEMAS_ANYATTR_STRICT: + * + * Apply strict validation rules on attributes + * Obsolete, not used anymore. + + d XML_SCHEMAS_ANYATTR_STRICT... + d c 3 + + * XML_SCHEMAS_ANY_SKIP: + * + * Skip unknown attribute from validation + + d XML_SCHEMAS_ANY_SKIP... + d c 1 + + * XML_SCHEMAS_ANY_LAX: + * + * Used by wildcards. + * Validate if type found, don't worry if not found + + d XML_SCHEMAS_ANY_LAX... + d c 2 + + * XML_SCHEMAS_ANY_STRICT: + * + * Used by wildcards. + * Apply strict validation rules + + d XML_SCHEMAS_ANY_STRICT... + d c 3 + + * XML_SCHEMAS_ATTR_USE_PROHIBITED: + * + * Used by wildcards. + * The attribute is prohibited. + + d XML_SCHEMAS_ATTR_USE_PROHIBITED... + d c 0 + + * XML_SCHEMAS_ATTR_USE_REQUIRED: + * + * The attribute is required. + + d XML_SCHEMAS_ATTR_USE_REQUIRED... + d c 1 + + * XML_SCHEMAS_ATTR_USE_OPTIONAL: + * + * The attribute is optional. + + d XML_SCHEMAS_ATTR_USE_OPTIONAL... + d c 2 + + * XML_SCHEMAS_ATTR_GLOBAL: + * + * allow elements in no namespace + + d XML_SCHEMAS_ATTR_GLOBAL... + d c X'0001' + + * XML_SCHEMAS_ATTR_NSDEFAULT: + * + * allow elements in no namespace + + d XML_SCHEMAS_ATTR_NSDEFAULT... + d c X'0080' + + * XML_SCHEMAS_ATTR_INTERNAL_RESOLVED: + * + * this is set when the "type" and "ref" references + * have been resolved. + + d XML_SCHEMAS_ATTR_INTERNAL_RESOLVED... + d c X'0100' + + * XML_SCHEMAS_ATTR_FIXED: + * + * the attribute has a fixed value + + d XML_SCHEMAS_ATTR_FIXED... + d c X'0200' + + * xmlSchemaAttribute: + * An attribute definition. + + d xmlSchemaAttributePtr... + d s * based(######typedef######) + + d xmlSchemaAttribute... + d ds based(xmlSchemaAttributePtr) + d align qualified + d type like(xmlSchemaTypeType) + d next like(xmlSchemaAttributePtr) Next attribute + d name * const xmlChar * + d id * const xmlChar * + d ref * const xmlChar * + d refNs * const xmlChar * + d typeName * const xmlChar * + d typeNs * const xmlChar * + d annot like(xmlSchemaAnnotPtr) + * + d base like(xmlSchemaTypePtr) Deprecated + d occurs like(xmlCint) Deprecated + d defValue * const xmlChar * + d subtypes like(xmlSchemaTypePtr) The type definition + d node like(xmlNodePtr) + d targetNamespace... const xmlChar * + d * + d flags like(xmlCint) + d refPrefix * const xmlChar * + d defVal like(xmlSchemaValPtr) Compiled constraint + d refDecl like(xmlSchemaAttributePtr) Deprecated + + * xmlSchemaAttributeLink: + * Used to build a list of attribute uses on complexType definitions. + * WARNING: Deprecated; not used. + + d xmlSchemaAttributeLinkPtr... + d s * based(######typedef######) + + d xmlSchemaAttributeLink... + d ds based(xmlSchemaAttributeLinkPtr) + d align qualified + d next like(xmlSchemaAttributeLinkPtr) The next link + d attr like(xmlSchemaAttributePtr) The linked attribute + + * XML_SCHEMAS_WILDCARD_COMPLETE: + * + * If the wildcard is complete. + + d XML_SCHEMAS_WILDCARD_COMPLETE... + d c X'0001' + + * xmlSchemaCharValueLink: + * Used to build a list of namespaces on wildcards. + + d xmlSchemaWildcardNsPtr... + d s * based(######typedef######) + + d xmlSchemaWildcardNs... + d ds based(xmlSchemaWildcardNsPtr) + d align qualified + d next like(xmlSchemaWildcardNsPtr) The next link + d value * const xmlChar * + + * xmlSchemaWildcard. + * A wildcard. + + d xmlSchemaWildcardPtr... + d s * based(######typedef######) + + d xmlSchemaWildcard... + d ds based(xmlSchemaWildcardPtr) + d align qualified + d type like(xmlSchemaTypeType) Kind of type + d id * const xmlChar * + d annot like(xmlSchemaAnnotPtr) + d node like(xmlNodePtr) + d minOccurs like(xmlCint) Deprecated; not used + d maxOccurs like(xmlCint) Deprecated; not used + d processContents... + d like(xmlCint) + d any like(xmlCint) Ns constraint ##any? + d nsSet like(xmlSchemaWildcardNsPtr) Allowed namspce list + d negNsSet like(xmlSchemaWildcardNsPtr) Negated namespace + d flags like(xmlCint) Deprecated; not used + + * XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED: + * + * The attribute wildcard has been already builded. + + d XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED... + d c X'0001' + + * XML_SCHEMAS_ATTRGROUP_GLOBAL: + * + * The attribute wildcard has been already builded. + + d XML_SCHEMAS_ATTRGROUP_GLOBAL... + d c X'0002' + + * XML_SCHEMAS_ATTRGROUP_MARKED: + * + * Marks the attr group as marked; used for circular checks. + + d XML_SCHEMAS_ATTRGROUP_MARKED... + d c X'0004' + + * XML_SCHEMAS_ATTRGROUP_REDEFINED: + * + * The attr group was redefined. + + d XML_SCHEMAS_ATTRGROUP_REDEFINED... + d c X'0008' + + * XML_SCHEMAS_ATTRGROUP_HAS_REFS: + * + * Whether this attr. group contains attr. group references. + + d XML_SCHEMAS_ATTRGROUP_HAS_REFS... + d c X'0010' + + * An attribute group definition. + * + * xmlSchemaAttribute and xmlSchemaAttributeGroup start of structures + * must be kept similar + + d xmlSchemaAttributeGroupPtr... + d s * based(######typedef######) + + d xmlSchemaAttributeGroup... + d ds based(xmlSchemaAttributeGroupPtr) + d align qualified + d type like(xmlSchemaTypeType) Kind of type + d next like(xmlSchemaAttributePtr) Next attribute + d name * const xmlChar * + d id * const xmlChar * + d ref * const xmlChar * + d refNs * const xmlChar * + d annot like(xmlSchemaAnnotPtr) + * + d attributes like(xmlSchemaAttributePtr) Deprecated; not used + d node like(xmlNodePtr) + d flags like(xmlCint) + d attributeWildcard... + d like(xmlSchemaWildcardPtr) + d refPrefix * const xmlChar * + d refItem like(xmlSchemaAttributeGroupPtr) Deprecated; not used + d targetNamespace... + d * const xmlChar * + d attrUses * void * + + * xmlSchemaTypeLink: + * Used to build a list of types (e.g. member types of + * simpleType with variety "union"). + + d xmlSchemaTypeLinkPtr... + d s * based(######typedef######) + + d xmlSchemaTypeLink... + d ds based(xmlSchemaTypeLinkPtr) + d align qualified + d next like(xmlSchemaTypeLinkPtr) Next type link + d type like(xmlSchemaTypePtr) Linked type + + * xmlSchemaFacetLink: + * Used to build a list of facets. + + d xmlSchemaFacetLinkPtr... + d s * based(######typedef######) + + d xmlSchemaFacetLink... + d ds based(xmlSchemaFacetLinkPtr) + d align qualified + d next like(xmlSchemaFacetLinkPtr) Next facet link + d facet like(xmlSchemaFacetPtr) Linked facet + + * XML_SCHEMAS_TYPE_MIXED: + * + * the element content type is mixed + + d XML_SCHEMAS_TYPE_MIXED... + d c X'00000001' + + * XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION: + * + * the simple or complex type has a derivation method of "extension". + + d XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION... + d c X'00000002' + + * XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION: + * + * the simple or complex type has a derivation method of "restriction". + + d XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION... + d c X'00000004' + + * XML_SCHEMAS_TYPE_GLOBAL: + * + * the type is global + + d XML_SCHEMAS_TYPE_GLOBAL... + d c X'00000008' + + * XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD: + * + * the complexType owns an attribute wildcard, i.e. + * it can be freed by the complexType + + d XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD... Obsolete. + d c X'00000010' + + * XML_SCHEMAS_TYPE_VARIETY_ABSENT: + * + * the simpleType has a variety of "absent". + * TODO: Actually not necessary :-/, since if + * none of the variety flags occur then it's + * automatically absent. + + d XML_SCHEMAS_TYPE_VARIETY_ABSENT... + d c X'00000020' + + * XML_SCHEMAS_TYPE_VARIETY_LIST: + * + * the simpleType has a variety of "list". + + d XML_SCHEMAS_TYPE_VARIETY_LIST... + d c X'00000040' + + * XML_SCHEMAS_TYPE_VARIETY_UNION: + * + * the simpleType has a variety of "union". + + d XML_SCHEMAS_TYPE_VARIETY_UNION... + d c X'00000080' + + * XML_SCHEMAS_TYPE_VARIETY_ATOMIC: + * + * the simpleType has a variety of "union". + + d XML_SCHEMAS_TYPE_VARIETY_ATOMIC... + d c X'00000100' + + * XML_SCHEMAS_TYPE_FINAL_EXTENSION: + * + * the complexType has a final of "extension". + + d XML_SCHEMAS_TYPE_FINAL_EXTENSION... + d c X'00000200' + + * XML_SCHEMAS_TYPE_FINAL_RESTRICTION: + * + * the simpleType/complexType has a final of "restriction". + + d XML_SCHEMAS_TYPE_FINAL_RESTRICTION... + d c X'00000400' + + * XML_SCHEMAS_TYPE_FINAL_LIST: + * + * the simpleType has a final of "list". + + d XML_SCHEMAS_TYPE_FINAL_LIST... + d c X'00000800' + + * XML_SCHEMAS_TYPE_FINAL_UNION: + * + * the simpleType has a final of "union". + + d XML_SCHEMAS_TYPE_FINAL_UNION... + d c X'00001000' + + * XML_SCHEMAS_TYPE_FINAL_DEFAULT: + * + * the simpleType has a final of "default". + + d XML_SCHEMAS_TYPE_FINAL_DEFAULT... + d c X'00002000' + + * XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE: + * + * Marks the item as a builtin primitive. + + d XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE... + d c X'00004000' + + * XML_SCHEMAS_TYPE_MARKED: + * + * Marks the item as marked; used for circular checks. + + d XML_SCHEMAS_TYPE_MARKED... + d c X'00010000' + + * XML_SCHEMAS_TYPE_BLOCK_DEFAULT: + * + * the complexType did not specify 'block' so use the default of the + * item. + + d XML_SCHEMAS_TYPE_BLOCK_DEFAULT... + d c X'00020000' + + * XML_SCHEMAS_TYPE_BLOCK_EXTENSION: + * + * the complexType has a 'block' of "extension". + + d XML_SCHEMAS_TYPE_BLOCK_EXTENSION... + d c X'00040000' + + * XML_SCHEMAS_TYPE_BLOCK_RESTRICTION: + * + * the complexType has a 'block' of "restriction". + + d XML_SCHEMAS_TYPE_BLOCK_RESTRICTION... + d c X'00080000' + + * XML_SCHEMAS_TYPE_ABSTRACT: + * + * the simple/complexType is abstract. + + d XML_SCHEMAS_TYPE_ABSTRACT... + d c X'00100000' + + * XML_SCHEMAS_TYPE_FACETSNEEDVALUE: + * + * indicates if the facets need a computed value + + d XML_SCHEMAS_TYPE_FACETSNEEDVALUE... + d c X'00200000' + + * XML_SCHEMAS_TYPE_INTERNAL_RESOLVED: + * + * indicates that the type was typefixed + + d XML_SCHEMAS_TYPE_INTERNAL_RESOLVED... + d c X'00400000' + + * XML_SCHEMAS_TYPE_INTERNAL_INVALID: + * + * indicates that the type is invalid + + d XML_SCHEMAS_TYPE_INTERNAL_INVALID... + d c X'00800000' + + * XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE: + * + * a whitespace-facet value of "preserve" + + d XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE... + d c X'01000000' + + * XML_SCHEMAS_TYPE_WHITESPACE_REPLACE: + * + * a whitespace-facet value of "replace" + + d XML_SCHEMAS_TYPE_WHITESPACE_REPLACE... + d c X'02000000' + + * XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE: + * + * a whitespace-facet value of "collapse" + + d XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE... + d c X'04000000' + + * XML_SCHEMAS_TYPE_HAS_FACETS: + * + * has facets + + d XML_SCHEMAS_TYPE_HAS_FACETS... + d c X'08000000' + + * XML_SCHEMAS_TYPE_NORMVALUENEEDED: + * + * indicates if the facets (pattern) need a normalized value + + d XML_SCHEMAS_TYPE_NORMVALUENEEDED... + d c X'10000000' + + * XML_SCHEMAS_TYPE_FIXUP_1: + * + * First stage of fixup was done. + + d XML_SCHEMAS_TYPE_FIXUP_1... + d c X'20000000' + + * XML_SCHEMAS_TYPE_REDEFINED: + * + * The type was redefined. + + d XML_SCHEMAS_TYPE_REDEFINED... + d c X'40000000' + + /if defined(DISABLED) + * XML_SCHEMAS_TYPE_REDEFINING: + * + * The type redefines an other type. + + d XML_SCHEMAS_TYPE_REDEFINING... + d c X'80000000' + /endif + + * _xmlSchemaType: + * + * Schemas type definition. + + d xmlSchemaType... + d ds based(xmlSchemaTypePtr) + d align qualified + d type like(xmlSchemaTypeType) Kind of type + d next like(xmlSchemaTypePtr) Next type + d name * const xmlChar * + d id * const xmlChar * + d ref * const xmlChar * + d refNs * const xmlChar * + d annot like(xmlSchemaAnnotPtr) + d subtypes like(xmlSchemaTypePtr) + d attributes like(xmlSchemaAttributePtr) Deprecated; not used + d node like(xmlNodePtr) + d minOccurs like(xmlCint) Deprecated; not used + d maxOccurs like(xmlCint) Deprecated; not used + * + d flags like(xmlCint) + d contentType like(xmlSchemaContentType) + d base * const xmlChar * + d baseNs * const xmlChar * + d baseType like(xmlSchemaTypePtr) Base type component + d facets like(xmlSchemaFacetPtr) Local facets + d redef like(xmlSchemaTypePtr) Deprecated; not used + d recurse like(xmlCint) Obsolete + d attributeUses like(xmlSchemaAttributeLinkPtr) Deprecated; not used + d attributeWildcard... + d like(xmlSchemaWildcardPtr) + d builtInType like(xmlCint) Built-in types type + d memberTypes like(xmlSchemaTypeLinkPtr) Union member-types + d facetSet like(xmlSchemaFacetLinkPtr) All facets + d refPrefix * const xmlChar * + d contentTypeDef... + d like(xmlSchemaTypePtr) + d contModel like(xmlRegexpPtr) Content model autom. + d targetNamespace... + d * const xmlChar * + d attrUses * void * + + * xmlSchemaElement: + * An element definition. + * + * xmlSchemaType, xmlSchemaFacet and xmlSchemaElement start of + * structures must be kept similar + + * XML_SCHEMAS_ELEM_NILLABLE: + * + * the element is nillable + + d XML_SCHEMAS_ELEM_NILLABLE... + d c X'00000001' + + * XML_SCHEMAS_ELEM_GLOBAL: + * + * the element is global + + d XML_SCHEMAS_ELEM_GLOBAL... + d c X'00000002' + + * XML_SCHEMAS_ELEM_DEFAULT: + * + * the element has a default value + + d XML_SCHEMAS_ELEM_DEFAULT... + d c X'00000004' + + * XML_SCHEMAS_ELEM_FIXED: + * + * the element has a fixed value + + d XML_SCHEMAS_ELEM_FIXED... + d c X'00000008' + + * XML_SCHEMAS_ELEM_ABSTRACT: + * + * the element is abstract + + d XML_SCHEMAS_ELEM_ABSTRACT... + d c X'00000010' + + * XML_SCHEMAS_ELEM_TOPLEVEL: + * + * the element is top level + * obsolete: use XML_SCHEMAS_ELEM_GLOBAL instead + + d XML_SCHEMAS_ELEM_TOPLEVEL... + d c X'00000020' + + * XML_SCHEMAS_ELEM_REF: + * + * the element is a reference to a type + + d XML_SCHEMAS_ELEM_REF... + d c X'00000040' + + * XML_SCHEMAS_ELEM_NSDEFAULT: + * + * allow elements in no namespace + * Obsolete, not used anymore. + + d XML_SCHEMAS_ELEM_NSDEFAULT... + d c X'00000080' + + * XML_SCHEMAS_ELEM_INTERNAL_RESOLVED: + * + * this is set when "type", "ref", "substitutionGroup" + * references have been resolved. + + d XML_SCHEMAS_ELEM_INTERNAL_RESOLVED... + d c X'00000100' + + * XML_SCHEMAS_ELEM_CIRCULAR: + * + * a helper flag for the search of circular references. + + d XML_SCHEMAS_ELEM_CIRCULAR... + d c X'00000200' + + * XML_SCHEMAS_ELEM_BLOCK_ABSENT: + * + * the "block" attribute is absent + + d XML_SCHEMAS_ELEM_BLOCK_ABSENT... + d c X'00000400' + + * XML_SCHEMAS_ELEM_BLOCK_EXTENSION: + * + * disallowed substitutions are absent + + d XML_SCHEMAS_ELEM_BLOCK_EXTENSION... + d c X'00000800' + + * XML_SCHEMAS_ELEM_BLOCK_RESTRICTION: + * + * disallowed substitutions: "restriction" + + d XML_SCHEMAS_ELEM_BLOCK_RESTRICTION... + d c X'00001000' + + * XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION: + * + * disallowed substitutions: "substituion" + + d XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION... + d c X'00002000' + + * XML_SCHEMAS_ELEM_FINAL_ABSENT: + * + * substitution group exclusions are absent + + d XML_SCHEMAS_ELEM_FINAL_ABSENT... + d c X'00004000' + + * XML_SCHEMAS_ELEM_FINAL_EXTENSION: + * + * substitution group exclusions: "extension" + + d XML_SCHEMAS_ELEM_FINAL_EXTENSION... + d c X'00008000' + + * XML_SCHEMAS_ELEM_FINAL_RESTRICTION: + * + * substitution group exclusions: "restriction" + + d XML_SCHEMAS_ELEM_FINAL_RESTRICTION... + d c X'00010000' + + * XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD: + * + * the declaration is a substitution group head + + d XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD... + d c X'00020000' + + * XML_SCHEMAS_ELEM_INTERNAL_CHECKED: + * + * this is set when the elem decl has been checked against + * all constraints + + d XML_SCHEMAS_ELEM_INTERNAL_CHECKED... + d c X'00040000' + + d xmlSchemaElementPtr... + d s * based(######typedef######) + + d xmlSchemaElement... + d ds based(xmlSchemaElementPtr) + d align qualified + d type like(xmlSchemaTypeType) Kind of type + d next like(xmlSchemaElementPtr) Not used ? + d name * const xmlChar * + d id * const xmlChar * + d ref * const xmlChar * + d refNs * const xmlChar * + d annot like(xmlSchemaAnnotPtr) + d subtypes like(xmlSchemaTypePtr) + d attributes like(xmlSchemaAttributePtr) Deprecated; not used + d node like(xmlNodePtr) + d minOccurs like(xmlCint) Deprecated; not used + d maxOccurs like(xmlCint) Deprecated; not used + * + d flags like(xmlCint) + d targetNamespace... + d * const xmlChar * + d namedType * const xmlChar * + d namedTypeNs * const xmlChar * + d substGroup * const xmlChar * + d substGroupNs * const xmlChar * + d scope * const xmlChar * + d value * const xmlChar * + d refDecl like(xmlSchemaElementPtr) + d contModel like(xmlRegexpPtr) + d contentType like(xmlSchemaContentType) + d refPrefix * const xmlChar * + d devVal like(xmlSchemaValPtr) Comp val constraint + d idcs * void * + + * XML_SCHEMAS_FACET_UNKNOWN: + * + * unknown facet handling + + d XML_SCHEMAS_FACET_UNKNOWN... + d c 0 + + * XML_SCHEMAS_FACET_PRESERVE: + * + * preserve the type of the facet + + d XML_SCHEMAS_FACET_PRESERVE... + d c 1 + + * XML_SCHEMAS_FACET_REPLACE: + * + * replace the type of the facet + + d XML_SCHEMAS_FACET_REPLACE... + d c 2 + + * XML_SCHEMAS_FACET_COLLAPSE: + * + * collapse the types of the facet + + d XML_SCHEMAS_FACET_COLLAPSE... + d c 3 + + * A facet definition. + + d xmlSchemaFacet... + d ds based(xmlSchemaFacetPtr) + d align qualified + d type like(xmlSchemaTypeType) Kind of type + d next like(xmlSchemaFacetPtr) Next type in seq. + d value * const xmlChar * + d id * const xmlChar * + d annot like(xmlSchemaAnnotPtr) + d node like(xmlNodePtr) + d fixed like(xmlCint) _FACET_PRESERVE, etc + d whitespace like(xmlCint) + d val like(xmlSchemaValPtr) Compiled value + d regexp like(xmlRegexpPtr) Regexp for patterns + + * A notation definition. + + d xmlSchemaNotationPtr... + d s * based(######typedef######) + + d xmlSchemaNotation... + d ds based(xmlSchemaNotationPtr) + d align qualified + d type like(xmlSchemaTypeType) Kind of type + d name * const xmlChar * + d annot like(xmlSchemaAnnotPtr) + d identifier * const xmlChar * + d targetNamespace... + d * const xmlChar * + + * TODO: Actually all those flags used for the schema should sit + * on the schema parser context, since they are used only + * during parsing an XML schema document, and not available + * on the component level as per spec. + + * XML_SCHEMAS_QUALIF_ELEM: + * + * Reflects elementFormDefault == qualified in + * an XML schema document. + + d XML_SCHEMAS_QUALIF_ELEM... + d c X'00000001' + + * XML_SCHEMAS_QUALIF_ATTR: + * + * Reflects attributeFormDefault == qualified in + * an XML schema document. + + d XML_SCHEMAS_QUALIF_ATTR... + d c X'00000002' + + * XML_SCHEMAS_FINAL_DEFAULT_EXTENSION: + * + * the schema has "extension" in the set of finalDefault. + + d XML_SCHEMAS_FINAL_DEFAULT_EXTENSION... + d c X'00000004' + + * XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION: + * + * the schema has "restriction" in the set of finalDefault. + + d XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION... + d c X'00000008' + + * XML_SCHEMAS_FINAL_DEFAULT_LIST: + * + * the cshema has "list" in the set of finalDefault. + + d XML_SCHEMAS_FINAL_DEFAULT_LIST... + d c X'00000010' + + * XML_SCHEMAS_FINAL_DEFAULT_UNION: + * + * the schema has "union" in the set of finalDefault. + + d XML_SCHEMAS_FINAL_DEFAULT_UNION... + d c X'00000020' + + * XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION: + * + * the schema has "extension" in the set of blockDefault. + + d XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION... + d c X'00000040' + + * XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION: + * + * the schema has "restriction" in the set of blockDefault. + + d XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION... + d c X'00000080' + + * XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION: + * + * the schema has "substitution" in the set of blockDefault. + + d XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION... + d c X'00000100' + + * XML_SCHEMAS_INCLUDING_CONVERT_NS: + * + * the schema is currently including an other schema with + * no target namespace. + + d XML_SCHEMAS_INCLUDING_CONVERT_NS... + d c X'00000200' + + * _xmlSchema: + * + * A Schemas definition + + d xmlSchema ds based(xmlSchemaPtr) + d align qualified + d name * const xmlChar * + d targetNamespace... + d * const xmlChar * + d version * const xmlChar * + d id * const xmlChar * + d doc like(xmlDocPtr) + d annot like(xmlSchemaAnnotPtr) + d flags like(xmlCint) + * + d typeDecl like(xmlHashTablePtr) + d attrDecl like(xmlHashTablePtr) + d attrGrpDecl like(xmlHashTablePtr) + d elemDecl like(xmlHashTablePtr) + d notaDecl like(xmlHashTablePtr) + d schemasImports... + d like(xmlHashTablePtr) + * + d #private * void * + d groupDecl like(xmlHashTablePtr) + d dict like(xmlDictPtr) + d includes * void * + d preserve like(xmlCint) Do not free doc ? + d counter like(xmlCint) For name uniqueness + d idcDef like(xmlHashTablePtr) All id-constr. defs + d volatiles * void * + + d xmlSchemaFreeType... + d pr extproc('xmlSchemaFreeType') + d type value like(xmlSchemaTypePtr) + + d xmlSchemaFreeWildcard... + d pr extproc('xmlSchemaFreeWildcard') + d wildcard value like(xmlSchemaWildcardPtr) + + /endif LIBXML_SCHEMAS_ENBLD + /endif SCHEMA_INTERNALS_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/schematron.rpgle b/libxml2-2.9.10/os400/libxmlrpg/schematron.rpgle new file mode 100644 index 0000000..8271ca5 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/schematron.rpgle @@ -0,0 +1,204 @@ + * Summary: XML Schemastron implementation + * Description: interface to the XML Schematron validity checking. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_SCHEMATRON_H__) + /define XML_SCHEMATRON_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_SCHEMATRON_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + + d xmlSchematronValidOptions... + d s based(######typedef######) + d like(xmlCenum) + d XML_SCHEMATRON_OUT_QUIET... Quiet no report + d c X'0001' + d XML_SCHEMATRON_OUT_TEXT... Build textual report + d c X'0002' + d XML_SCHEMATRON_OUT_XML... Output SVRL + d c X'0004' + d XML_SCHEMATRON_OUT_ERROR... Output to error func + d c X'0008' + d XML_SCHEMATRON_OUT_FILE... Output to file descr + d c X'0100' + d XML_SCHEMATRON_OUT_BUFFER... Output to a buffer + d c X'0200' + d XML_SCHEMATRON_OUT_IO... Output to I/O mech + d c X'0400' + + * The schemas related types are kept internal + + d xmlSchematronPtr... + d s * based(######typedef######) + + * xmlSchematronValidityErrorFunc: + * @ctx: the validation context + * @msg: the message + * @...: extra arguments + * + * Signature of an error callback from a Schematron validation + + d xmlSchematronValidityErrorFunc... + d s * based(######typedef######) + d procptr + + * xmlSchematronValidityWarningFunc: + * @ctx: the validation context + * @msg: the message + * @...: extra arguments + * + * Signature of a warning callback from a Schematron validation + + d xmlSchematronValidityWarningFunc... + d s * based(######typedef######) + d procptr + + * A schemas validation context + + d xmlSchematronParserCtxtPtr... + d s * based(######typedef######) + + d xmlSchematronValidCtxtPtr... + d s * based(######typedef######) + + * Interfaces for parsing. + + d xmlSchematronNewParserCtxt... + d pr extproc('xmlSchematronNewParserCtxt') + d like(xmlSchematronParserCtxtPtr) + d URL * value options(*string) const char * + + d xmlSchematronNewMemParserCtxt... + d pr extproc( + d 'xmlSchematronNewMemParserCtxt') + d like(xmlSchematronParserCtxtPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + + d xmlSchematronNewDocParserCtxt... + d pr extproc( + d 'xmlSchematronNewDocParserCtxt') + d like(xmlSchematronParserCtxtPtr) + d doc value like(xmlDocPtr) + + d xmlSchematronFreeParserCtxt... + d pr extproc( + d 'xmlSchematronFreeParserCtxt') + d ctxt value + d like(xmlSchematronParserCtxtPtr) + + /if defined(DISABLED) + d xmlSchematronSetParserErrors... + d pr extproc( + d 'xmlSchematronSetParserErrors') + d ctxt value + d like(xmlSchematronParserCtxtPtr) + d err value + d like(xmlSchematronValidityErrorFunc) + d warn value like( + d xmlSchematronValidityWarningFunc) + d ctx * value void * + + d xmlSchematronGetParserErrors... + d pr extproc( + d 'xmlSchematronGetParserErrors') + d like(xmlCint) + d ctxt value + d like(xmlSchematronParserCtxtPtr) + d err like(xmlSchematronValidityErrorFunc) + d warn like( + d xmlSchematronValidityWarningFunc) + d ctx * void *(*) + + d xmlSchematronIsValid... + d pr extproc('xmlSchematronIsValid') + d like(xmlCint) + d ctxt value like(xmlSchematronValidCtxtPtr) + /endif + + d xmlSchematronParse... + d pr extproc('xmlSchematronParse') + d like(xmlSchematronPtr) + d ctxt value + d like(xmlSchematronParserCtxtPtr) + + d xmlSchematronFree... + d pr extproc('xmlSchematronFree') + d schema value like(xmlSchematronPtr) + + * Interfaces for validating + + d xmlSchematronSetValidStructuredErrors... + d pr extproc('xmlSchematronSetValidStruct- + d uredErrors') + d ctxt value like(xmlSchematronValidCtxtPtr) + d serror value like(xmlStructuredErrorFunc) + d ctx * value void * + + /if defined(DISABLED) + d xmlSchematronSetValidErrors... + d pr extproc( + d 'xmlSchematronSetValidErrors') + d ctxt value like(xmlSchematronValidCtxtPtr) + d err value + d like(xmlSchematronValidityErrorFunc) + d warn value like( + d xmlSchematronValidityWarningFunc) + d ctx * value void * + + d xmlSchematronGetValidErrors... + d pr extproc( + d 'xmlSchematronGetValidErrors') + d like(xmlCint) + d ctxt value like(xmlSchematronValidCtxtPtr) + d err like(xmlSchematronValidityErrorFunc) + d warn like( + d xmlSchematronValidityWarningFunc) + d ctx * void *(*) + + d xmlSchematronSetValidOptions... + d pr extproc( + d 'xmlSchematronSetValidOptions') + d like(xmlCint) + d ctxt value like(xmlSchematronValidCtxtPtr) + d options value like(xmlCint) + + d xmlSchematronValidCtxtGetOptions... + d pr extproc( + d 'xmlSchematronValidCtxtGetOptions') + d like(xmlCint) + d ctxt value like(xmlSchematronValidCtxtPtr) + + d xmlSchematronValidateOneElement... + d pr extproc( + d 'xmlSchematronValidateOneElement') + d like(xmlCint) + d ctxt value like(xmlSchematronValidCtxtPtr) + d elem value like(xmlNodePtr) + /endif + + d xmlSchematronNewValidCtxt... + d pr extproc('xmlSchematronNewValidCtxt') + d like(xmlSchematronValidCtxtPtr) + d schema value like(xmlSchematronPtr) + d options value like(xmlCint) + + d xmlSchematronFreeValidCtxt... + d pr extproc('xmlSchematronFreeValidCtxt') + d ctxt value like(xmlSchematronValidCtxtPtr) + + d xmlSchematronValidateDoc... + d pr extproc('xmlSchematronValidateDoc') + d like(xmlCint) + d ctxt value like(xmlSchematronValidCtxtPtr) + d instance value like(xmlDocPtr) + + /endif _SCHEMATRON_ENABLED + /endif XML_SCHEMATRON_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/threads.rpgle b/libxml2-2.9.10/os400/libxmlrpg/threads.rpgle new file mode 100644 index 0000000..124798b --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/threads.rpgle @@ -0,0 +1,73 @@ + * Summary: interfaces for thread handling + * Description: set of generic threading related routines + * should work with pthreads, Windows native or TLS threads + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_THREADS_H__) + /define XML_THREADS_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + + * xmlMutex are a simple mutual exception locks. + + d xmlMutexPtr s * based(######typedef######) + + * xmlRMutex are reentrant mutual exception locks. + + d xmlRMutexPtr s * based(######typedef######) + + /include "libxmlrpg/globals" + + d xmlNewMutex pr extproc('xmlNewMutex') + d like(xmlMutexPtr) + + d xmlMutexLock pr extproc('xmlMutexLock') + d tok value like(xmlMutexPtr) + + d xmlMutexUnlock pr extproc('xmlMutexUnlock') + d tok value like(xmlMutexPtr) + + d xmlFreeMutex pr extproc('xmlFreeMutex') + d tok value like(xmlMutexPtr) + + d xmlNewRMutex pr extproc('xmlNewRMutex') + d like(xmlRMutexPtr) + + d xmlRMutexLock pr extproc('xmlRMutexLock') + d tok value like(xmlRMutexPtr) + + d xmlRMutexUnlock... + d pr extproc('xmlRMutexUnlock') + d tok value like(xmlRMutexPtr) + + d xmlFreeRMutex pr extproc('xmlFreeRMutex') + d tok value like(xmlRMutexPtr) + + * Library wide APIs. + + d xmlInitThreads pr extproc('xmlInitThreads') + + d xmlLockLibrary pr extproc('xmlLockLibrary') + + d xmlUnlockLibrary... + d pr extproc('xmlUnlockLibrary') + + d xmlGetThreadId pr extproc('xmlGetThreadId') + d like(xmlCint) + + d xmlIsMainThread... + d pr extproc('xmlIsMainThread') + d like(xmlCint) + + d xmlCleanupThreads... + d pr extproc('xmlCleanupThreads') + + d xmlGetGlobalState... + d pr extproc('xmlGetGlobalState') + d like(xmlGlobalStatePtr) + + /endif XML_THREADS_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/transcode.rpgle b/libxml2-2.9.10/os400/libxmlrpg/transcode.rpgle new file mode 100644 index 0000000..b96e4e8 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/transcode.rpgle @@ -0,0 +1,71 @@ + * Supplementary character code conversion functions for + * EBCDIC environments. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(TRANSCODE_H__) + /define TRANSCODE_H__ + + /include "libxmlrpg/dict" + /include "libxmlrpg/xmlstdarg" + + d xmlZapDict pr extproc('xmlZapDict') + d dict like(xmlDictPtr) + + d xmlTranscodeResult... + d pr * extproc('xmlTranscodeResult') const char * + d s * value options(*string) const xmlChar * + d encoding * value options(*string) const char * + d dict like(xmlDictPtr) options(*omit) + d freeproc * value procptr + + d xmlTranscodeString... + d pr * extproc('xmlTranscodeString') const xmlChar * + d s * value options(*string) const char * + d encoding * value options(*string) const char * + d dict like(xmlDictPtr) options(*omit) + + d xmlTranscodeWString... + d pr * extproc('xmlTranscodeWString') const xmlChar * + d s * value options(*string) const char * + d encoding * value options(*string) const char * + d dict like(xmlDictPtr) options(*omit) + + d xmlTranscodeHString... + d pr * extproc('xmlTranscodeHString') const xmlChar * + d s * value options(*string) const char * + d encoding * value options(*string) const char * + d dict like(xmlDictPtr) options(*omit) + + /if not defined(XML_NO_SHORT_NAMES) + d xmlTR pr * extproc('xmlTranscodeResult') const char * + d s * value options(*string) const xmlChar * + d encoding * value options(*string) const char * + d dict like(xmlDictPtr) options(*omit) + d freeproc * value procptr + + d xmlTS pr * extproc('xmlTranscodeString') const xmlChar * + d s * value options(*string) const char * + d encoding * value options(*string) const char * + d dict like(xmlDictPtr) options(*omit) + + d xmlTW pr * extproc('xmlTranscodeWString') const xmlChar * + d s * value options(*string) const char * + d encoding * value options(*string) const char * + d dict like(xmlDictPtr) options(*omit) + + d xmlTH pr * extproc('xmlTranscodeHString') const xmlChar * + d s * value options(*string) const char * + d encoding * value options(*string) const char * + d dict like(xmlDictPtr) options(*omit) + /endif + + d xmlVasprintf pr * extproc('xmlVasprintf') + d dict like(xmlDictPtr) options(*omit) + d encoding * value options(*string) const char * + d fmt * value options(*string) const xmlChar * + d args likeds(xmlVaList) + + /endif diff --git a/libxml2-2.9.10/os400/libxmlrpg/tree.rpgle b/libxml2-2.9.10/os400/libxmlrpg/tree.rpgle new file mode 100644 index 0000000..6512778 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/tree.rpgle @@ -0,0 +1,1681 @@ + * Summary: interfaces for tree manipulation + * Description: this module describes the structures found in an tree + * resulting from an XML or HTML parsing, as well as the API + * provided for various processing on that tree + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_TREE_H__) + /define XML_TREE_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/xmlstring" + + + * Some of the basic types pointer to structures: + + * xmlIO.h + + d xmlParserInputBufferPtr... + d s * based(######typedef######) + + d xmlOutputBufferPtr... + d s * based(######typedef######) + + * parser.h + + d xmlParserInputPtr... + d s * based(######typedef######) + + d xmlParserCtxtPtr... + d s * based(######typedef######) + + d xmlSAXLocatorPtr... + d s * based(######typedef######) + + d xmlSAXHandlerPtr... + d s * based(######typedef######) + + * entities.h + + d xmlEntityPtr s * based(######typedef######) + + + * BASE_BUFFER_SIZE: + * + * default buffer size 4000. + + d BASE_BUFFER_SIZE... + d c 4096 + + * LIBXML_NAMESPACE_DICT: + * + * Defines experimental behaviour: + * 1) xmlNs gets an additional field @context (a xmlDoc) + * 2) when creating a tree, xmlNs->href is stored in the dict of xmlDoc. + + /if defined(DO_NOT_COMPILE) + /define LIBXML_NAMESPACE_DICT + /endif + + * xmlBufferAllocationScheme: + * + * A buffer allocation scheme can be defined to either match exactly the + * need or double it's allocated size each time it is found too small. + + d xmlBufferAllocationScheme... + d s based(######typedef######) + d like(xmlCenum) + d XML_BUFFER_ALLOC_DOUBLEIT... + d c 0 + d XML_BUFFER_ALLOC_EXACT... + d c 1 + d XML_BUFFER_ALLOC_IMMUTABLE... + d c 2 + d XML_BUFFER_ALLOC_IO... + d c 3 + d XML_BUFFER_ALLOC_HYBRID... + d c 4 + + * xmlBuffer: + * + * A buffer structure, this old construct is limited to 2GB and + * is being deprecated, use API with xmlBuf instead + + d xmlBufferPtr s * based(######typedef######) + + d xmlBuffer ds based(xmlBufferPtr) + d align qualified + d content * xmlChar * + d use like(xmlCuint) + d size like(xmlCuint) + d alloc like(xmlBufferAllocationScheme) The realloc method + d contentIO * xmlChar * + + * xmlBufPtr: + * + * A pointer to a buffer structure, the actual structure internals are not + * public + + d xmlBufPtr s * based(######typedef######) + + * A few public routines for xmlBuf. As those are expected to be used + * mostly internally the bulk of the routines are internal in buf.h + + d xmlBufContent pr * extproc('xmlBufContent') xmlChar * + d buf value like(xmlBufPtr) const + + d xmlBufEnd pr * extproc('xmlBufEnd') xmlChar * + d buf value like(xmlBufPtr) const + + d xmlBufUse pr extproc('xmlBufUse') + d like(xmlCsize_t) + d buf value like(xmlBufPtr) const + + d xmlBufShrink pr extproc('xmlBufShrink') + d like(xmlCsize_t) + d buf value like(xmlBufPtr) + d len value like(xmlCsize_t) + + * LIBXML2_NEW_BUFFER: + * + * Macro used to express that the API use the new buffers for + * xmlParserInputBuffer and xmlOutputBuffer. The change was + * introduced in 2.9.0. + + /define LIBXML2_NEW_BUFFER + + * XML_XML_NAMESPACE: + * + * This is the namespace for the special xml: prefix predefined in the + * XML Namespace specification. + + d XML_XML_NAMESPACE... + d c 'http://www.w3.org/XML/1998/+ + d namespace' + + * XML_XML_ID: + * + * This is the name for the special xml:id attribute + + d XML_XML_ID c 'xml:id' + + * The different element types carried by an XML tree. + * + * NOTE: This is synchronized with DOM Level1 values + * See http://www.w3.org/TR/REC-DOM-Level-1/ + * + * Actually this had diverged a bit, and now XML_DOCUMENT_TYPE_NODE should + * be deprecated to use an XML_DTD_NODE. + + d xmlElementType s based(######typedef######) + d like(xmlCenum) + d XML_ELEMENT_NODE... + d c 1 + d XML_ATTRIBUTE_NODE... + d c 2 + d XML_TEXT_NODE c 3 + d XML_CDATA_SECTION_NODE... + d c 4 + d XML_ENTITY_REF_NODE... + d c 5 + d XML_ENTITY_NODE... + d c 6 + d XML_PI_NODE c 7 + d XML_COMMENT_NODE... + d c 8 + d XML_DOCUMENT_NODE... + d c 9 + d XML_DOCUMENT_TYPE_NODE... + d c 10 + d XML_DOCUMENT_FRAG_NODE... + d c 11 + d XML_NOTATION_NODE... + d c 12 + d XML_HTML_DOCUMENT_NODE... + d c 13 + d XML_DTD_NODE c 14 + d XML_ELEMENT_DECL... + d c 15 + d XML_ATTRIBUTE_DECL... + d c 16 + d XML_ENTITY_DECL... + d c 17 + d XML_NAMESPACE_DECL... + d c 18 + d XML_LOCAL_NAMESPACE... + d c 18 Alias + d XML_XINCLUDE_START... + d c 19 + d XML_XINCLUDE_END... + d c 20 + /if defined(LIBXML_DOCB_ENABLED) + d XML_DOCB_DOCUMENT_NODE... + d c 21 + /endif + + * xmlNotation: + * + * A DTD Notation definition. + + d xmlNotationPtr s * based(######typedef######) + + d xmlNotation ds based(xmlNotationPtr) + d align qualified + d name * const xmlChar * + d PublicID * const xmlChar * + d SystemID * const xmlChar * + + * xmlAttributeType: + * + * A DTD Attribute type definition. + + d xmlAttributeType... + d s based(######typedef######) + d like(xmlCenum) + d XML_ATTRIBUTE_CDATA... + d c 1 + d XML_ATTRIBUTE_ID... + d c 2 + d XML_ATTRIBUTE_IDREF... + d c 3 + d XML_ATTRIBUTE_IDREFS... + d c 4 + d XML_ATTRIBUTE_ENTITY... + d c 5 + d XML_ATTRIBUTE_ENTITIES... + d c 6 + d XML_ATTRIBUTE_NMTOKEN... + d c 7 + d XML_ATTRIBUTE_NMTOKENS... + d c 8 + d XML_ATTRIBUTE_ENUMERATION... + d c 9 + d XML_ATTRIBUTE_NOTATION... + d c 10 + + * xmlAttributeDefault: + * + * A DTD Attribute default definition. + + d xmlAttributeDefault... + d s based(######typedef######) + d like(xmlCenum) + d XML_ATTRIBUTE_NONE... + d c 1 + d XML_ATTRIBUTE_REQUIRED... + d c 2 + d XML_ATTRIBUTE_IMPLIED... + d c 3 + d XML_ATTRIBUTE_FIXED... + d c 4 + + * xmlEnumeration: + * + * List structure used when there is an enumeration in DTDs. + + d xmlEnumerationPtr... + d s * based(######typedef######) + + d xmlEnumeration ds based(xmlEnumerationPtr) + d align qualified + d next like(xmlEnumerationPtr) Next one + d name * const xmlChar * + + * Forward pointer declarations. + + d xmlNodePtr s * based(######typedef######) + d xmlDocPtr s * based(######typedef######) + d xmlDtdPtr s * based(######typedef######) + + * xmlAttribute: + * + * An Attribute declaration in a DTD. + + d xmlAttributePtr... + d s * based(######typedef######) + + d xmlAttribute ds based(xmlAttributePtr) + d align qualified + d #private * Application data + d type like(xmlElementType) XML_ATTRIBUTE_DECL + d name * const xmlChar * + d children like(xmlNodePtr) NULL + d last like(xmlNodePtr) NULL + d parent like(xmlDtdPtr) -> DTD + d next like(xmlNodePtr) next sibling link + d prev like(xmlNodePtr) previous sibling lnk + d doc like(xmlDocPtr) The containing doc + d nexth like(xmlAttributePtr) Next in hash table + d atype like(xmlAttributeType) The attribute type + d def like(xmlAttributeDefault) The default + d defaultValue * or const xmlChar * + d tree like(xmlEnumerationPtr) or enum tree + d prefix * const xmlChar * + d elem * const xmlChar * + + * xmlElementContentType: + * + * Possible definitions of element content types. + + d xmlElementContentType... + d s based(######typedef######) + d like(xmlCenum) + d XML_ELEMENT_CONTENT_PCDATA... + d c 1 + d XML_ELEMENT_CONTENT_ELEMENT... + d c 2 + d XML_ELEMENT_CONTENT_SEQ... + d c 3 + d XML_ELEMENT_CONTENT_OR... + d c 4 + + * xmlElementContentOccur: + * + * Possible definitions of element content occurrences. + + d xmlElementContentOccur... + d s based(######typedef######) + d like(xmlCenum) + d XML_ELEMENT_CONTENT_ONCE... + d c 1 + d XML_ELEMENT_CONTENT_OPT... + d c 2 + d XML_ELEMENT_CONTENT_MULT... + d c 3 + d XML_ELEMENT_CONTENT_PLUS... + d c 4 + + * xmlElementContent: + * + * An XML Element content as stored after parsing an element definition + * in a DTD. + + d xmlElementContentPtr... + d s * based(######typedef######) + + d xmlElementContent... + d ds based(xmlElementContentPtr) + d align qualified + d type like(xmlElementContentType) + d ocur like(xmlElementContentOccur) + d name * const xmlChar * + d c1 like(xmlElementContentPtr) First child + d c2 like(xmlElementContentPtr) Second child + d parent like(xmlElementContentPtr) Parent + d prefix * const xmlChar * + + * xmlElementTypeVal: + * + * The different possibilities for an element content type. + + d xmlElementTypeVal... + d s based(######typedef######) + d like(xmlCenum) + d XML_ELEMENT_TYPE_UNDEFINED... + d c 0 + d XML_ELEMENT_TYPE_EMPTY... + d c 1 + d XML_ELEMENT_TYPE_ANY... + d c 2 + d XML_ELEMENT_TYPE_MIXED... + d c 3 + d XML_ELEMENT_TYPE_ELEMENT... + d c 4 + + /include "libxmlrpg/xmlregexp" + + * xmlElement: + * + * An XML Element declaration from a DTD. + + d xmlElementPtr s * based(######typedef######) + + d xmlElement ds based(xmlElementPtr) + d align qualified + d #private * Application data + d type like(xmlElementType) XML_ELEMENT_DECL + d name * const xmlChar * + d children like(xmlNodePtr) NULL + d last like(xmlNodePtr) NULL + d parent like(xmlDtdPtr) -> DTD + d next like(xmlNodePtr) next sibling link + d prev like(xmlNodePtr) previous sibling lnk + d doc like(xmlDocPtr) The containing doc + d etype like(xmlElementTypeVal) The type + d content like(xmlElementContentPtr) Allowed elem content + d attributes like(xmlAttributePtr) Declared attributes + d prefix * const xmlChar * + /if defined(LIBXML_REGEXP_ENABLED) + d contModel like(xmlRegexpPtr) Validating regexp + /else + d contModel * + /endif + + * XML_LOCAL_NAMESPACE: + * + * A namespace declaration node. + + * xmlNs: + * + * An XML namespace. + * Note that prefix == NULL is valid, it defines the default namespace + * within the subtree (until overridden). + * + * xmlNsType is unified with xmlElementType. + + d xmlNsType s based(######typedef######) enum + d like(xmlElementType) + + d xmlNsPtr s * based(######typedef######) + + d xmlNs ds based(xmlNsPtr) + d align qualified + d next like(xmlNsPtr) next Ns link + d type like(xmlNsType) Global or local + d href * const xmlChar * + d prefix * const xmlChar * + d #private * Application data + d context like(xmlDocPtr) normally an xmlDoc + + * xmlDtd: + * + * An XML DTD, as defined by parent link + d next like(xmlNodePtr) next sibling link + d prev like(xmlNodePtr) previous sibling lnk + d doc like(xmlDocPtr) The containing doc + d notations * notations hash table + d elements * elements hash table + d entities * entities hash table + d ExternalID * const xmlChar * + d SystemID * const xmlChar * + d pentities * param. ent. h table + + * xmlAttr: + * + * An attribute on an XML node. + + d xmlAttrPtr s * based(######typedef######) + + d xmlAttr ds based(xmlAttrPtr) + d align qualified + d #private * Application data + d type like(xmlElementType) XML_ATTRIBUTE_NODE + d name * const xmlChar * + d children like(xmlNodePtr) Property link value + d last like(xmlNodePtr) NULL + d parent like(xmlNodePtr) Child->parent link + d next like(xmlAttrPtr) next sibling link + d prev like(xmlAttrPtr) previous sibling lnk + d doc like(xmlDocPtr) The containing doc + d ns like(xmlNsPtr) Associated namespace + d atype like(xmlAttributeType) For validation + d psvi * Type/PSVI info + + * xmlID: + * + * An XML ID instance. + + d xmlIdPtr s * based(######typedef######) + + d xmlID ds based(xmlIdPtr) + d align qualified + d next like(xmlIdPtr) Next ID + d attr like(xmlAttrPtr) Attribute holding it + d name * const xmlChar * + d lineno like(xmlCint) Line # if not avail + d doc like(xmlDocPtr) Doc holding ID + + * xmlRef: + * + * An XML IDREF instance. + + d xmlRefPtr s * based(######typedef######) + + d xmlRef ds based(xmlRefPtr) + d align qualified + d next like(xmlRefPtr) Next Ref + d value * const xmlChar * + d attr like(xmlAttrPtr) Attribute holding it + d name * const xmlChar * + d lineno like(xmlCint) Line # if not avail + + * xmlNode: + * + * A node in an XML tree. + + d xmlNode ds based(xmlNodePtr) + d align qualified + d #private * Application data + d type like(xmlElementType) + d name * const xmlChar * + d children like(xmlNodePtr) Parent->children lnk + d last like(xmlNodePtr) Last child link + d parent like(xmlNodePtr) Child->parent link + d next like(xmlNodePtr) next sibling link + d prev like(xmlNodePtr) previous sibling lnk + d doc like(xmlDocPtr) The containing doc + d ns like(xmlNsPtr) Associated namespace + d content * xmlChar * + d properties like(xmlAttrPtr) Properties list + d nsDef like(xmlNsPtr) Node ns definitions + d psvi * Type/PSVI info + d line like(xmlCushort) + d extra like(xmlCushort) Data for XPath/XSLT + + * xmlDocProperty + * + * Set of properties of the document as found by the parser + * Some of them are linked to similary named xmlParserOption + + d xmlDocProperties... + d s based(######typedef######) + d like(xmlCenum) + d XML_DOC_WELLFORMED... + d c X'00000001' + d XML_DOC_NSVALID... + d c X'00000002' + d XML_DOC_OLD10 c X'00000004' + d XML_DOC_DTDVALID... + d c X'00000008' + d XML_DOC_XINCLUDE... + d c X'00000010' + d XML_DOC_USERBUILT... + d c X'00000020' + d XML_DOC_INTERNAL... + d c X'00000030' + d XML_DOC_HTML c X'00000080' + + * xmlDoc: + * + * An XML document. + + d xmlDoc ds based(xmlDocPtr) + d align qualified + d #private * Application data + d type like(xmlElementType) XML_DOCUMENT_NODE + d name * const xmlChar * + d children like(xmlNodePtr) The document tree + d last like(xmlNodePtr) Last child link + d parent like(xmlNodePtr) Child->parent link + d next like(xmlNodePtr) next sibling link + d prev like(xmlNodePtr) previous sibling lnk + d doc like(xmlDocPtr) Reference to itself + d compression like(xmlCint) zlib compression lev + d standalone like(xmlCint) + d intSubset like(xmlDtdPtr) Internal subset + d extSubset like(xmlDtdPtr) External subset + d oldns like(xmlNsPtr) Global namespace + d version * const xmlChar * + d encoding * const xmlChar * + d ids * IDs hash table + d refs * IDREFs hash table + d URL * const xmlChar * + d charset like(xmlCint) In-memory encoding + d dict * xmlDictPtr for names + d psvi * Type/PSVI ino + d parseFlags like(xmlCint) xmlParserOption's + d properties like(xmlCint) xmlDocProperties + + * xmlDOMWrapAcquireNsFunction: + * @ctxt: a DOM wrapper context + * @node: the context node (element or attribute) + * @nsName: the requested namespace name + * @nsPrefix: the requested namespace prefix + * + * A function called to acquire namespaces (xmlNs) from the wrapper. + * + * Returns an xmlNsPtr or NULL in case of an error. + + d xmlDOMWrapAcquireNsFunction... + d s * based(######typedef######) + d procptr + + * xmlDOMWrapCtxt: + * + * Context for DOM wrapper-operations. + + d xmlDOMWrapCtxtPtr... + d s * based(######typedef######) + + d xmlDOMWrapCtxt... + d ds based(xmlDOMWrapCtxtPtr) + d align qualified + d #private * void * + d type like(xmlCint) + d namespaceMap * void * + d getNsForNodeFunc... + d like(xmlDOMWrapAcquireNsFunction) + + + * Variables. + + * Some helper functions + + /undefine XML_TESTVAL + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_XPATH_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SCHEMAS_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_DEBUG_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_HTML_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SAX1_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_HTML_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_WRITER_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_DOCB_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlValidateNCName... + d pr extproc('xmlValidateNCName') + d like(xmlCint) + d value * value options(*string) const xmlChar * + d space value like(xmlCint) + + /undefine XML_TESTVAL + /endif + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SCHEMAS_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlValidateQName... + d pr extproc('xmlValidateQName') + d like(xmlCint) + d value * value options(*string) const xmlChar * + d space value like(xmlCint) + + d xmlValidateName... + d pr extproc('xmlValidateName') + d like(xmlCint) + d value * value options(*string) const xmlChar * + d space value like(xmlCint) + + d xmlValidateNMToken... + d pr extproc('xmlValidateNMToken') + d like(xmlCint) + d value * value options(*string) const xmlChar * + d space value like(xmlCint) + + /undefine XML_TESTVAL + /endif + + d xmlBuildQName pr * extproc('xmlBuildQName') xmlChar * + d ncname * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + d memory 65535 options(*varsize: *omit) xmlChar[] + d len value like(xmlCint) memory length + + d xmlSplitQName2 pr * extproc('xmlSplitQName2') xmlChar * + d name * value options(*string) const xmlChar * + d prefix * xmlChar * + + d xmlSplitQName3 pr * extproc('xmlSplitQName3') const xmlChar * + d name * value options(*string) const xmlChar * + d len like(xmlCint) + + * Handling Buffers, the old ones see @xmlBuf for the new ones. + + d xmlSetBufferAllocationScheme... + d pr extproc( + d 'xmlSetBufferAllocationScheme') + d scheme value + d like(xmlBufferAllocationScheme) + + d xmlGetBufferAllocationScheme... + d pr extproc( + d 'xmlGetBufferAllocationScheme') + d like(xmlBufferAllocationScheme) + + d xmlBufferCreate... + d pr extproc('xmlBufferCreate') + d like(xmlBufferPtr) + + d xmlBufferCreateSize... + d pr extproc('xmlBufferCreateSize') + d like(xmlBufferPtr) + d size value like(xmlCsize_t) + + d xmlBufferCreateStatic... + d pr extproc('xmlBufferCreateStatic') + d like(xmlBufferPtr) + d mem * value + d size value like(xmlCsize_t) + + d xmlBufferResize... + d pr extproc('xmlBufferResize') + d like(xmlCint) + d buf value like(xmlBufferPtr) + d size value like(xmlCsize_t) + + d xmlBufferFree pr extproc('xmlBufferFree') + d buf value like(xmlBufferPtr) + + d xmlBufferDump pr extproc('xmlBufferDump') + d like(xmlCint) + d file * value FILE * + d buf value like(xmlBufferPtr) + + d xmlBufferAdd pr extproc('xmlBufferAdd') + d like(xmlCint) + d buf value like(xmlBufferPtr) + d str * value options(*string) const xmlChar * + d len value like(xmlCint) str length + + d xmlBufferAddHead... + d pr extproc('xmlBufferAddHead') + d like(xmlCint) + d buf value like(xmlBufferPtr) + d str * value options(*string) const xmlChar * + d len value like(xmlCint) str length + + d xmlBufferCat pr extproc('xmlBufferCat') + d like(xmlCint) + d buf value like(xmlBufferPtr) + d str * value options(*string) const xmlChar * + + d xmlBufferCCat pr extproc('xmlBufferCCat') + d like(xmlCint) + d buf value like(xmlBufferPtr) + d str * value options(*string) const char * + + d xmlBufferShrink... + d pr extproc('xmlBufferShrink') + d like(xmlCint) + d buf value like(xmlBufferPtr) + d len value like(xmlCuint) + + d xmlBufferGrow pr extproc('xmlBufferGrow') + d like(xmlCint) + d buf value like(xmlBufferPtr) + d len value like(xmlCuint) + + d xmlBufferEmpty pr extproc('xmlBufferEmpty') + d buf value like(xmlBufferPtr) + + d xmlBufferContent... + d pr * extproc('xmlBufferContent') const xmlChar * + d buf value like(xmlBufferPtr) + + d xmlBufferDetach... + d pr * extproc('xmlBufferDetach') xmlChar * + d buf value like(xmlBufferPtr) + + d xmlBufferSetAllocationScheme... + d pr extproc( + d 'xmlBufferSetAllocationScheme') + d buf value like(xmlBufferPtr) + d scheme value + d like(xmlBufferAllocationScheme) + + d xmlBufferLength... + d pr extproc('xmlBufferLength') + d like(xmlCint) + d buf value like(xmlBufferPtr) + + * Creating/freeing new structures. + + d xmlCreateIntSubset... + d pr extproc('xmlCreateIntSubset') + d like(xmlDtdPtr) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + d ExternalID * value options(*string) const xmlChar * + d SystemlID * value options(*string) const xmlChar * + + d xmlNewDtd pr extproc('xmlNewDtd') + d like(xmlDtdPtr) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + d ExternalID * value options(*string) const xmlChar * + d SystemlID * value options(*string) const xmlChar * + + d xmlGetIntSubset... + d pr extproc('xmlGetIntSubset') + d like(xmlDtdPtr) + d doc value like(xmlDocPtr) + + d xmlFreeDtd pr extproc('xmlFreeDtd') + d cur value like(xmlDtdPtr) + + /if defined(LIBXML_LEGACY_ENABLED) + d xmlNewGlobalNs pr extproc('xmlNewGlobalNs') + d like(xmlNsPtr) + d doc value like(xmlDocPtr) + d href * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + /endif LIBXML_LEGACY_ENABLD + + d xmlNewNs pr extproc('xmlNewNs') + d like(xmlNsPtr) + d node value like(xmlNodePtr) + d href * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + + d xmlFreeNs pr extproc('xmlFreeNs') + d cur value like(xmlNsPtr) + + d xmlFreeNsList pr extproc('xmlFreeNsList') + d cur value like(xmlNsPtr) + + d xmlNewDoc pr extproc('xmlNewDoc') + d like(xmlDocPtr) + d version * value options(*string) const xmlChar * + + d xmlFreeDoc pr extproc('xmlFreeDoc') + d cur value like(xmlDocPtr) + + d xmlNewDocProp pr extproc('xmlNewDocProp') + d like(xmlAttrPtr) + d name * value options(*string) const xmlChar * + d value * value options(*string) const xmlChar * + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_HTML_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SCHEMAS_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlNewProp pr extproc('xmlNewProp') + d like(xmlAttrPtr) + d node value like(xmlNodePtr) + d name * value options(*string) const xmlChar * + d value * value options(*string) const xmlChar * + + /undefine XML_TESTVAL + /endif + + d xmlNewNsProp pr extproc('xmlNewNsProp') + d like(xmlAttrPtr) + d node value like(xmlNodePtr) + d ns value like(xmlNsPtr) + d name * value options(*string) const xmlChar * + d value * value options(*string) const xmlChar * + + d xmlNewNsPropEatName... + d pr extproc('xmlNewNsPropEatName') + d like(xmlAttrPtr) + d node value like(xmlNodePtr) + d ns value like(xmlNsPtr) + d name * value xmlChar * + d value * value options(*string) const xmlChar * + + d xmlFreePropList... + d pr extproc('xmlFreePropList') + d cur value like(xmlAttrPtr) + + d xmlFreeProp pr extproc('xmlFreeProp') + d cur value like(xmlAttrPtr) + + d xmlCopyProp pr extproc('xmlCopyProp') + d like(xmlAttrPtr) + d target value like(xmlNodePtr) + d cur value like(xmlAttrPtr) + + d xmlCopyPropList... + d pr extproc('xmlCopyPropList') + d like(xmlAttrPtr) + d target value like(xmlNodePtr) + d cur value like(xmlAttrPtr) + + /if defined(LIBXML_TREE_ENABLED) + d xmlCopyDtd pr extproc('xmlCopyDtd') + d like(xmlDtdPtr) + d dtd value like(xmlDtdPtr) + /endif LIBXML_TREE_ENABLED + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SCHEMAS_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlCopyDoc pr extproc('xmlCopyDoc') + d like(xmlDocPtr) + d doc value like(xmlDocPtr) + d recursive value like(xmlCint) + + /undefine XML_TESTVAL + /endif + + * Creating new nodes. + + d xmlNewDocNode pr extproc('xmlNewDocNode') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d ns value like(xmlNsPtr) + d name * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + d xmlNewDocNodeEatName... + d pr extproc('xmlNewDocNodeEatName') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d ns value like(xmlNsPtr) + d name * value xmlChar * + d content * value options(*string) const xmlChar * + + d xmlNewNode pr extproc('xmlNewNode') + d like(xmlNodePtr) + d ns value like(xmlNsPtr) + d name * value options(*string) const xmlChar * + + d xmlNewNodeEatName... + d pr extproc('xmlNewNodeEatName') + d like(xmlNodePtr) + d ns value like(xmlNsPtr) + d name * value xmlChar * + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SCHEMAS_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlNewChild pr extproc('xmlNewChild') + d like(xmlNodePtr) + d parent value like(xmlNodePtr) + d ns value like(xmlNsPtr) + d name * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + /undefine XML_TESTVAL + /endif + + d xmlNewDocText pr extproc('xmlNewDocText') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d content * value options(*string) const xmlChar * + + d xmlNewText pr extproc('xmlNewText') + d like(xmlNodePtr) + d content * value options(*string) const xmlChar * + + d xmlNewDocPI pr extproc('xmlNewDocPI') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + d xmlNewPI pr extproc('xmlNewPI') + d like(xmlNodePtr) + d name * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + d xmlNewDocTextLen... + d pr extproc('xmlNewDocTextLen') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d content * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlNewTextLen pr extproc('xmlNewTextLen') + d like(xmlNodePtr) + d content * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlNewDocComment... + d pr extproc('xmlNewDocComment') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d content * value options(*string) const xmlChar * + + d xmlNewComment pr extproc('xmlNewComment') + d like(xmlNodePtr) + d content * value options(*string) const xmlChar * + + d xmlNewCDataBlock... + d pr extproc('xmlNewCDataBlock') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d content * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlNewCharRef pr extproc('xmlNewCharRef') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + + d xmlNewReference... + d pr extproc('xmlNewReference') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + + d xmlCopyNode pr extproc('xmlCopyNode') + d like(xmlNodePtr) + d node value like(xmlNodePtr) + d recursive value like(xmlCint) + + d xmlDocCopyNode pr extproc('xmlDocCopyNode') + d like(xmlNodePtr) + d node value like(xmlNodePtr) + d doc value like(xmlDocPtr) + d recursive value like(xmlCint) + + d xmlDocCopyNodeList... + d pr extproc('xmlDocCopyNodeList') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d node value like(xmlNodePtr) + + d xmlCopyNodeList... + d pr extproc('xmlCopyNodeList') + d like(xmlNodePtr) + d node value like(xmlNodePtr) + + /if defined(LIBXML_TREE_ENABLED) + d xmlNewTextChild... + d pr extproc('xmlNewTextChild') + d like(xmlNodePtr) + d parent value like(xmlNodePtr) + d ns value like(xmlNsPtr) + d name * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + d xmlNewDocRawNode... + d pr extproc('xmlNewDocRawNode') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d ns value like(xmlNsPtr) + d name * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + d xmlNewDocFragment... + d pr extproc('xmlNewDocFragment') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + /endif LIBXML_TREE_ENABLED + + * Navigating. + + d xmlNewDocFragment... + d xmlGetLineNo pr extproc('xmlGetLineNo') + d like(xmlClong) + d node value like(xmlNodePtr) + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_DEBUG_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlGetNodePath pr * extproc('xmlGetNodePath') xmlChar * + d node value like(xmlNodePtr) + + /undefine XML_TESTVAL + /endif + + d xmlDocGetRootElement... + d pr extproc('xmlDocGetRootElement') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + + d xmlGetLastChild... + d pr extproc('xmlGetLastChild') + d like(xmlNodePtr) + d parent value like(xmlNodePtr) + + d xmlNodeIsText pr extproc('xmlNodeIsText') + d like(xmlCint) + d node value like(xmlNodePtr) + + d xmlIsBlankNode pr extproc('xmlIsBlankNode') + d like(xmlCint) + d node value like(xmlNodePtr) + + * Changing the structure. + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_WRITER_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlDocSetRootElement... + d pr extproc('xmlDocSetRootElement') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d root value like(xmlNodePtr) + + /undefine XML_TESTVAL + /endif + + /if defined(LIBXML_TREE_ENABLED) + d xmlNodeSetName pr extproc('xmlNodeSetName') + d node value like(xmlNodePtr) + d name * value options(*string) const xmlChar * + /endif LIBXML_TREE_ENABLED + + d xmlAddChild pr extproc('xmlAddChild') + d like(xmlNodePtr) + d parent value like(xmlNodePtr) + d cur value like(xmlNodePtr) + + d xmlAddChildList... + d pr extproc('xmlAddChildList') + d like(xmlNodePtr) + d parent value like(xmlNodePtr) + d cur value like(xmlNodePtr) + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_WRITER_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlReplaceNode pr extproc('xmlReplaceNode') + d like(xmlNodePtr) + d old value like(xmlNodePtr) + d cur value like(xmlNodePtr) + + /undefine XML_TESTVAL + /endif + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_HTML_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SCHEMAS_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlAddPrevSibling... + d pr extproc('xmlAddPrevSibling') + d like(xmlNodePtr) + d cur value like(xmlNodePtr) + d elem value like(xmlNodePtr) + + /undefine XML_TESTVAL + /endif + + d xmlAddSibling pr extproc('xmlAddSibling') + d like(xmlNodePtr) + d cur value like(xmlNodePtr) + d elem value like(xmlNodePtr) + + d xmlAddNextSibling... + d pr extproc('xmlAddNextSibling') + d like(xmlNodePtr) + d cur value like(xmlNodePtr) + d elem value like(xmlNodePtr) + + d xmlUnlinkNode pr extproc('xmlUnlinkNode') + d cur value like(xmlNodePtr) + + d xmlTextMerge pr extproc('xmlTextMerge') + d like(xmlNodePtr) + d first value like(xmlNodePtr) + d second value like(xmlNodePtr) + + d xmlTextConcat pr extproc('xmlTextConcat') + d like(xmlCint) + d node value like(xmlNodePtr) + d content * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlFreeNodeList... + d pr extproc('xmlFreeNodeList') + d cur value like(xmlNodePtr) + + d xmlFreeNode pr extproc('xmlFreeNode') + d cur value like(xmlNodePtr) + + d xmlSetTreeDoc pr extproc('xmlSetTreeDoc') + d tree value like(xmlNodePtr) + d doc value like(xmlDocPtr) + + d xmlSetListDoc pr extproc('xmlSetListDoc') + d list value like(xmlNodePtr) + d doc value like(xmlDocPtr) + + * Namespaces. + + d xmlSearchNs pr extproc('xmlSearchNs') + d like(xmlNsPtr) + d doc value like(xmlDocPtr) + d node value like(xmlNodePtr) + d nameSpace * value options(*string) const xmlChar * + + d xmlSearchNsByHref... + d pr extproc('xmlSearchNsByHref') + d like(xmlNsPtr) + d doc value like(xmlDocPtr) + d node value like(xmlNodePtr) + d href * value options(*string) const xmlChar * + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_XPATH_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SCHEMAS_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlGetNsList pr * extproc('xmlGetNsList') xmlNsPtr * + d doc value like(xmlDocPtr) + d node value like(xmlNodePtr) + + /undefine XML_TESTVAL + /endif + + d xmlSetNs pr extproc('xmlSetNs') + d node value like(xmlNodePtr) + d ns value like(xmlNsPtr) + + d xmlCopyNamespace... + d pr extproc('xmlCopyNamespace') + d like(xmlNsPtr) + d cur value like(xmlNsPtr) + + d xmlCopyNamespaceList... + d pr extproc('xmlCopyNamespaceList') + d like(xmlNsPtr) + d cur value like(xmlNsPtr) + + * Changing the content. + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_XINCLUDE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SCHEMAS_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_HTML_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlSetProp pr extproc('xmlSetProp') + d like(xmlAttrPtr) + d node value like(xmlNodePtr) + d name * value options(*string) const xmlChar * + d value * value options(*string) const xmlChar * + + d xmlSetNsProp pr extproc('xmlSetNsProp') + d like(xmlAttrPtr) + d node value like(xmlNodePtr) + d ns value like(xmlNsPtr) + d name * value options(*string) const xmlChar * + d value * value options(*string) const xmlChar * + + /undefine XML_TESTVAL + /endif + + d xmlGetNoNsProp pr * extproc('xmlGetNoNsProp') xmlChar * + d node value like(xmlNodePtr) + d name * value options(*string) const xmlChar * + + d xmlGetProp pr * extproc('xmlGetProp') xmlChar * + d node value like(xmlNodePtr) + d name * value options(*string) const xmlChar * + + d xmlHasProp pr extproc('xmlHasProp') + d like(xmlAttrPtr) + d node value like(xmlNodePtr) + d name * value options(*string) const xmlChar * + + d xmlHasNsProp pr extproc('xmlHasNsProp') + d like(xmlAttrPtr) + d node value like(xmlNodePtr) + d name * value options(*string) const xmlChar * + d nameSpace * value options(*string) const xmlChar * + + d xmlGetNsProp pr * extproc('xmlGetNsProp') xmlChar * + d node value like(xmlNodePtr) + d name * value options(*string) const xmlChar * + d nameSpace * value options(*string) const xmlChar * + + d xmlStringGetNodeList... + d pr extproc('xmlStringGetNodeList') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d value * value options(*string) const xmlChar * + + d xmlStringLenGetNodeList... + d pr extproc('xmlStringLenGetNodeList') + d like(xmlNodePtr) + d doc value like(xmlDocPtr) + d value * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlNodeListGetString... + d pr * extproc('xmlNodeListGetString') xmlChar * + d doc value like(xmlDocPtr) + d list value like(xmlNodePtr) + d inLine value like(xmlCint) + + /if defined(LIBXML_TREE_ENABLED) + d xmlNodeListGetRawString... + d pr * extproc('xmlNodeListGetRawString') xmlChar * + d doc value like(xmlDocPtr) + d list value like(xmlNodePtr) + d inLine value like(xmlCint) + /endif LIBXML_TREE_ENABLED + + d xmlNodeSetContent... + d pr extproc('xmlNodeSetContent') + d cur value like(xmlNodePtr) + d content * value options(*string) const xmlChar * + + /if defined(LIBXML_TREE_ENABLED) + d xmlNodeSetContentLen... + d pr extproc('xmlNodeSetContentLen') + d cur value like(xmlNodePtr) + d content * value options(*string) const xmlChar * + d len value like(xmlCint) + /endif LIBXML_TREE_ENABLED + + d xmlNodeAddContent... + d pr extproc('xmlNodeAddContent') + d cur value like(xmlNodePtr) + d content * value options(*string) const xmlChar * + + d xmlNodeAddContentLen... + d pr extproc('xmlNodeAddContentLen') + d cur value like(xmlNodePtr) + d content * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlNodeGetContent... + d pr * extproc('xmlNodeGetContent') xmlChar * + d cur value like(xmlNodePtr) + + d xmlNodeBufGetContent... + d pr extproc('xmlNodeBufGetContent') + d like(xmlCint) + d buffer value like(xmlBufferPtr) + d cur value like(xmlNodePtr) + + d xmlBufGetNodeContent... + d pr extproc('xmlBufGetNodeContent') + d like(xmlCint) + d buf value like(xmlBufPtr) + d cur value like(xmlNodePtr) + + d xmlNodeGetLang pr * extproc('xmlNodeGetLang') xmlChar * + d cur value like(xmlNodePtr) + + d xmlNodeGetSpacePreserve... + d pr extproc('xmlNodeGetSpacePreserve') + d like(xmlCint) + d cur value like(xmlNodePtr) + + /if defined(LIBXML_TREE_ENABLED) + d xmlNodeSetLang pr extproc('xmlNodeSetLang') + d cur value like(xmlNodePtr) + d lang * value options(*string) const xmlChar * + + d xmlNodeSetSpacePreserve... + d pr extproc('xmlNodeSetSpacePreserve') + d cur value like(xmlNodePtr) + d val value like(xmlCint) + /endif LIBXML_TREE_ENABLED + + d xmlNodeGetBase pr * extproc('xmlNodeGetBase') xmlChar * + d doc value like(xmlDocPtr) + d cur value like(xmlNodePtr) + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_XINCLUDE_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlNodeSetBase pr extproc('xmlNodeSetBase') + d node value like(xmlNodePtr) + d uri * value options(*string) const xmlChar * + + /undefine XML_TESTVAL + /endif + + * Removing content. + + d xmlRemoveProp pr extproc('xmlRemoveProp') + d like(xmlCint) + d cur value like(xmlAttrPtr) + + /if defined(LIBXML_TREE_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SCHEMAS_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlUnsetNsProp pr extproc('xmlUnsetNsProp') + d like(xmlCint) + d node value like(xmlNodePtr) + d ns value like(xmlNsPtr) + d name * value options(*string) const xmlChar * + + d xmlUnsetProp pr extproc('xmlUnsetProp') + d like(xmlCint) + d node value like(xmlNodePtr) + d name * value options(*string) const xmlChar * + + /undefine XML_TESTVAL + /endif + + * Internal, don't use. + + d xmlBufferWriteCharacter... Warning: renamed + d pr extproc('xmlBufferWriteCHAR') + d buf value like(xmlBufferPtr) + d string * value options(*string) const xmlChar * + + d xmlBufferWriteChar... + d pr extproc('xmlBufferWriteChar') + d buf value like(xmlBufferPtr) + d string * value options(*string) const xmlChar * + + d xmlBufferWriteQuotedString... + d pr extproc('xmlBufferWriteQuotedString') + d buf value like(xmlBufferPtr) + d string * value options(*string) const xmlChar * + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlAttrSerializeTxtContent... + d pr extproc('xmlAttrSerializeTxtContent') + d buf value like(xmlBufferPtr) + d attr value like(xmlAttrPtr) + d string * value options(*string) const xmlChar * + /endif LIBXML_OUTPUT_ENABLD + + /if defined(LIBXML_TREE_ENABLED) + + * Namespace handling. + + d xmlReconciliateNs... + d pr extproc('xmlReconciliateNs') + d like(xmlCint) + d doc value like(xmlDocPtr) + d tree value like(xmlNodePtr) + /endif + + /if defined(LIBXML_OUTPUT_ENABLED) + + * Saving. + + d xmlDocDumpFormatMemory... + d pr extproc('xmlDocDumpFormatMemory') + d cur value like(xmlDocPtr) + d mem * xmlChar * (*) + d size like(xmlCint) + d format value like(xmlCint) + + d xmlDocDumpMemory... + d pr extproc('xmlDocDumpMemory') + d cur value like(xmlDocPtr) + d mem * xmlChar * (*) + d size like(xmlCint) + + d xmlDocDumpMemoryEnc... + d pr extproc('xmlDocDumpMemoryEnc') + d out_doc value like(xmlDocPtr) + d doc_txt_ptr * xmlChar * (*) + d doc_txt_len like(xmlCint) + d txt_encoding * value options(*string) const char * + + d xmlDocDumpFormatMemoryEnc... + d pr extproc('xmlDocDumpFormatMemoryEnc') + d out_doc value like(xmlDocPtr) + d doc_txt_ptr * xmlChar * (*) + d doc_txt_len like(xmlCint) + d txt_encoding * value options(*string) const char * + d format value like(xmlCint) + + d xmlDocFormatDump... + d pr extproc('xmlDocFormatDump') + d like(xmlCint) + d f * value FILE * + d cur value like(xmlDocPtr) + d format value like(xmlCint) + + d xmlDocDump pr extproc('xmlDocDump') + d like(xmlCint) + d f * value FILE * + d cur value like(xmlDocPtr) + + d xmlElemDump pr extproc('xmlElemDump') + d f * value FILE * + d doc value like(xmlDocPtr) + d cur value like(xmlNodePtr) + + d xmlSaveFile pr extproc('xmlSaveFile') + d like(xmlCint) + d filename * value options(*string) const char * + d cur value like(xmlDocPtr) + + d xmlSaveFormatFile... + d pr extproc('xmlSaveFormatFile') + d like(xmlCint) + d filename * value options(*string) const char * + d cur value like(xmlDocPtr) + d format value like(xmlCint) + + d xmlBufNodeDump pr extproc('xmlBufNodeDump') + d like(xmlCsize_t) + d buf value like(xmlBufPtr) + d doc value like(xmlDocPtr) + d cur value like(xmlNodePtr) + d level value like(xmlCint) + d format value like(xmlCint) + + d xmlNodeDump pr extproc('xmlNodeDump') + d like(xmlCint) + d buf value like(xmlBufferPtr) + d doc value like(xmlDocPtr) + d cur value like(xmlNodePtr) + d level value like(xmlCint) + d format value like(xmlCint) + + d xmlSaveFileTo pr extproc('xmlSaveFileTo') + d like(xmlCint) + d buf value like(xmlOutputBufferPtr) + d cur value like(xmlDocPtr) + d encoding * value options(*string) const char * + + d xmlSaveFormatFileTo... + d pr extproc('xmlSaveFormatFileTo') + d like(xmlCint) + d buf value like(xmlOutputBufferPtr) + d cur value like(xmlDocPtr) + d encoding * value options(*string) const char * + d format value like(xmlCint) + + d xmlNodeDumpOutput... + d pr extproc('xmlNodeDumpOutput') + d buf value like(xmlOutputBufferPtr) + d doc value like(xmlDocPtr) + d cur value like(xmlNodePtr) + d level value like(xmlCint) + d format value like(xmlCint) + d encoding * value options(*string) const char * + + d xmlSaveFormatFileEnc... + d pr extproc('xmlSaveFormatFileEnc') + d like(xmlCint) + d filename * value options(*string) const char * + d cur value like(xmlDocPtr) + d encoding * value options(*string) const char * + d format value like(xmlCint) + + d xmlSaveFileEnc pr extproc('xmlSaveFileEnc') + d like(xmlCint) + d filename * value options(*string) const char * + d cur value like(xmlDocPtr) + d encoding * value options(*string) const char * + /endif LIBXML_OUTPUT_ENABLD + + * XHTML + + d xmlIsXHTML pr extproc('xmlIsXHTML') + d like(xmlCint) + d systemID * value options(*string) const xmlChar * + d publicID * value options(*string) const xmlChar * + + * Compression. + + d xmlGetDocCompressMode... + d pr extproc('xmlGetDocCompressMode') + d like(xmlCint) + d doc value like(xmlDocPtr) + + d xmlSetDocCompressMode... + d pr extproc('xmlSetDocCompressMode') + d doc value like(xmlDocPtr) + d mode value like(xmlCint) + + d xmlGetCompressMode... + d pr extproc('xmlGetCompressMode') + d like(xmlCint) + + d xmlSetCompressMode... + d pr extproc('xmlSetCompressMode') + d mode value like(xmlCint) + + * DOM-wrapper helper functions. + + d xmlDOMWrapNewCtxt... + d pr extproc('xmlDOMWrapNewCtxt') + d like(xmlDOMWrapCtxtPtr) + + d xmlDOMWrapFreeCtxt... + d pr extproc('xmlDOMWrapFreeCtxt') + d ctxt value like(xmlDOMWrapCtxtPtr) + + d xmlDOMWrapReconcileNamespaces... + d pr extproc( + d 'xmlDOMWrapReconcileNamespaces') + d like(xmlCint) + d ctxt value like(xmlDOMWrapCtxtPtr) + d elem value like(xmlNodePtr) + d options value like(xmlCint) + + d xmlDOMWrapAdoptNode... + d pr extproc('xmlDOMWrapAdoptNode') + d like(xmlCint) + d ctxt value like(xmlDOMWrapCtxtPtr) + d sourceDoc value like(xmlDocPtr) + d node value like(xmlNodePtr) + d destDoc value like(xmlDocPtr) + d destParent value like(xmlNodePtr) + d options value like(xmlCint) + + d xmlDOMWrapRemoveNode... + d pr extproc('xmlDOMWrapRemoveNode') + d like(xmlCint) + d ctxt value like(xmlDOMWrapCtxtPtr) + d doc value like(xmlDocPtr) + d node value like(xmlNodePtr) + d options value like(xmlCint) + + d xmlDOMWrapCloneNode... + d pr extproc('xmlDOMWrapCloneNode') + d like(xmlCint) + d ctxt value like(xmlDOMWrapCtxtPtr) + d sourceDoc value like(xmlDocPtr) + d node value like(xmlNodePtr) + d clonedNode like(xmlNodePtr) + d destDoc value like(xmlDocPtr) + d destParent value like(xmlNodePtr) + d options value like(xmlCint) + + /if defined(LIBXML_TREE_ENABLED) + + * 5 interfaces from DOM ElementTraversal, but different in entities + * traversal. + + d xmlChildElementCount... + d pr extproc('xmlChildElementCount') + d like(xmlClong) + d parent value like(xmlNodePtr) + + d xmlNextElementSibling... + d pr extproc('xmlNextElementSibling') + d like(xmlNodePtr) + d node value like(xmlNodePtr) + + d xmlFirstElementChild... + d pr extproc('xmlFirstElementChild') + d like(xmlNodePtr) + d parent value like(xmlNodePtr) + + d xmlLastElementChild... + d pr extproc('xmlLastElementChild') + d like(xmlNodePtr) + d parent value like(xmlNodePtr) + + d xmlPreviousElementSibling... + d pr extproc('xmlPreviousElementSibling') + d like(xmlNodePtr) + d node value like(xmlNodePtr) + /endif + + /if not defined(XML_PARSER_H__) + /include "libxmlrpg/xmlmemory" + /endif + + /endif XML_TREE_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/uri.rpgle b/libxml2-2.9.10/os400/libxmlrpg/uri.rpgle new file mode 100644 index 0000000..de03392 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/uri.rpgle @@ -0,0 +1,103 @@ + * Summary: library of generic URI related routines + * Description: library of generic URI related routines + * Implements RFC 2396 + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_URI_H__) + /define XML_URI_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + + * xmlURI: + * + * A parsed URI reference. This is a struct containing the various fields + * as described in RFC 2396 but separated for further processing. + * + * Note: query is a deprecated field which is incorrectly unescaped. + * query_raw takes precedence over query if the former is set. + * See: http://mail.gnome.org/archives/xml/2007-April/thread.html#00127 + + d xmlURIPtr s * based(######typedef######) + + d xmlURI ds based(xmlURIPtr) + d align qualified + d scheme * char * + d opaque * char * + d authority * char * + d server * char * + d user * char * + d port like(xmlCint) + d path * char * + d query * char * + d fragment * char * + d cleanup like(xmlCint) + d query_raw * char * + + d xmlCreateURI pr extproc('xmlCreateURI') + d like(xmlURIPtr) + + d xmlBuildURI pr * extproc('xmlBuildURI') xmlChar * + d URI * value options(*string) const xmlChar * + d base * value options(*string) const xmlChar * + + d xmlBuildRelativeURI... + d pr * extproc('xmlBuildRelativeURI') xmlChar * + d URI * value options(*string) const xmlChar * + d base * value options(*string) const xmlChar * + + d xmlParseURI pr extproc('xmlParseURI') + d like(xmlURIPtr) + d str * value options(*string) const char * + + d xmlParseURIRaw pr extproc('xmlParseURIRaw') + d like(xmlURIPtr) + d str * value options(*string) const char * + d raw value like(xmlCint) + + d xmlParseURIReference... + d pr extproc('xmlParseURIReference') + d like(xmlCint) + d uri value like(xmlURIPtr) + d str * value options(*string) const char * + + d xmlSaveUri pr * extproc('xmlSaveUri') xmlChar * + d uri value like(xmlURIPtr) + + d xmlPrintURI pr extproc('xmlPrintURI') + d stream * value FILE * + d uri value like(xmlURIPtr) + + d xmlURIEscapeStr... + d pr * extproc('xmlURIEscapeStr') xmlChar * + d str * value options(*string) const xmlChar * + d list * value options(*string) const xmlChar * + + d xmlURIUnescapeString... + d pr * extproc('xmlURIUnescapeString') char * + d str * value options(*string) const char * + d len value like(xmlCint) + d target * value options(*string) char * + + d xmlNormalizeURIPath... + d pr extproc('xmlNormalizeURIPath') + d like(xmlCint) + d path * value options(*string) char * + + d xmlURIEscape pr * extproc('xmlURIEscape') xmlChar * + d str * value options(*string) const xmlChar * + + d xmlFreeURI pr extproc('xmlFreeURI') + d uri value like(xmlURIPtr) + + d xmlCanonicPath pr * extproc('xmlCanonicPath') xmlChar * + d path * value options(*string) const xmlChar * + + d xmlPathToURI pr * extproc('xmlPathToURI') xmlChar * + d path * value options(*string) const xmlChar * + + /endif XML_URI_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/valid.rpgle b/libxml2-2.9.10/os400/libxmlrpg/valid.rpgle new file mode 100644 index 0000000..32ebbd3 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/valid.rpgle @@ -0,0 +1,605 @@ + * Summary: The DTD validation + * Description: API for the DTD handling and the validity checking + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_VALID_H__) + /define XML_VALID_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/xmlerror" + /include "libxmlrpg/tree" + /include "libxmlrpg/list" + /include "libxmlrpg/xmlautomata" + /include "libxmlrpg/xmlregexp" + + * Validation state added for non-determinist content model. + + d xmlValidStatePtr... + d s * based(######typedef######) + + * xmlValidityErrorFunc: + * @ctx: usually an xmlValidCtxtPtr to a validity error context, + * but comes from ctxt->userData (which normally contains such + * a pointer); ctxt->userData can be changed by the user. + * @msg: the string to format *printf like vararg + * @...: remaining arguments to the format + * + * Callback called when a validity error is found. This is a message + * oriented function similar to an *printf function. + + d xmlValidityErrorFunc... + d s * based(######typedef######) + d procptr + + * xmlValidityWarningFunc: + * @ctx: usually an xmlValidCtxtPtr to a validity error context, + * but comes from ctxt->userData (which normally contains such + * a pointer); ctxt->userData can be changed by the user. + * @msg: the string to format *printf like vararg + * @...: remaining arguments to the format + * + * Callback called when a validity warning is found. This is a message + * oriented function similar to an *printf function. + + d xmlValidityWarningFunc... + d s * based(######typedef######) + d procptr + + * xmlValidCtxt: + * An xmlValidCtxt is used for error reporting when validating. + + d xmlValidCtxtPtr... + d s * based(######typedef######) + + d xmlValidCtxt ds based(xmlValidCtxtPtr) + d align qualified + d userdata * void * + d error like(xmlValidityErrorFunc) Error callback + d warning like(xmlValidityWarningFunc) Warning callback + * + * Node analysis stack used when validating within entities + * + d node like(xmlNodePtr) Current parsed Node + d nodeNr like(xmlCint) Parsing stack depth + d nodeMax like(xmlCint) Max stack depth + d nodeTab * xmlNodePtr * + * + d finishDtd like(xmlCuint) + d doc like(xmlDocPtr) The document + d valid like(xmlCint) Temp check result + * + * state state used for non-determinist content validation + * + d vstate * xmlValidState * + d vstateNr like(xmlCint) Validat. stack depth + d vstateMax like(xmlCint) Max stack depth + d vstateTab * xmlValidState * + * + /if defined(LIBXML_REGEXP_ENABLED) + d am like(xmlAutomataPtr) The automata + d state like(xmlAutomataStatePtr) Automata build state + /else + d am * + d state * + /endif + + * ALL notation declarations are stored in a table. + * There is one table per DTD. + + d xmlNotationTablePtr... + d s * based(######typedef######) + + * ALL element declarations are stored in a table. + * There is one table per DTD. + + d xmlElementTablePtr... + d s * based(######typedef######) + + * ALL attribute declarations are stored in a table. + * There is one table per DTD. + + d xmlAttributeTablePtr... + d s * based(######typedef######) + + * ALL IDs attributes are stored in a table. + * There is one table per document. + + d xmlIDTablePtr s * based(######typedef######) + + * ALL Refs attributes are stored in a table. + * There is one table per document. + + d xmlRefTablePtr s * based(######typedef######) + + * Notation + + d xmlAddNotationDecl... + d pr extproc('xmlAddNotationDecl') + d like(xmlNotationPtr) + d ctxt value like(xmlValidCtxtPtr) + d dtd value like(xmlDtdPtr) + d name * value options(*string) const xmlChar * + d PublicID * value options(*string) const xmlChar * + d SystemID * value options(*string) const xmlChar * + + /if defined(LIBXML_TREE_ENABLED) + d xmlCopyNotationTable... + d pr extproc('xmlCopyNotationTable') + d like(xmlNotationPtr) + d table value like(xmlNotationTablePtr) + /endif LIBXML_TREE_ENABLED + + d xmlFreeNotationTable... + d pr extproc('xmlFreeNotationTable') + d table value like(xmlNotationTablePtr) + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlDumpNotationDecl... + d pr extproc('xmlDumpNotationDecl') + d buf value like(xmlBufferPtr) + d nota value like(xmlNotationPtr) + + d xmlDumpNotationTable... + d pr extproc('xmlDumpNotationTable') + d buf value like(xmlBufferPtr) + d table value like(xmlNotationTablePtr) + /endif LIBXML_OUTPUT_ENABLD + + * Element Content + * the non Doc version are being deprecated + + d xmlNewElementContent... + d pr extproc('xmlNewElementContent') + d like(xmlElementContentPtr) + d name * value const xmlChar * + d type value like(xmlElementContentType) + + d xmlCopyElementContent... + d pr extproc('xmlCopyElementContent') + d like(xmlElementContentPtr) + d content value like(xmlElementContentPtr) + + d xmlFreeElementContent... + d pr extproc('xmlFreeElementContent') + d cur value like(xmlElementContentPtr) + + * the new versions with doc argument + + d xmlNewDocElementContent... + d pr extproc('xmlNewDocElementContent') + d like(xmlElementContentPtr) + d doc value like(xmlDocPtr) + d name * value const xmlChar * + d type value like(xmlElementContentType) + + d xmlCopyDocElementContent... + d pr extproc('xmlCopyDocElementContent') + d like(xmlElementContentPtr) + d doc value like(xmlDocPtr) + d content value like(xmlElementContentPtr) + + d xmlFreeDocElementContent... + d pr extproc('xmlFreeDocElementContent') + d doc value like(xmlDocPtr) + d cur value like(xmlElementContentPtr) + + d xmlSnprintfElementContent... + d pr extproc('xmlSnprintfElementContent') + d buf 65535 options(*varsize) + d size value like(xmlCint) + d content value like(xmlElementContentPtr) + d englob value like(xmlCint) + + /if defined(LIBXML_OUTPUT_ENABLED) + * DEPRECATED + d xmlSprintfElementContent... + d pr extproc('xmlSprintfElementContent') + d buf 65535 options(*varsize) + d content value like(xmlElementContentPtr) + d englob value like(xmlCint) + /endif LIBXML_OUTPUT_ENABLD + + * DEPRECATED + + * Element + + d xmlAddElementDecl... + d pr extproc('xmlAddElementDecl') + d like(xmlElementPtr) + d ctxt value like(xmlValidCtxtPtr) + d dtd value like(xmlDtdPtr) + d name * value options(*string) const xmlChar * + d type value like(xmlElementTypeVal) + d content value like(xmlElementContentPtr) + + /if defined(LIBXML_TREE_ENABLED) + d xmlCopyElementTable... + d pr extproc('xmlCopyElementTable') + d like(xmlElementTablePtr) + d table value like(xmlElementTablePtr) + /endif LIBXML_TREE_ENABLED + + d xmlFreeElementTable... + d pr extproc('xmlFreeElementTable') + d table value like(xmlElementTablePtr) + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlDumpElementTable... + d pr extproc('xmlDumpElementTable') + d buf value like(xmlBufferPtr) + d table value like(xmlElementTablePtr) + + d xmlDumpElementDecl... + d pr extproc('xmlDumpElementDecl') + d buf value like(xmlBufferPtr) + d elem value like(xmlElementPtr) + /endif LIBXML_OUTPUT_ENABLD + + * Enumeration + + d xmlCreateEnumeration... + d pr extproc('xmlCreateEnumeration') + d like(xmlEnumerationPtr) + d name * value options(*string) const xmlChar * + + d xmlFreeEnumeration... + d pr extproc('xmlFreeEnumeration') + d cur value like(xmlEnumerationPtr) + + /if defined(LIBXML_TREE_ENABLED) + d xmlCopyEnumeration... + d pr extproc('xmlCopyEnumeration') + d like(xmlEnumerationPtr) + d cur value like(xmlEnumerationPtr) + /endif LIBXML_TREE_ENABLED + + * Attribute + + d xmlAddAttributeDecl... + d pr extproc('xmlAddAttributeDecl') + d like(xmlAttributePtr) + d ctxt value like(xmlValidCtxtPtr) + d dtd value like(xmlDtdPtr) + d elem * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + d ns * value options(*string) const xmlChar * + d type value like(xmlAttributeType) + d def value like(xmlAttributeDefault) + d defaultValue * value options(*string) const xmlChar * + d tree value like(xmlEnumerationPtr) + + /if defined(LIBXML_TREE_ENABLED) + d xmlCopyAttributeTable... + d pr extproc('xmlCopyAttributeTable') + d like(xmlAttributeTablePtr) + d table value like(xmlAttributeTablePtr) + /endif LIBXML_TREE_ENABLED + + d xmlFreeAttributeTable... + d pr extproc('xmlFreeAttributeTable') + d table value like(xmlAttributeTablePtr) + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlDumpAttributeTable... + d pr extproc('xmlDumpAttributeTable') + d buf value like(xmlBufferPtr) + d table value like(xmlAttributeTablePtr) + + d xmlDumpAttributeDecl... + d pr extproc('xmlDumpAttributeDecl') + d buf value like(xmlBufferPtr) + d attr value like(xmlAttributePtr) + /endif LIBXML_OUTPUT_ENABLD + + * IDs + + d xmlAddID pr extproc('xmlAddID') + d like(xmlIDPtr) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d value * value options(*string) const xmlChar * + d attr value like(xmlAttrPtr) + + d xmlFreeIdTable pr extproc('xmlFreeIDTable') + d table value like(xmlIDTablePtr) + + d xmlGetID pr extproc('xmlGetID') + d like(xmlAttrPtr) + d doc value like(xmlDocPtr) + d ID * value options(*string) const xmlChar * + + d xmlIsID pr extproc('xmlIsID') + d like(xmlCint) + d doc value like(xmlDocPtr) + d node value like(xmlNodePtr) + d attr value like(xmlAttrPtr) + + d xmlRemoveID pr extproc('xmlRemoveID') + d like(xmlCint) + d doc value like(xmlDocPtr) + d attr value like(xmlAttrPtr) + + * IDREFs + + d xmlAddRef pr extproc('xmlAddRef') + d like(xmlRefPtr) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d value * value options(*string) const xmlChar * + d attr value like(xmlAttrPtr) + + d xmlFreeRefTable... + d pr extproc('xmlFreeRefTable') + d table value like(xmlRefTablePtr) + + d xmlIsRef pr extproc('xmlIsRef') + d like(xmlCint) + d doc value like(xmlDocPtr) + d node value like(xmlNodePtr) + d attr value like(xmlAttrPtr) + + d xmlRemoveRef pr extproc('xmlRemoveRef') + d like(xmlCint) + d doc value like(xmlDocPtr) + d attr value like(xmlAttrPtr) + + d xmlGetRefs pr extproc('xmlGetRefs') + d like(xmlListPtr) + d doc value like(xmlDocPtr) + d ID * value options(*string) const xmlChar * + + * The public function calls related to validity checking. + + /if defined(LIBXML_VALID_ENABLED) + * Allocate/Release Validation Contexts + + d xmlNewValidCtxt... + d pr extproc('xmlNewValidCtxt') + d like(xmlValidCtxtPtr) + + d xmlFreeValidCtxt... + d pr extproc('xmlFreeValidCtxt') + d ctxt value like(xmlValidCtxtPtr) + + d xmlValidateRoot... + d pr extproc('xmlValidateRoot') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + + d xmlValidateElementDecl... + d pr extproc('xmlValidateElementDecl') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d elem value like(xmlElementPtr) + + d xmlValidNormalizeAttributeValue... + d pr * extproc( xmlChar * + d 'xmlValidNormalizeAttributeValue') + d doc value like(xmlDocPtr) + d elem value like(xmlNodePtr) + d name * value options(*string) const xmlChar * + d value * value options(*string) const xmlChar * + + d xmlValidCtxtNormalizeAttributeValue... + d pr * extproc('xmlValidCtxt+ xmlChar * + d NormalizeAttributeValue') + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d elem value like(xmlNodePtr) + d name * value options(*string) const xmlChar * + d value * value options(*string) const xmlChar * + + d xmlValidateAttributeDecl... + d pr extproc('xmlValidateAttributeDecl') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d attr value like(xmlAttributePtr) + + d xmlValidateAttributeValue... + d pr extproc('xmlValidateAttributeValue') + d like(xmlCint) + d type value like(xmlAttributeType) + d value * value options(*string) const xmlChar * + + d xmlValidateNotationDecl... + d pr extproc('xmlValidateNotationDecl') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d nota value like(xmlNotationPtr) + + d xmlValidateDtd pr extproc('xmlValidateDtd') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d dtd value like(xmlDtdPtr) + + d xmlValidateDtdFinal... + d pr extproc('xmlValidateDtdFinal') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + + d xmlValidateDocument... + d pr extproc('xmlValidateDocument') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + + d xmlValidateElement... + d pr extproc('xmlValidateElement') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d elem value like(xmlNodePtr) + + d xmlValidateOneElement... + d pr extproc('xmlValidateOneElement') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d elem value like(xmlNodePtr) + + d xmlValidateOneAttribute... + d pr extproc('xmlValidateOneAttribute') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d elem value like(xmlNodePtr) + d attr value like(xmlAttrPtr) + d value * value options(*string) const xmlChar * + + d xmlValidateOneNamespace... + d pr extproc('xmlValidateOneNamespace') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d elem value like(xmlNodePtr) + d prefix * value options(*string) const xmlChar * + d ns value like(xmlNsPtr) + d value * value options(*string) const xmlChar * + + d xmlValidateDocumentFinal... + d pr extproc('xmlValidateDocumentFinal') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + /endif LIBXML_VALID_ENABLED + + /undefine XML_TESTVAL + /if defined(LIBXML_VALID_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SCHEMAS_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlValidateNotationUse... + d pr extproc('xmlValidateNotationUse') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d notationName * value options(*string) const xmlChar * + + /undefine XML_TESTVAL + /endif + + d xmlIsMixedElement... + d pr extproc('xmlIsMixedElement') + d like(xmlCint) + d doc value like(xmlDocPtr) + d name * value options(*string) const xmlChar * + + d xmlGetDtdAttrDesc... + d pr extproc('xmlGetDtdAttrDesc') + d like(xmlAttributePtr) + d dtd value like(xmlDtdPtr) + d elem * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + + d xmlGetDtdQAttrDesc... + d pr extproc('xmlGetDtdQAttrDesc') + d like(xmlAttributePtr) + d dtd value like(xmlDtdPtr) + d elem * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + + d xmlGetDtdNotationDesc... + d pr extproc('xmlGetDtdNotationDesc') + d like(xmlNotationPtr) + d dtd value like(xmlDtdPtr) + d name * value options(*string) const xmlChar * + + d xmlGetDtdQElementDesc... + d pr extproc('xmlGetDtdQElementDesc') + d like(xmlElementPtr) + d dtd value like(xmlDtdPtr) + d name * value options(*string) const xmlChar * + d prefix * value options(*string) const xmlChar * + + d xmlGetDtdElementDesc... + d pr extproc('xmlGetDtdElementDesc') + d like(xmlElementPtr) + d dtd value like(xmlDtdPtr) + d name * value options(*string) const xmlChar * + + /if defined(LIBXML_VALID_ENABLED) + d xmlValidGetPotentialChildren... + d pr extproc( + d 'xmlValidGetPotentialChildren') + d like(xmlCint) + d ctree * value xmlElementContent * + d names * const xmlChar *(*) + d len like(xmlCint) + d max value like(xmlCint) + + d xmlValidGetValidElements... + d pr extproc('xmlValidGetValidElements') + d like(xmlCint) + d prev like(xmlNodePtr) + d next like(xmlNodePtr) + d names * const xmlChar *(*) + d max value like(xmlCint) + + d xmlValidateNameValue... + d pr extproc('xmlValidateNameValue') + d like(xmlCint) + d value * value options(*string) const xmlChar * + + d xmlValidateNamesValue... + d pr extproc('xmlValidateNamesValue') + d like(xmlCint) + d value * value options(*string) const xmlChar * + + d xmlValidateNmtokenValue... + d pr extproc('xmlValidateNmtokenValue') + d like(xmlCint) + d value * value options(*string) const xmlChar * + + d xmlValidateNmtokensValue... + d pr extproc('xmlValidateNmtokensValue') + d like(xmlCint) + d value * value options(*string) const xmlChar * + + /if defined(LIBXML_REGEXP_ENABLED) + * Validation based on the regexp support + + d xmlValidBuildContentModel... + d pr extproc('xmlValidBuildContentModel') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d elem value like(xmlElementPtr) + + d xmlValidatePushElement... + d pr extproc('xmlValidatePushElement') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d elem value like(xmlNodePtr) + d qname * value options(*string) const xmlChar * + + d xmlValidatePushCData... + d pr extproc('xmlValidatePushCData') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d data * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlValidatePopElement... + d pr extproc('xmlValidatePopElement') + d like(xmlCint) + d ctxt value like(xmlValidCtxtPtr) + d doc value like(xmlDocPtr) + d elem value like(xmlNodePtr) + d qname * value options(*string) const xmlChar * + + /endif LIBXML_REGEXP_ENABLD + /endif LIBXML_VALID_ENABLED + /endif XML_VALID_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xinclude.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xinclude.rpgle new file mode 100644 index 0000000..93b7c51 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xinclude.rpgle @@ -0,0 +1,156 @@ + * Summary: implementation of XInclude + * Description: API to handle XInclude processing, + * implements the + * World Wide Web Consortium Last Call Working Draft 10 November 2003 + * http://www.w3.org/TR/2003/WD-xinclude-20031110 + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_XINCLUDE_H__) + /define XML_XINCLUDE_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + + /if defined(LIBXML_XINCLUDE_ENABLED) + + * XINCLUDE_NS: + * + * Macro defining the Xinclude namespace: http://www.w3.org/2003/XInclude + + d XINCLUDE_NS c 'http://www.w3.org/2003/XInclude' + + + * XINCLUDE_OLD_NS: + * + * Define the draft Xinclude namespace: http://www.w3.org/2001/XInclude + + d XINCLUDE_OLD_NS... + d c 'http://www.w3.org/2001/XInclude' + + * XINCLUDE_NODE: + * + * Macro defining "include" + + d XINCLUDE_NODE c 'include' + + * XINCLUDE_FALLBACK: + * + * Macro defining "fallback" + + d XINCLUDE_FALLBACK... + d c 'fallback' + + * XINCLUDE_HREF: + * + * Macro defining "href" + + d XINCLUDE_HREF c 'href' + + * XINCLUDE_PARSE: + * + * Macro defining "parse" + + d XINCLUDE_PARSE c 'parse' + + * XINCLUDE_PARSE_XML: + * + * Macro defining "xml" + + d XINCLUDE_PARSE_XML... + d c 'xml' + + * XINCLUDE_PARSE_TEXT: + * + * Macro defining "text" + + d XINCLUDE_PARSE_TEXT... + d c 'text' + + * XINCLUDE_PARSE_ENCODING: + * + * Macro defining "encoding" + + d XINCLUDE_PARSE_ENCODING... + d c 'encoding' + + * XINCLUDE_PARSE_XPOINTER: + * + * Macro defining "xpointer" + + d XINCLUDE_PARSE_XPOINTER... + d c 'xpointer' + + d xmlXIncludeCtxtPtr... + d s * based(######typedef######) + + * standalone processing + + d xmlXIncludeProcess... + d pr extproc('xmlXIncludeProcess') + d like(xmlCint) + d doc value like(xmlDocPtr) + + d xmlXIncludeProcessFlags... + d pr extproc('xmlXIncludeProcessFlags') + d like(xmlCint) + d doc value like(xmlDocPtr) + d flags value like(xmlCint) + + d xmlXIncludeProcessFlagsData... + d pr extproc( + d 'xmlXIncludeProcessFlagsData') + d like(xmlCint) + d doc value like(xmlDocPtr) + d flags value like(xmlCint) + d data * value void * + + d xmlXIncludeProcessTreeFlagsData... + d pr extproc( + d 'xmlXIncludeProcessTreeFlagsData') + d like(xmlCint) + d tree value like(xmlNodePtr) + d flags value like(xmlCint) + d data * value void * + + d xmlXIncludeProcessTree... + d pr extproc('xmlXIncludeProcessTree') + d like(xmlCint) + d tree value like(xmlNodePtr) + + d xmlXIncludeProcessTreeFlags... + d pr extproc( + d 'xmlXIncludeProcessTreeFlags') + d like(xmlCint) + d tree value like(xmlNodePtr) + d flags value like(xmlCint) + + + * contextual processing + + d xmlXIncludeNewContext... + d pr extproc('xmlXIncludeNewContext') + d like(xmlXIncludeCtxtPtr) + d doc value like(xmlDocPtr) + + d xmlXIncludeSetFlags... + d pr extproc('xmlXIncludeSetFlags') + d like(xmlCint) + d ctxt value like(xmlXIncludeCtxtPtr) + d flags value like(xmlCint) + + d xmlXIncludeFreeContext... + d pr extproc('xmlXIncludeFreeContext') + d ctxt value like(xmlXIncludeCtxtPtr) + + d xmlXIncludeProcessNode... + d pr extproc('xmlXIncludeProcessNode') + d like(xmlCint) + d ctxt value like(xmlXIncludeCtxtPtr) + d tree value like(xmlNodePtr) + + /endif XINCLUDE_ENABLED + /endif XML_XINCLUDE_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xlink.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xlink.rpgle new file mode 100644 index 0000000..e6ebdc6 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xlink.rpgle @@ -0,0 +1,169 @@ + * Summary: unfinished XLink detection module + * Description: unfinished XLink detection module + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_XLINK_H__) + /define XML_XLINK_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_XPTR_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + + * Various defines for the various Link properties. + * + * NOTE: the link detection layer will try to resolve QName expansion + * of namespaces. If "foo" is the prefix for "http://foo.com/" + * then the link detection layer will expand role="foo:myrole" + * to "http://foo.com/:myrole". + * NOTE: the link detection layer will expand URI-Refences found on + * href attributes by using the base mechanism if found. + + d xlinkRef s * based(######typedef######) xmlChar * + d xlinkRole s * based(######typedef######) xmlChar * + d xlinkTitle s * based(######typedef######) xmlChar * + + d xlinkType s based(######typedef######) + d like(xmlCenum) + d XLINK_TYPE_NONE... + d c 0 + d XLINK_TYPE_SIMPLE... + d c 1 + d XLINK_TYPE_EXTENDED... + d c 2 + d XLINK_TYPE_EXTENDED_SET... + d c 3 + + d xlinkShow s based(######typedef######) + d like(xmlCenum) + d XLINK_SHOW_NONE... + d c 0 + d XLINK_SHOW_NEW... + d c 1 + d XLINK_SHOW_EMBED... + d c 2 + d XLINK_SHOW_REPLACE... + d c 3 + + d xlinkActuate s based(######typedef######) + d like(xmlCenum) + d XLINK_ACTUATE_NONE... + d c 0 + d XLINK_ACTUATE_AUTO... + d c 1 + d XLINK_ACTUATE_ONREQUEST... + d c 2 + + * xlinkNodeDetectFunc: + * @ctx: user data pointer + * @node: the node to check + * + * This is the prototype for the link detection routine. + * It calls the default link detection callbacks upon link detection. + + d xlinkNodeDetectFunc... + d s * based(######typedef######) + d procptr + + * The link detection module interact with the upper layers using + * a set of callback registered at parsing time. + + * xlinkSimpleLinkFunk: + * @ctx: user data pointer + * @node: the node carrying the link + * @href: the target of the link + * @role: the role string + * @title: the link title + * + * This is the prototype for a simple link detection callback. + + d xlinkSimpleLinkFunk... + d s * based(######typedef######) + d procptr + + * xlinkExtendedLinkFunk: + * @ctx: user data pointer + * @node: the node carrying the link + * @nbLocators: the number of locators detected on the link + * @hrefs: pointer to the array of locator hrefs + * @roles: pointer to the array of locator roles + * @nbArcs: the number of arcs detected on the link + * @from: pointer to the array of source roles found on the arcs + * @to: pointer to the array of target roles found on the arcs + * @show: array of values for the show attributes found on the arcs + * @actuate: array of values for the actuate attributes found on the arcs + * @nbTitles: the number of titles detected on the link + * @title: array of titles detected on the link + * @langs: array of xml:lang values for the titles + * + * This is the prototype for a extended link detection callback. + + d xlinkExtendedLinkFunk... + d s * based(######typedef######) + d procptr + + * xlinkExtendedLinkSetFunk: + * @ctx: user data pointer + * @node: the node carrying the link + * @nbLocators: the number of locators detected on the link + * @hrefs: pointer to the array of locator hrefs + * @roles: pointer to the array of locator roles + * @nbTitles: the number of titles detected on the link + * @title: array of titles detected on the link + * @langs: array of xml:lang values for the titles + * + * This is the prototype for a extended link set detection callback. + + d xlinkExtendedLinkSetFunk... + d s * based(######typedef######) + d procptr + + * This is the structure containing a set of Links detection callbacks. + * + * There is no default xlink callbacks, if one want to get link + * recognition activated, those call backs must be provided before parsing. + + d xlinkHandlerPtr... + d s * based(######typedef######) xmlChar * + + d xlinkHandler ds based(xlinkHandlerPtr) + d align qualified + d simple like(xlinkSimpleLinkFunk) + d extended like(xlinkExtendedLinkFunk) + d set like(xlinkExtendedLinkSetFunk) + + * The default detection routine, can be overridden, they call the default + * detection callbacks. + + d xlinkGetDefaultDetect... + d pr extproc('xlinkGetDefaultDetect') + d like(xlinkNodeDetectFunc) + + d xlinkSetDefaultDetect... + d pr extproc('xlinkSetDefaultDetect') + d func value like(xlinkNodeDetectFunc) + + * Routines to set/get the default handlers. + + d xlinkGetDefaultHandler... + d pr extproc('xlinkGetDefaultHandler') + d like(xlinkHandlerPtr) + + d xlinkSetDefaultHandler... + d pr extproc('xlinkSetDefaultHandler') + d handler value like(xlinkHandlerPtr) + + * Link detection module itself. + + d xlinkIsLink pr extproc('xlinkIsLink') + d like(xlinkType) + d doc value like(xmlDocPtr) + d node value like(xmlNodePtr) + + /endif LIBXML_XPTR_ENABLED + /endif XML_XLINK_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlIO.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlIO.rpgle new file mode 100644 index 0000000..6c0afcc --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlIO.rpgle @@ -0,0 +1,464 @@ + * Summary: interface for the I/O interfaces used by the parser + * Description: interface for the I/O interfaces used by the parser + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_IO_H__) + /define XML_IO_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + + * Those are the functions and datatypes for the parser input + * I/O structures. + + * xmlInputMatchCallback: + * @filename: the filename or URI + * + * Callback used in the I/O Input API to detect if the current handler + * can provide input fonctionnalities for this resource. + * + * Returns 1 if yes and 0 if another Input module should be used + + d xmlInputMatchCallback... + d s * based(######typedef######) + d procptr + + * xmlInputOpenCallback: + * @filename: the filename or URI + * + * Callback used in the I/O Input API to open the resource + * + * Returns an Input context or NULL in case or error + + d xmlInputOpenCallback... + d s * based(######typedef######) + d procptr + + * xmlInputReadCallback: + * @context: an Input context + * @buffer: the buffer to store data read + * @len: the length of the buffer in bytes + * + * Callback used in the I/O Input API to read the resource + * + * Returns the number of bytes read or -1 in case of error + + d xmlInputReadCallback... + d s * based(######typedef######) + d procptr + + * xmlInputCloseCallback: + * @context: an Input context + * + * Callback used in the I/O Input API to close the resource + * + * Returns 0 or -1 in case of error + + d xmlInputCloseCallback... + d s * based(######typedef######) + d procptr + + /if defined(LIBXML_OUTPUT_ENABLED) + + * Those are the functions and datatypes for the library output + * I/O structures. + + * xmlOutputMatchCallback: + * @filename: the filename or URI + * + * Callback used in the I/O Output API to detect if the current handler + * can provide output fonctionnalities for this resource. + * + * Returns 1 if yes and 0 if another Output module should be used + + d xmlOutputMatchCallback... + d s * based(######typedef######) + d procptr + + * xmlOutputOpenCallback: + * @filename: the filename or URI + * + * Callback used in the I/O Output API to open the resource + * + * Returns an Output context or NULL in case or error + + d xmlOutputOpenCallback... + d s * based(######typedef######) + d procptr + + * xmlOutputWriteCallback: + * @context: an Output context + * @buffer: the buffer of data to write + * @len: the length of the buffer in bytes + * + * Callback used in the I/O Output API to write to the resource + * + * Returns the number of bytes written or -1 in case of error + + d xmlOutputWriteCallback... + d s * based(######typedef######) + d procptr + + * xmlOutputCloseCallback: + * @context: an Output context + * + * Callback used in the I/O Output API to close the resource + * + * Returns 0 or -1 in case of error + + d xmlOutputCloseCallback... + d s * based(######typedef######) + d procptr + /endif LIBXML_OUTPUT_ENABLD + + /include "libxmlrpg/globals" + /include "libxmlrpg/tree" + /include "libxmlrpg/parser" + /include "libxmlrpg/encoding" + + d xmlParserInputBuffer... + d ds based(xmlParserInputBufferPtr) + d align qualified + d context * void * + d readcallback like(xmlInputReadCallback) + d closecallback like(xmlInputCloseCallback) + * + d encoder like(xmlCharEncodingHandlerPtr) Conversions --> UTF8 + * + d buffer like(xmlBufPtr) UTF-8 local buffer + d raw like(xmlBufPtr) Raw input buffer + d compressed like(xmlCint) + d error like(xmlCint) + d rawconsumed like(xmlCulong) + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlOutputBuffer... + d ds based(xmlOutputBufferPtr) + d align qualified + d context * void * + d writecallback like(xmlOutputWriteCallback) + d closecallback like(xmlOutputCloseCallback) + * + d encoder like(xmlCharEncodingHandlerPtr) Conversions --> UTF8 + * + d buffer like(xmlBufPtr) UTF-8/ISOLatin local + d conv like(xmlBufPtr) Buffer for output + d written like(xmlCint) Total # byte written + d error like(xmlCint) + /endif LIBXML_OUTPUT_ENABLD + + * Interfaces for input + + d xmlCleanupInputCallbacks... + d pr extproc('xmlCleanupInputCallbacks') + + d xmlPopInputCallbacks... + d pr extproc('xmlPopInputCallbacks') + d like(xmlCint) + + d xmlRegisterDefaultInputCallbacks... + d pr extproc( + d 'xmlRegisterDefaultInputCallbacks') + + d xmlAllocParserInputBuffer... + d pr extproc('xmlAllocParserInputBuffer') + d like(xmlParserInputBufferPtr) + d enc value like(xmlCharEncoding) + + d xmlParserInputBufferCreateFilename... + d pr extproc( + d 'xmlParserInputBufferCreateFilename') + d like(xmlParserInputBufferPtr) + d URI * value options(*string) const char * + d enc value like(xmlCharEncoding) + + d xmlParserInputBufferCreateFile... + d pr extproc( + d 'xmlParserInputBufferCreateFile') + d like(xmlParserInputBufferPtr) + d file * value FILE * + d enc value like(xmlCharEncoding) + + d xmlParserInputBufferCreateFd... + d pr extproc( + d 'xmlParserInputBufferCreateFd') + d like(xmlParserInputBufferPtr) + d fd value like(xmlCint) + d enc value like(xmlCharEncoding) + + d xmlParserInputBufferCreateMem... + d pr extproc( + d 'xmlParserInputBufferCreateMem') + d like(xmlParserInputBufferPtr) + d mem * value options(*string) const char * + d size value like(xmlCint) + d enc value like(xmlCharEncoding) + + d xmlParserInputBufferCreateStatic... + d pr extproc( + d 'xmlParserInputBufferCreateStatic') + d like(xmlParserInputBufferPtr) + d mem * value options(*string) const char * + d size value like(xmlCint) + d enc value like(xmlCharEncoding) + + d xmlParserInputBufferCreateIO... + d pr extproc( + d 'xmlParserInputBufferCreateIO') + d like(xmlParserInputBufferPtr) + d ioread value like(xmlInputReadCallback) + d ioclose value like(xmlInputCloseCallback) + d ioctx * value void * + d enc value like(xmlCharEncoding) + + d xmlParserInputBufferRead... + d pr extproc('xmlParserInputBufferRead') + d like(xmlCint) + d in value like(xmlParserInputBufferPtr) + d len value like(xmlCint) + + d xmlParserInputBufferGrow... + d pr extproc('xmlParserInputBufferGrow') + d like(xmlCint) + d in value like(xmlParserInputBufferPtr) + d len value like(xmlCint) + + d xmlParserInputBufferPush... + d pr extproc('xmlParserInputBufferPush') + d like(xmlCint) + d in value like(xmlParserInputBufferPtr) + d len value like(xmlCint) + d buf * value options(*string) const char * + + d xmlFreeParserInputBuffer... + d pr extproc('xmlFreeParserInputBuffer') + d in value like(xmlParserInputBufferPtr) + + d xmlParserGetDirectory... + d pr * extproc('xmlParserGetDirectory') char * + d filename * value options(*string) const char * + + d xmlRegisterInputCallbacks... + d pr extproc('xmlRegisterInputCallbacks') + d like(xmlCint) + d matchFunc value like(xmlInputMatchCallback) + d openFunc value like(xmlInputOpenCallback) + d readFunc value like(xmlInputReadCallback) + d closeFunc value like(xmlInputCloseCallback) + + /if defined(LIBXML_OUTPUT_ENABLED) + + * Interfaces for output + + d xmlCleanupOutputCallbacks... + d pr extproc('xmlCleanupOutputCallbacks') + + d xmlRegisterDefaultOutputCallbacks... + d pr extproc( + d 'xmlRegisterDefaultOuputCallbacks') + + d xmlAllocOutputBuffer... + d pr extproc('xmlAllocOutputBuffer') + d like(xmlOutputBufferPtr) + d encoder value + d like(xmlCharEncodingHandlerPtr) + + d xmlOutputBufferCreateFilename... + d pr extproc( + d 'xmlOutputBufferCreateFilename') + d like(xmlOutputBufferPtr) + d URI * value options(*string) const char * + d encoder value + d like(xmlCharEncodingHandlerPtr) + d compression value like(xmlCint) + + d xmlOutputBufferCreateFile... + d pr extproc('xmlOutputBufferCreateFile') + d like(xmlOutputBufferPtr) + d file * value FILE * + d encoder value + d like(xmlCharEncodingHandlerPtr) + + d xmlOutputBufferCreateBuffer... + d pr extproc( + d 'xmlOutputBufferCreateBuffer') + d like(xmlOutputBufferPtr) + d buffer value like(xmlBufferPtr) + d encoder value + d like(xmlCharEncodingHandlerPtr) + + d xmlOutputBufferCreateFd... + d pr extproc('xmlOutputBufferCreateFd') + d like(xmlOutputBufferPtr) + d fd value like(xmlCint) + d encoder value + d like(xmlCharEncodingHandlerPtr) + + d xmlOutputBufferCreateIO... + d pr extproc('xmlOutputBufferCreateIO') + d like(xmlOutputBufferPtr) + d iowrite value like(xmlOutputWriteCallback) + d ioclose value like(xmlOutputCloseCallback) + d ioctx * value void * + d encoder value + d like(xmlCharEncodingHandlerPtr) + + * Couple of APIs to get the output without digging into the buffers + + d xmlOutputBufferGetContent... + d pr * extproc('xmlOutputBufferGetContent') const xmlChar * + d out value like(xmlOutputBufferPtr) + + d xmlOutputBufferGetSize... + d pr extproc('xmlOutputBufferGetSize') + d like(xmlCsize_t) + d out value like(xmlOutputBufferPtr) + + d xmlOutputBufferWrite... + d pr extproc('xmlOutputBufferWrite') + d like(xmlCint) + d out value like(xmlOutputBufferPtr) + d len value like(xmlCint) + d buf * value options(*string) const char * + + d xmlOutputBufferWriteString... + d pr extproc('xmlOutputBufferWriteString') + d like(xmlCint) + d out value like(xmlOutputBufferPtr) + d str * value options(*string) const char * + + d xmlOutputBufferWriteEscape... + d pr extproc('xmlOutputBufferWriteEscape') + d like(xmlCint) + d out value like(xmlOutputBufferPtr) + d str * value options(*string) const xmlChar * + d escaping value like(xmlCharEncodingOutputFunc) + + d xmlOutputBufferFlush... + d pr extproc('xmlOutputBufferFlush') + d like(xmlCint) + d out value like(xmlOutputBufferPtr) + + d xmlOutputBufferClose... + d pr extproc('xmlOutputBufferClose') + d like(xmlCint) + d out value like(xmlOutputBufferPtr) + + d xmlRegisterOutputCallbacks... + d pr extproc('xmlRegisterOutputCallbacks') + d like(xmlCint) + d matchFunc value like(xmlOutputMatchCallback) + d openFunc value like(xmlOutputOpenCallback) + d writeFunc value like(xmlOutputWriteCallback) + d closeFunc value like(xmlOutputCloseCallback) + + /if defined(LIBXML_HTTP_ENABLED) + + * This function only exists if HTTP support built into the library + + d xmlRegisterHTTPPostCallbacks... + d pr extproc( + d 'xmlRegisterHTTPPostCallbacks') + + /endif LIBXML_HTTP_ENABLED + /endif LIBXML_OUTPUT_ENABLD + + d xmlCheckHTTPInput... + d pr extproc('xmlCheckHTTPInput') + d like(xmlParserInputPtr) + d ctxt value like(xmlParserCtxtPtr) + d ret value like(xmlParserInputPtr) + + * A predefined entity loader disabling network accesses + + d xmlNoNetExternalEntityLoader... + d pr extproc( + d 'xmlNoNetExternalEntityLoader') + d like(xmlParserInputPtr) + d URL * value options(*string) const char * + d ID * value options(*string) const char * + d ctxt value like(xmlParserCtxtPtr) + + * xmlNormalizeWindowsPath is obsolete, don't use it. + * Check xmlCanonicPath in uri.h for a better alternative. + + d xmlNormalizeWindowsPath... + d pr * extproc('xmlNormalizeWindowsPath') xmlChar * + d path * value options(*string) const xmlChar * + + d xmlCheckFilename... + d pr extproc('xmlCheckFilename') + d like(xmlCint) + d path * value options(*string) const char * + + * Default 'file://' protocol callbacks + + d xmlFileMatch pr extproc('xmlFileMatch') + d like(xmlCint) + d filename * value options(*string) const char * + + d xmlFileOpen pr * extproc('xmlFileOpen') void * + d filename * value options(*string) const char * + + d xmlFileRead pr extproc('xmlFileRead') + d like(xmlCint) + d context * value void * + d buffer 65535 options(*varsize) + d len value like(xmlCint) + + d xmlFileClose pr extproc('xmlFileClose') + d like(xmlCint) + d context * value void * + + * Default 'http://' protocol callbacks + + /if defined(LIBXML_HTTP_ENABLED) + d xmlIOHTTPMatch pr extproc('xmlIOHTTPMatch') + d like(xmlCint) + d filename * value options(*string) const char * + + d xmlIOHTTPOpen pr * extproc('xmlIOHTTPOpen') void * + d filename * value options(*string) const char * + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlIOHTTPOpenW pr * extproc('xmlIOHTTPOpenW') void * + d post_uri * value options(*string) const char * + d compression value like(xmlCint) + /endif LIBXML_OUTPUT_ENABLD + + d xmlIOHTTPRead pr extproc('xmlIOHTTPRead') + d like(xmlCint) + d context * value void * + d buffer 65535 options(*varsize) + d len value like(xmlCint) + + d xmlIOHTTPClose pr extproc('xmlIOHTTPClose') + d like(xmlCint) + d context * value void * + /endif LIBXML_HTTP_ENABLED + + * Default 'ftp://' protocol callbacks + + /if defined(LIBXML_FTP_ENABLED) + d xmlIOFTPMatch pr extproc('xmlIOFTPMatch') + d like(xmlCint) + d filename * value options(*string) const char * + + d xmlIOFTPOpen pr * extproc('xmlIOFTPOpen') void * + d filename * value options(*string) const char * + + d xmlIOFTPRead pr extproc('xmlIOFTPRead') + d like(xmlCint) + d context * value void * + d buffer 65535 options(*varsize) + d len value like(xmlCint) + + d xmlIOFTPClose pr extproc('xmlIOFTPClose') + d like(xmlCint) + d context * value void * + /endif LIBXML_FTP_ENABLED + + /endif XML_IO_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlTypesC.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlTypesC.rpgle new file mode 100644 index 0000000..48a23bf --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlTypesC.rpgle @@ -0,0 +1,26 @@ + * Eqivalent of C data types. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XMLTYPESC_H__) + /define XMLTYPESC_H__ + + d xmlCchar s 3i 0 based(######typedef######) + d xmlCuchar s 3u 0 based(######typedef######) + d xmlCshort s 5i 0 based(######typedef######) + d xmlCushort s 5u 0 based(######typedef######) + d xmlCint s 10i 0 based(######typedef######) + d xmlCuInt s 10u 0 based(######typedef######) + d xmlClong s 10i 0 based(######typedef######) + d xmlCulong s 10u 0 based(######typedef######) + d xmlClonglong s 20i 0 based(######typedef######) + d xmlCulonglong s 20u 0 based(######typedef######) + d xmlCenum s 10i 0 based(######typedef######) + d xmlCssize_t s 10i 0 based(######typedef######) + d xmlCsize_t s 10u 0 based(######typedef######) + d xmlCfloat s 4f based(######typedef######) + d xmlCdouble s 8f based(######typedef######) + + /endif diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlautomata.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlautomata.rpgle new file mode 100644 index 0000000..0e9cc22 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlautomata.rpgle @@ -0,0 +1,183 @@ + * Summary: API to build regexp automata + * Description: the API to build regexp automata + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_AUTOMATA_H__) + /define XML_AUTOMATA_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_REGEXP_ENABLED) + /if defined(LIBXML_AUTOMATA_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + /include "libxmlrpg/xmlregexp" + + * xmlAutomataPtr: + * + * A libxml automata description, It can be compiled into a regexp + + d xmlAutomataPtr s * based(######typedef######) + + * xmlAutomataStatePtr: + * + * A state int the automata description, + + d xmlAutomataStatePtr... + d s * based(######typedef######) + + * Building API + + d xmlNewAutomata pr extproc('xmlNewAutomata') + d like(xmlAutomataPtr) + + d xmlFreeAutomata... + d pr extproc('xmlFreeAutomata') + d am value like(xmlAutomataPtr) + + d xmlAutomataGetInitState... + d pr extproc('xmlAutomataGetInitState') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + + d xmlAutomataSetFinalState... + d pr extproc('xmlAutomataSetFinalState') + d like(xmlCint) + d am value like(xmlAutomataPtr) + d state value like(xmlAutomataStatePtr) + + d xmlAutomataNewState... + d pr extproc('xmlAutomataNewState') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + + d xmlAutomataNewTransition... + d pr extproc('xmlAutomataNewTransition') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + d from value like(xmlAutomataStatePtr) + d to value like(xmlAutomataStatePtr) + d token * value options(*string) const xmlChar * + d data * value options(*string) void * + + d xmlAutomataNewTransition2... + d pr extproc('xmlAutomataNewTransition2') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + d from value like(xmlAutomataStatePtr) + d to value like(xmlAutomataStatePtr) + d token * value options(*string) const xmlChar * + d token2 * value options(*string) const xmlChar * + d data * value options(*string) void * + + d xmlAutomataNewNegTrans... + d pr extproc('xmlAutomataNewNegTrans') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + d from value like(xmlAutomataStatePtr) + d to value like(xmlAutomataStatePtr) + d token * value options(*string) const xmlChar * + d token2 * value options(*string) const xmlChar * + d data * value options(*string) void * + + d xmlAutomataNewCountTrans... + d pr extproc('xmlAutomataNewCountTrans') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + d from value like(xmlAutomataStatePtr) + d to value like(xmlAutomataStatePtr) + d token * value options(*string) const xmlChar * + d min value like(xmlCint) + d max value like(xmlCint) + d data * value options(*string) void * + + d xmlAutomataNewCountTrans2... + d pr extproc('xmlAutomataNewCountTrans2') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + d from value like(xmlAutomataStatePtr) + d to value like(xmlAutomataStatePtr) + d token * value options(*string) const xmlChar * + d token2 * value options(*string) const xmlChar * + d min value like(xmlCint) + d max value like(xmlCint) + d data * value options(*string) void * + + d xmlAutomataNewOnceTrans... + d pr extproc('xmlAutomataNewOnceTrans') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + d from value like(xmlAutomataStatePtr) + d to value like(xmlAutomataStatePtr) + d token * value options(*string) const xmlChar * + d min value like(xmlCint) + d max value like(xmlCint) + d data * value options(*string) void * + + d xmlAutomataNewOnceTrans2... + d pr extproc('xmlAutomataNewOnceTrans2') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + d from value like(xmlAutomataStatePtr) + d to value like(xmlAutomataStatePtr) + d token * value options(*string) const xmlChar * + d token2 * value options(*string) const xmlChar * + d min value like(xmlCint) + d max value like(xmlCint) + d data * value options(*string) void * + + d xmlAutomataNewAllTrans... + d pr extproc('xmlAutomataNewAllTrans') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + d from value like(xmlAutomataStatePtr) + d to value like(xmlAutomataStatePtr) + d lax value like(xmlCint) + + d xmlAutomataNewEpsilon... + d pr extproc('xmlAutomataNewEpsilon') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + d from value like(xmlAutomataStatePtr) + d to value like(xmlAutomataStatePtr) + + d xmlAutomataNewCountedTrans... + d pr extproc('xmlAutomataNewCountedTrans') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + d from value like(xmlAutomataStatePtr) + d to value like(xmlAutomataStatePtr) + d counter value like(xmlCint) + + d xmlAutomataNewCounterTrans... + d pr extproc('xmlAutomataNewCounterTrans') + d like(xmlAutomataStatePtr) + d am value like(xmlAutomataPtr) + d from value like(xmlAutomataStatePtr) + d to value like(xmlAutomataStatePtr) + d counter value like(xmlCint) + + d xmlAutomataNewCounter... + d pr extproc('xmlAutomataNewCounter') + d like(xmlCint) + d am value like(xmlAutomataPtr) + d min value like(xmlCint) + d max value like(xmlCint) + + d xmlAutomataCompile... + d pr extproc('xmlAutomataCompile') + d like(xmlRegexpPtr) + d am value like(xmlAutomataPtr) + + d xmlAutomataIsDeterminist... + d pr extproc('xmlAutomataIsDeterminist') + d like(xmlCint) + d am value like(xmlAutomataPtr) + + /endif AUTOMATA_ENABLED + /endif LIBXML_REGEXP_ENABLD + /endif XML_AUTOMATA_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlerror.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlerror.rpgle new file mode 100644 index 0000000..6688b37 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlerror.rpgle @@ -0,0 +1,1686 @@ + * Summary: error handling + * Description: the API used to report errors + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_ERROR_H__) + /define XML_ERROR_H__ + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/parser" + + * xmlErrorLevel: + * + * Indicates the level of an error + + d xmlErrorLevel s based(######typedef######) + d like(xmlCenum) + d XML_ERR_NONE c 0 + d XML_ERR_WARNING... A simple warning + d c 1 + d XML_ERR_ERROR c 2 A recoverable error + d XML_ERR_FATAL c 3 A fatal error + + * xmlErrorDomain: + * + * Indicates where an error may have come from + + d xmlErrorDomain s based(######typedef######) + d like(xmlCenum) + d XML_FROM_NONE c 0 + d XML_FROM_PARSER... XML parser + d c 1 + d XML_FROM_TREE c 2 Tree module + d XML_FROM_NAMESPACE... XML Namespace module + d c 3 + d XML_FROM_DTD c 4 DTD validation + d XML_FROM_HTML c 5 HTML parser + d XML_FROM_MEMORY... Memory allocator + d c 6 + d XML_FROM_OUTPUT... serialization code + d c 7 + d XML_FROM_IO c 8 Input/Output stack + d XML_FROM_FTP c 9 FTP module + d XML_FROM_HTTP c 10 HTTP module + d XML_FROM_XINCLUDE... XInclude processing + d c 11 + d XML_FROM_XPATH... XPath module + d c 12 + d XML_FROM_XPOINTER... XPointer module + d c 13 + d XML_FROM_REGEXP... Regexp module + d c 14 + d XML_FROM_DATATYPE... W3C XML Schm Dtatype + d c 15 + d XML_FROM_SCHEMASP... W3C XML Schm parser + d c 16 + d XML_FROM_SCHEMASV... W3C XML Schm valid. + d c 17 + d XML_FROM_RELAXNGP... Relax-NG parser + d c 18 + d XML_FROM_RELAXNGV... Relax-NG validator + d c 19 + d XML_FROM_CATALOG... Catalog module + d c 20 + d XML_FROM_C14N c 21 Canonicalization + d XML_FROM_XSLT c 22 Engine from libxslt + d XML_FROM_VALID... DTD valid. w/ ctxt + d c 23 + d XML_FROM_CHECK... Error check module + d c 24 + d XML_FROM_WRITER... xmlwriter module + d c 25 + d XML_FROM_MODULE... Dyn. loaded module + d c 26 + d XML_FROM_I18N c 27 Mod hdlg char conv + d XML_FROM_SCHEMATRONV... Schematron valid + d c 28 + d XML_FROM_BUFFER... Buffers module + d c 29 + d XML_FROM_URI c 30 URI module + + * xmlError: + * + * An XML Error instance. + + d xmlErrorPtr s * based(######typedef######) + + d xmlError ds based(xmlErrorPtr) + d align qualified + d domain like(xmlCint) Libpart raising err + d code like(xmlCint) Error code + d message * char * + d level like(xmlErrorLevel) Error severity + d file * File name + d line like(xmlCint) Line number + d str1 * char * + d str2 * char * + d str3 * char * + d int1 like(xmlCint) Extra number info + d int2 like(xmlCint) Error column + d ctxt * void * + d node * void * + + * xmlParserError: + * + * This is an error that the XML (or HTML) parser can generate + + d xmlParserErrors... + d s based(######typedef######) + d like(xmlCenum) + d XML_ERR_OK c 0 + d XML_ERR_INTERNAL_ERROR... + d c 1 + d XML_ERR_NO_MEMORY... + d c 2 + d XML_ERR_DOCUMENT_START... + d c 3 + d XML_ERR_DOCUMENT_EMPTY... + d c 4 + d XML_ERR_DOCUMENT_END... + d c 5 + d XML_ERR_INVALID_HEX_CHARREF... + d c 6 + d XML_ERR_INVALID_DEC_CHARREF... + d c 7 + d XML_ERR_INVALID_CHARREF... + d c 8 + d XML_ERR_INVALID_CHAR... + d c 9 + d XML_ERR_CHARREF_AT_EOF... + d c 10 + d XML_ERR_CHARREF_IN_PROLOG... + d c 11 + d XML_ERR_CHARREF_IN_EPILOG... + d c 12 + d XML_ERR_CHARREF_IN_DTD... + d c 13 + d XML_ERR_ENTITYREF_AT_EOF... + d c 14 + d XML_ERR_ENTITYREF_IN_PROLOG... + d c 15 + d XML_ERR_ENTITYREF_IN_EPILOG... + d c 16 + d XML_ERR_ENTITYREF_IN_DTD... + d c 17 + d XML_ERR_PEREF_AT_EOF... + d c 18 + d XML_ERR_PEREF_IN_PROLOG... + d c 19 + d XML_ERR_PEREF_IN_EPILOG... + d c 20 + d XML_ERR_PEREF_IN_INT_SUBSET... + d c 21 + d XML_ERR_ENTITYREF_NO_NAME... + d c 22 + d XML_ERR_ENTITYREF_SEMICOL_MISSING... + d c 23 + d XML_ERR_PEREF_NO_NAME... + d c 24 + d XML_ERR_PEREF_SEMICOL_MISSING... + d c 25 + d XML_ERR_UNDECLARED_ENTITY... + d c 26 + d XML_WAR_UNDECLARED_ENTITY... + d c 27 + d XML_ERR_UNPARSED_ENTITY... + d c 28 + d XML_ERR_ENTITY_IS_EXTERNAL... + d c 29 + d XML_ERR_ENTITY_IS_PARAMETER... + d c 30 + d XML_ERR_UNKNOWN_ENCODING... + d c 31 + d XML_ERR_UNSUPPORTED_ENCODING... + d c 32 + d XML_ERR_STRING_NOT_STARTED... + d c 33 + d XML_ERR_STRING_NOT_CLOSED... + d c 34 + d XML_ERR_NS_DECL_ERROR... + d c 35 + d XML_ERR_ENTITY_NOT_STARTED... + d c 36 + d XML_ERR_ENTITY_NOT_FINISHED... + d c 37 + d XML_ERR_LT_IN_ATTRIBUTE... + d c 38 + d XML_ERR_ATTRIBUTE_NOT_STARTED... + d c 39 + d XML_ERR_ATTRIBUTE_NOT_FINISHED... + d c 40 + d XML_ERR_ATTRIBUTE_WITHOUT_VALUE... + d c 41 + d XML_ERR_ATTRIBUTE_REDEFINED... + d c 42 + d XML_ERR_LITERAL_NOT_STARTED... + d c 43 + d XML_ERR_LITERAL_NOT_FINISHED... + d c 44 + d XML_ERR_COMMENT_NOT_FINISHED... + d c 45 + d XML_ERR_PI_NOT_STARTED... + d c 46 + d XML_ERR_PI_NOT_FINISHED... + d c 47 + d XML_ERR_NOTATION_NOT_STARTED... + d c 48 + d XML_ERR_NOTATION_NOT_FINISHED... + d c 49 + d XML_ERR_ATTLIST_NOT_STARTED... + d c 50 + d XML_ERR_ATTLIST_NOT_FINISHED... + d c 51 + d XML_ERR_MIXED_NOT_STARTED... + d c 52 + d XML_ERR_MIXED_NOT_FINISHED... + d c 53 + d XML_ERR_ELEMCONTENT_NOT_STARTED... + d c 54 + d XML_ERR_ELEMCONTENT_NOT_FINISHED... + d c 55 + d XML_ERR_XMLDECL_NOT_STARTED... + d c 56 + d XML_ERR_XMLDECL_NOT_FINISHED... + d c 57 + d XML_ERR_CONDSEC_NOT_STARTED... + d c 58 + d XML_ERR_CONDSEC_NOT_FINISHED... + d c 59 + d XML_ERR_EXT_SUBSET_NOT_FINISHED... + d c 60 + d XML_ERR_DOCTYPE_NOT_FINISHED... + d c 61 + d XML_ERR_MISPLACED_CDATA_END... + d c 62 + d XML_ERR_CDATA_NOT_FINISHED... + d c 63 + d XML_ERR_RESERVED_XML_NAME... + d c 64 + d XML_ERR_SPACE_REQUIRED... + d c 65 + d XML_ERR_SEPARATOR_REQUIRED... + d c 66 + d XML_ERR_NMTOKEN_REQUIRED... + d c 67 + d XML_ERR_NAME_REQUIRED... + d c 68 + d XML_ERR_PCDATA_REQUIRED... + d c 69 + d XML_ERR_URI_REQUIRED... + d c 70 + d XML_ERR_PUBID_REQUIRED... + d c 71 + d XML_ERR_LT_REQUIRED... + d c 72 + d XML_ERR_GT_REQUIRED... + d c 73 + d XML_ERR_LTSLASH_REQUIRED... + d c 74 + d XML_ERR_EQUAL_REQUIRED... + d c 75 + d XML_ERR_TAG_NAME_MISMATCH... + d c 76 + d XML_ERR_TAG_NOT_FINISHED... + d c 77 + d XML_ERR_STANDALONE_VALUE... + d c 78 + d XML_ERR_ENCODING_NAME... + d c 79 + d XML_ERR_HYPHEN_IN_COMMENT... + d c 80 + d XML_ERR_INVALID_ENCODING... + d c 81 + d XML_ERR_EXT_ENTITY_STANDALONE... + d c 82 + d XML_ERR_CONDSEC_INVALID... + d c 83 + d XML_ERR_VALUE_REQUIRED... + d c 84 + d XML_ERR_NOT_WELL_BALANCED... + d c 85 + d XML_ERR_EXTRA_CONTENT... + d c 86 + d XML_ERR_ENTITY_CHAR_ERROR... + d c 87 + d XML_ERR_ENTITY_PE_INTERNAL... + d c 88 + d XML_ERR_ENTITY_LOOP... + d c 89 + d XML_ERR_ENTITY_BOUNDARY... + d c 90 + d XML_ERR_INVALID_URI... + d c 91 + d XML_ERR_URI_FRAGMENT... + d c 92 + d XML_WAR_CATALOG_PI... + d c 93 + d XML_ERR_NO_DTD... + d c 94 + d XML_ERR_CONDSEC_INVALID_KEYWORD... + d c 95 + d XML_ERR_VERSION_MISSING... + d c 96 + d XML_WAR_UNKNOWN_VERSION... + d c 97 + d XML_WAR_LANG_VALUE... + d c 98 + d XML_WAR_NS_URI... + d c 99 + d XML_WAR_NS_URI_RELATIVE... + d c 100 + d XML_ERR_MISSING_ENCODING... + d c 101 + d XML_WAR_SPACE_VALUE... + d c 102 + d XML_ERR_NOT_STANDALONE... + d c 103 + d XML_ERR_ENTITY_PROCESSING... + d c 104 + d XML_ERR_NOTATION_PROCESSING... + d c 105 + d XML_WAR_NS_COLUMN... + d c 106 + d XML_WAR_ENTITY_REDEFINED... + d c 107 + d XML_ERR_UNKNOWN_VERSION... + d c 108 + d XML_ERR_VERSION_MISMATCH... + d c 109 + d XML_ERR_NAME_TOO_LONG... + d c 110 + d XML_ERR_USER_STOP... + d c 111 + d XML_NS_ERR_XML_NAMESPACE... + d c 200 + d XML_NS_ERR_UNDEFINED_NAMESPACE... + d c 201 + d XML_NS_ERR_QNAME... + d c 202 + d XML_NS_ERR_ATTRIBUTE_REDEFINED... + d c 203 + d XML_NS_ERR_EMPTY... + d c 204 + d XML_NS_ERR_COLON... + d c 205 + d XML_DTD_ATTRIBUTE_DEFAULT... + d c 500 + d XML_DTD_ATTRIBUTE_REDEFINED... + d c 501 + d XML_DTD_ATTRIBUTE_VALUE... + d c 502 + d XML_DTD_CONTENT_ERROR... + d c 503 + d XML_DTD_CONTENT_MODEL... + d c 504 + d XML_DTD_CONTENT_NOT_DETERMINIST... + d c 505 + d XML_DTD_DIFFERENT_PREFIX... + d c 506 + d XML_DTD_ELEM_DEFAULT_NAMESPACE... + d c 507 + d XML_DTD_ELEM_NAMESPACE... + d c 508 + d XML_DTD_ELEM_REDEFINED... + d c 509 + d XML_DTD_EMPTY_NOTATION... + d c 510 + d XML_DTD_ENTITY_TYPE... + d c 511 + d XML_DTD_ID_FIXED... + d c 512 + d XML_DTD_ID_REDEFINED... + d c 513 + d XML_DTD_ID_SUBSET... + d c 514 + d XML_DTD_INVALID_CHILD... + d c 515 + d XML_DTD_INVALID_DEFAULT... + d c 516 + d XML_DTD_LOAD_ERROR... + d c 517 + d XML_DTD_MISSING_ATTRIBUTE... + d c 518 + d XML_DTD_MIXED_CORRUPT... + d c 519 + d XML_DTD_MULTIPLE_ID... + d c 520 + d XML_DTD_NO_DOC... + d c 521 + d XML_DTD_NO_DTD... + d c 522 + d XML_DTD_NO_ELEM_NAME... + d c 523 + d XML_DTD_NO_PREFIX... + d c 524 + d XML_DTD_NO_ROOT... + d c 525 + d XML_DTD_NOTATION_REDEFINED... + d c 526 + d XML_DTD_NOTATION_VALUE... + d c 527 + d XML_DTD_NOT_EMPTY... + d c 528 + d XML_DTD_NOT_PCDATA... + d c 529 + d XML_DTD_NOT_STANDALONE... + d c 530 + d XML_DTD_ROOT_NAME... + d c 531 + d XML_DTD_STANDALONE_WHITE_SPACE... + d c 532 + d XML_DTD_UNKNOWN_ATTRIBUTE... + d c 533 + d XML_DTD_UNKNOWN_ELEM... + d c 534 + d XML_DTD_UNKNOWN_ENTITY... + d c 535 + d XML_DTD_UNKNOWN_ID... + d c 536 + d XML_DTD_UNKNOWN_NOTATION... + d c 537 + d XML_DTD_STANDALONE_DEFAULTED... + d c 538 + d XML_DTD_XMLID_VALUE... + d c 539 + d XML_DTD_XMLID_TYPE... + d c 540 + d XML_DTD_DUP_TOKEN... + d c 541 + d XML_HTML_STRUCURE_ERROR... + d c 800 + d XML_HTML_UNKNOWN_TAG... + d c 801 + d XML_RNGP_ANYNAME_ATTR_ANCESTOR... + d c 1000 + d XML_RNGP_ATTR_CONFLICT... + d c 1001 + d XML_RNGP_ATTRIBUTE_CHILDREN... + d c 1002 + d XML_RNGP_ATTRIBUTE_CONTENT... + d c 1003 + d XML_RNGP_ATTRIBUTE_EMPTY... + d c 1004 + d XML_RNGP_ATTRIBUTE_NOOP... + d c 1005 + d XML_RNGP_CHOICE_CONTENT... + d c 1006 + d XML_RNGP_CHOICE_EMPTY... + d c 1007 + d XML_RNGP_CREATE_FAILURE... + d c 1008 + d XML_RNGP_DATA_CONTENT... + d c 1009 + d XML_RNGP_DEF_CHOICE_AND_INTERLEAVE... + d c 1010 + d XML_RNGP_DEFINE_CREATE_FAILED... + d c 1011 + d XML_RNGP_DEFINE_EMPTY... + d c 1012 + d XML_RNGP_DEFINE_MISSING... + d c 1013 + d XML_RNGP_DEFINE_NAME_MISSING... + d c 1014 + d XML_RNGP_ELEM_CONTENT_EMPTY... + d c 1015 + d XML_RNGP_ELEM_CONTENT_ERROR... + d c 1016 + d XML_RNGP_ELEMENT_EMPTY... + d c 1017 + d XML_RNGP_ELEMENT_CONTENT... + d c 1018 + d XML_RNGP_ELEMENT_NAME... + d c 1019 + d XML_RNGP_ELEMENT_NO_CONTENT... + d c 1020 + d XML_RNGP_ELEM_TEXT_CONFLICT... + d c 1021 + d XML_RNGP_EMPTY... + d c 1022 + d XML_RNGP_EMPTY_CONSTRUCT... + d c 1023 + d XML_RNGP_EMPTY_CONTENT... + d c 1024 + d XML_RNGP_EMPTY_NOT_EMPTY... + d c 1025 + d XML_RNGP_ERROR_TYPE_LIB... + d c 1026 + d XML_RNGP_EXCEPT_EMPTY... + d c 1027 + d XML_RNGP_EXCEPT_MISSING... + d c 1028 + d XML_RNGP_EXCEPT_MULTIPLE... + d c 1029 + d XML_RNGP_EXCEPT_NO_CONTENT... + d c 1030 + d XML_RNGP_EXTERNALREF_EMTPY... + d c 1031 + d XML_RNGP_EXTERNAL_REF_FAILURE... + d c 1032 + d XML_RNGP_EXTERNALREF_RECURSE... + d c 1033 + d XML_RNGP_FORBIDDEN_ATTRIBUTE... + d c 1034 + d XML_RNGP_FOREIGN_ELEMENT... + d c 1035 + d XML_RNGP_GRAMMAR_CONTENT... + d c 1036 + d XML_RNGP_GRAMMAR_EMPTY... + d c 1037 + d XML_RNGP_GRAMMAR_MISSING... + d c 1038 + d XML_RNGP_GRAMMAR_NO_START... + d c 1039 + d XML_RNGP_GROUP_ATTR_CONFLICT... + d c 1040 + d XML_RNGP_HREF_ERROR... + d c 1041 + d XML_RNGP_INCLUDE_EMPTY... + d c 1042 + d XML_RNGP_INCLUDE_FAILURE... + d c 1043 + d XML_RNGP_INCLUDE_RECURSE... + d c 1044 + d XML_RNGP_INTERLEAVE_ADD... + d c 1045 + d XML_RNGP_INTERLEAVE_CREATE_FAILED... + d c 1046 + d XML_RNGP_INTERLEAVE_EMPTY... + d c 1047 + d XML_RNGP_INTERLEAVE_NO_CONTENT... + d c 1048 + d XML_RNGP_INVALID_DEFINE_NAME... + d c 1049 + d XML_RNGP_INVALID_URI... + d c 1050 + d XML_RNGP_INVALID_VALUE... + d c 1051 + d XML_RNGP_MISSING_HREF... + d c 1052 + d XML_RNGP_NAME_MISSING... + d c 1053 + d XML_RNGP_NEED_COMBINE... + d c 1054 + d XML_RNGP_NOTALLOWED_NOT_EMPTY... + d c 1055 + d XML_RNGP_NSNAME_ATTR_ANCESTOR... + d c 1056 + d XML_RNGP_NSNAME_NO_NS... + d c 1057 + d XML_RNGP_PARAM_FORBIDDEN... + d c 1058 + d XML_RNGP_PARAM_NAME_MISSING... + d c 1059 + d XML_RNGP_PARENTREF_CREATE_FAILED... + d c 1060 + d XML_RNGP_PARENTREF_NAME_INVALID... + d c 1061 + d XML_RNGP_PARENTREF_NO_NAME... + d c 1062 + d XML_RNGP_PARENTREF_NO_PARENT... + d c 1063 + d XML_RNGP_PARENTREF_NOT_EMPTY... + d c 1064 + d XML_RNGP_PARSE_ERROR... + d c 1065 + d XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME... + d c 1066 + d XML_RNGP_PAT_ATTR_ATTR... + d c 1067 + d XML_RNGP_PAT_ATTR_ELEM... + d c 1068 + d XML_RNGP_PAT_DATA_EXCEPT_ATTR... + d c 1069 + d XML_RNGP_PAT_DATA_EXCEPT_ELEM... + d c 1070 + d XML_RNGP_PAT_DATA_EXCEPT_EMPTY... + d c 1071 + d XML_RNGP_PAT_DATA_EXCEPT_GROUP... + d c 1072 + d XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE... + d c 1073 + d XML_RNGP_PAT_DATA_EXCEPT_LIST... + d c 1074 + d XML_RNGP_PAT_DATA_EXCEPT_ONEMORE... + d c 1075 + d XML_RNGP_PAT_DATA_EXCEPT_REF... + d c 1076 + d XML_RNGP_PAT_DATA_EXCEPT_TEXT... + d c 1077 + d XML_RNGP_PAT_LIST_ATTR... + d c 1078 + d XML_RNGP_PAT_LIST_ELEM... + d c 1079 + d XML_RNGP_PAT_LIST_INTERLEAVE... + d c 1080 + d XML_RNGP_PAT_LIST_LIST... + d c 1081 + d XML_RNGP_PAT_LIST_REF... + d c 1082 + d XML_RNGP_PAT_LIST_TEXT... + d c 1083 + d XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME... + d c 1084 + d XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME... + d c 1085 + d XML_RNGP_PAT_ONEMORE_GROUP_ATTR... + d c 1086 + d XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR... + d c 1087 + d XML_RNGP_PAT_START_ATTR... + d c 1088 + d XML_RNGP_PAT_START_DATA... + d c 1089 + d XML_RNGP_PAT_START_EMPTY... + d c 1090 + d XML_RNGP_PAT_START_GROUP... + d c 1091 + d XML_RNGP_PAT_START_INTERLEAVE... + d c 1092 + d XML_RNGP_PAT_START_LIST... + d c 1093 + d XML_RNGP_PAT_START_ONEMORE... + d c 1094 + d XML_RNGP_PAT_START_TEXT... + d c 1095 + d XML_RNGP_PAT_START_VALUE... + d c 1096 + d XML_RNGP_PREFIX_UNDEFINED... + d c 1097 + d XML_RNGP_REF_CREATE_FAILED... + d c 1098 + d XML_RNGP_REF_CYCLE... + d c 1099 + d XML_RNGP_REF_NAME_INVALID... + d c 1100 + d XML_RNGP_REF_NO_DEF... + d c 1101 + d XML_RNGP_REF_NO_NAME... + d c 1102 + d XML_RNGP_REF_NOT_EMPTY... + d c 1103 + d XML_RNGP_START_CHOICE_AND_INTERLEAVE... + d c 1104 + d XML_RNGP_START_CONTENT... + d c 1105 + d XML_RNGP_START_EMPTY... + d c 1106 + d XML_RNGP_START_MISSING... + d c 1107 + d XML_RNGP_TEXT_EXPECTED... + d c 1108 + d XML_RNGP_TEXT_HAS_CHILD... + d c 1109 + d XML_RNGP_TYPE_MISSING... + d c 1110 + d XML_RNGP_TYPE_NOT_FOUND... + d c 1111 + d XML_RNGP_TYPE_VALUE... + d c 1112 + d XML_RNGP_UNKNOWN_ATTRIBUTE... + d c 1113 + d XML_RNGP_UNKNOWN_COMBINE... + d c 1114 + d XML_RNGP_UNKNOWN_CONSTRUCT... + d c 1115 + d XML_RNGP_UNKNOWN_TYPE_LIB... + d c 1116 + d XML_RNGP_URI_FRAGMENT... + d c 1117 + d XML_RNGP_URI_NOT_ABSOLUTE... + d c 1118 + d XML_RNGP_VALUE_EMPTY... + d c 1119 + d XML_RNGP_VALUE_NO_CONTENT... + d c 1120 + d XML_RNGP_XMLNS_NAME... + d c 1121 + d XML_RNGP_XML_NS... + d c 1122 + d XML_XPATH_EXPRESSION_OK... + d c 1200 + d XML_XPATH_NUMBER_ERROR... + d c 1201 + d XML_XPATH_UNFINISHED_LITERAL_ERROR... + d c 1202 + d XML_XPATH_START_LITERAL_ERROR... + d c 1203 + d XML_XPATH_VARIABLE_REF_ERROR... + d c 1204 + d XML_XPATH_UNDEF_VARIABLE_ERROR... + d c 1205 + d XML_XPATH_INVALID_PREDICATE_ERROR... + d c 1206 + d XML_XPATH_EXPR_ERROR... + d c 1207 + d XML_XPATH_UNCLOSED_ERROR... + d c 1208 + d XML_XPATH_UNKNOWN_FUNC_ERROR... + d c 1209 + d XML_XPATH_INVALID_OPERAND... + d c 1210 + d XML_XPATH_INVALID_TYPE... + d c 1211 + d XML_XPATH_INVALID_ARITY... + d c 1212 + d XML_XPATH_INVALID_CTXT_SIZE... + d c 1213 + d XML_XPATH_INVALID_CTXT_POSITION... + d c 1214 + d XML_XPATH_MEMORY_ERROR... + d c 1215 + d XML_XPTR_SYNTAX_ERROR... + d c 1216 + d XML_XPTR_RESOURCE_ERROR... + d c 1217 + d XML_XPTR_SUB_RESOURCE_ERROR... + d c 1218 + d XML_XPATH_UNDEF_PREFIX_ERROR... + d c 1219 + d XML_XPATH_ENCODING_ERROR... + d c 1220 + d XML_XPATH_INVALID_CHAR_ERROR... + d c 1231 + d XML_TREE_INVALID_HEX... + d c 1300 + d XML_TREE_INVALID_DEC... + d c 1301 + d XML_TREE_UNTERMINATED_ENTITY... + d c 1302 + d XML_TREE_NOT_UTF8... + d c 1303 + d XML_SAVE_NOT_UTF8... + d c 1400 + d XML_SAVE_CHAR_INVALID... + d c 1401 + d XML_SAVE_NO_DOCTYPE... + d c 1402 + d XML_SAVE_UNKNOWN_ENCODING... + d c 1403 + d XML_REGEXP_COMPILE_ERROR... + d c 1403 + d XML_IO_UNKNOWN... + d c 1500 + d XML_IO_EACCES c 1501 + d XML_IO_EAGAIN c 1502 + d XML_IO_EBADF c 1503 + d XML_IO_EBADMSG... + d c 1504 + d XML_IO_EBUSY c 1505 + d XML_IO_ECANCELED... + d c 1506 + d XML_IO_ECHILD c 1507 + d XML_IO_EDEADLK... + d c 1508 + d XML_IO_EDOM c 1509 + d XML_IO_EEXIST c 1510 + d XML_IO_EFAULT c 1511 + d XML_IO_EFBIG c 1512 + d XML_IO_EINPROGRESS... + d c 1513 + d XML_IO_EINTR c 1514 + d XML_IO_EINVAL c 1515 + d XML_IO_EIO c 1516 + d XML_IO_EISDIR c 1517 + d XML_IO_EMFILE c 1518 + d XML_IO_EMLINK c 1519 + d XML_IO_EMSGSIZE... + d c 1520 + d XML_IO_ENAMETOOLONG... + d c 1521 + d XML_IO_ENFILE c 1522 + d XML_IO_ENODEV c 1523 + d XML_IO_ENOENT c 1524 + d XML_IO_ENOEXEC... + d c 1525 + d XML_IO_ENOLCK c 1526 + d XML_IO_ENOMEM c 1527 + d XML_IO_ENOSPC c 1528 + d XML_IO_ENOSYS c 1529 + d XML_IO_ENOTDIR... + d c 1530 + d XML_IO_ENOTEMPTY... + d c 1531 + d XML_IO_ENOTSUP... + d c 1532 + d XML_IO_ENOTTY c 1533 + d XML_IO_ENXIO c 1534 + d XML_IO_EPERM c 1535 + d XML_IO_EPIPE c 1536 + d XML_IO_ERANGE c 1537 + d XML_IO_EROFS c 1538 + d XML_IO_ESPIPE c 1539 + d XML_IO_ESRCH c 1540 + d XML_IO_ETIMEDOUT... + d c 1541 + d XML_IO_EXDEV c 1542 + d XML_IO_NETWORK_ATTEMPT... + d c 1543 + d XML_IO_ENCODER... + d c 1544 + d XML_IO_FLUSH c 1545 + d XML_IO_WRITE c 1546 + d XML_IO_NO_INPUT... + d c 1547 + d XML_IO_BUFFER_FULL... + d c 1548 + d XML_IO_LOAD_ERROR... + d c 1549 + d XML_IO_ENOTSOCK... + d c 1550 + d XML_IO_EISCONN... + d c 1551 + d XML_IO_ECONNREFUSED... + d c 1552 + d XML_IO_ENETUNREACH... + d c 1553 + d XML_IO_EADDRINUSE... + d c 1554 + d XML_IO_EALREADY... + d c 1555 + d XML_IO_EAFNOSUPPORT... + d c 1556 + d XML_XINCLUDE_RECURSION... + d c 1600 + d XML_XINCLUDE_PARSE_VALUE... + d c 1601 + d XML_XINCLUDE_ENTITY_DEF_MISMATCH... + d c 1602 + d XML_XINCLUDE_NO_HREF... + d c 1603 + d XML_XINCLUDE_NO_FALLBACK... + d c 1604 + d XML_XINCLUDE_HREF_URI... + d c 1605 + d XML_XINCLUDE_TEXT_FRAGMENT... + d c 1606 + d XML_XINCLUDE_TEXT_DOCUMENT... + d c 1607 + d XML_XINCLUDE_INVALID_CHAR... + d c 1608 + d XML_XINCLUDE_BUILD_FAILED... + d c 1609 + d XML_XINCLUDE_UNKNOWN_ENCODING... + d c 1610 + d XML_XINCLUDE_MULTIPLE_ROOT... + d c 1611 + d XML_XINCLUDE_XPTR_FAILED... + d c 1612 + d XML_XINCLUDE_XPTR_RESULT... + d c 1613 + d XML_XINCLUDE_INCLUDE_IN_INCLUDE... + d c 1614 + d XML_XINCLUDE_FALLBACKS_IN_INCLUDE... + d c 1615 + d XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE... + d c 1616 + d XML_XINCLUDE_DEPRECATED_NS... + d c 1617 + d XML_XINCLUDE_FRAGMENT_ID... + d c 1618 + d XML_CATALOG_MISSING_ATTR... + d c 1650 + d XML_CATALOG_ENTRY_BROKEN... + d c 1651 + d XML_CATALOG_PREFER_VALUE... + d c 1652 + d XML_CATALOG_NOT_CATALOG... + d c 1653 + d XML_CATALOG_RECURSION... + d c 1654 + d XML_SCHEMAP_PREFIX_UNDEFINED... + d c 1700 + d XML_SCHEMAP_ATTRFORMDEFAULT_VALUE... + d c 1701 + d XML_SCHEMAP_ATTRGRP_NONAME_NOREF... + d c 1702 + d XML_SCHEMAP_ATTR_NONAME_NOREF... + d c 1703 + d XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF... + d c 1704 + d XML_SCHEMAP_ELEMFORMDEFAULT_VALUE... + d c 1705 + d XML_SCHEMAP_ELEM_NONAME_NOREF... + d c 1706 + d XML_SCHEMAP_EXTENSION_NO_BASE... + d c 1707 + d XML_SCHEMAP_FACET_NO_VALUE... + d c 1708 + d XML_SCHEMAP_FAILED_BUILD_IMPORT... + d c 1709 + d XML_SCHEMAP_GROUP_NONAME_NOREF... + d c 1710 + d XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI... + d c 1711 + d XML_SCHEMAP_IMPORT_REDEFINE_NSNAME... + d c 1712 + d XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI... + d c 1713 + d XML_SCHEMAP_INVALID_BOOLEAN... + d c 1714 + d XML_SCHEMAP_INVALID_ENUM... + d c 1715 + d XML_SCHEMAP_INVALID_FACET... + d c 1716 + d XML_SCHEMAP_INVALID_FACET_VALUE... + d c 1717 + d XML_SCHEMAP_INVALID_MAXOCCURS... + d c 1718 + d XML_SCHEMAP_INVALID_MINOCCURS... + d c 1719 + d XML_SCHEMAP_INVALID_REF_AND_SUBTYPE... + d c 1720 + d XML_SCHEMAP_INVALID_WHITE_SPACE... + d c 1721 + d XML_SCHEMAP_NOATTR_NOREF... + d c 1722 + d XML_SCHEMAP_NOTATION_NO_NAME... + d c 1723 + d XML_SCHEMAP_NOTYPE_NOREF... + d c 1724 + d XML_SCHEMAP_REF_AND_SUBTYPE... + d c 1725 + d XML_SCHEMAP_RESTRICTION_NONAME_NOREF... + d c 1726 + d XML_SCHEMAP_SIMPLETYPE_NONAME... + d c 1727 + d XML_SCHEMAP_TYPE_AND_SUBTYPE... + d c 1728 + d XML_SCHEMAP_UNKNOWN_ALL_CHILD... + d c 1729 + d XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD... + d c 1730 + d XML_SCHEMAP_UNKNOWN_ATTR_CHILD... + d c 1731 + d XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD... + d c 1732 + d XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP... + d c 1733 + d XML_SCHEMAP_UNKNOWN_BASE_TYPE... + d c 1734 + d XML_SCHEMAP_UNKNOWN_CHOICE_CHILD... + d c 1735 + d XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD... + d c 1736 + d XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD... + d c 1737 + d XML_SCHEMAP_UNKNOWN_ELEM_CHILD... + d c 1738 + d XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD... + d c 1739 + d XML_SCHEMAP_UNKNOWN_FACET_CHILD... + d c 1740 + d XML_SCHEMAP_UNKNOWN_FACET_TYPE... + d c 1741 + d XML_SCHEMAP_UNKNOWN_GROUP_CHILD... + d c 1742 + d XML_SCHEMAP_UNKNOWN_IMPORT_CHILD... + d c 1743 + d XML_SCHEMAP_UNKNOWN_LIST_CHILD... + d c 1744 + d XML_SCHEMAP_UNKNOWN_NOTATION_CHILD... + d c 1745 + d XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD... + d c 1746 + d XML_SCHEMAP_UNKNOWN_REF... + d c 1747 + d XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD... + d c 1748 + d XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD... + d c 1749 + d XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD... + d c 1750 + d XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD... + d c 1751 + d XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD... + d c 1752 + d XML_SCHEMAP_UNKNOWN_TYPE... + d c 1753 + d XML_SCHEMAP_UNKNOWN_UNION_CHILD... + d c 1754 + d XML_SCHEMAP_ELEM_DEFAULT_FIXED... + d c 1755 + d XML_SCHEMAP_REGEXP_INVALID... + d c 1756 + d XML_SCHEMAP_FAILED_LOAD... + d c 1757 + d XML_SCHEMAP_NOTHING_TO_PARSE... + d c 1758 + d XML_SCHEMAP_NOROOT... + d c 1759 + d XML_SCHEMAP_REDEFINED_GROUP... + d c 1760 + d XML_SCHEMAP_REDEFINED_TYPE... + d c 1761 + d XML_SCHEMAP_REDEFINED_ELEMENT... + d c 1762 + d XML_SCHEMAP_REDEFINED_ATTRGROUP... + d c 1763 + d XML_SCHEMAP_REDEFINED_ATTR... + d c 1764 + d XML_SCHEMAP_REDEFINED_NOTATION... + d c 1765 + d XML_SCHEMAP_FAILED_PARSE... + d c 1766 + d XML_SCHEMAP_UNKNOWN_PREFIX... + d c 1767 + d XML_SCHEMAP_DEF_AND_PREFIX... + d c 1768 + d XML_SCHEMAP_UNKNOWN_INCLUDE_CHILD... + d c 1769 + d XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URI... + d c 1770 + d XML_SCHEMAP_INCLUDE_SCHEMA_NO_URI... + d c 1771 + d XML_SCHEMAP_NOT_SCHEMA... + d c 1772 + d XML_SCHEMAP_UNKNOWN_MEMBER_TYPE... + d c 1773 + d XML_SCHEMAP_INVALID_ATTR_USE... + d c 1774 + d XML_SCHEMAP_RECURSIVE... + d c 1775 + d XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE... + d c 1776 + d XML_SCHEMAP_INVALID_ATTR_COMBINATION... + d c 1777 + d XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATION... + d c 1778 + d XML_SCHEMAP_MISSING_SIMPLETYPE_CHILD... + d c 1779 + d XML_SCHEMAP_INVALID_ATTR_NAME... + d c 1780 + d XML_SCHEMAP_REF_AND_CONTENT... + d c 1781 + d XML_SCHEMAP_CT_PROPS_CORRECT_1... + d c 1782 + d XML_SCHEMAP_CT_PROPS_CORRECT_2... + d c 1783 + d XML_SCHEMAP_CT_PROPS_CORRECT_3... + d c 1784 + d XML_SCHEMAP_CT_PROPS_CORRECT_4... + d c 1785 + d XML_SCHEMAP_CT_PROPS_CORRECT_5... + d c 1786 + d XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1... + d c 1787 + d XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1... + d c 1788 + d XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2... + d c 1789 + d XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2... + d c 1790 + d XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3... + d c 1791 + d XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBER... + d c 1792 + d XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE... + d c 1793 + d XML_SCHEMAP_UNION_NOT_EXPRESSIBLE... + d c 1794 + d XML_SCHEMAP_SRC_IMPORT_3_1... + d c 1795 + d XML_SCHEMAP_SRC_IMPORT_3_2... + d c 1796 + d XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1... + d c 1797 + d XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2... + d c 1798 + d XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3... + d c 1799 + d XML_SCHEMAP_COS_CT_EXTENDS_1_3... + d c 1800 + d XML_SCHEMAV_NOROOT... + d c 1801 + d XML_SCHEMAV_UNDECLAREDELEM... + d c 1802 + d XML_SCHEMAV_NOTTOPLEVEL... + d c 1803 + d XML_SCHEMAV_MISSING... + d c 1804 + d XML_SCHEMAV_WRONGELEM... + d c 1805 + d XML_SCHEMAV_NOTYPE... + d c 1806 + d XML_SCHEMAV_NOROLLBACK... + d c 1807 + d XML_SCHEMAV_ISABSTRACT... + d c 1808 + d XML_SCHEMAV_NOTEMPTY... + d c 1809 + d XML_SCHEMAV_ELEMCONT... + d c 1810 + d XML_SCHEMAV_HAVEDEFAULT... + d c 1811 + d XML_SCHEMAV_NOTNILLABLE... + d c 1812 + d XML_SCHEMAV_EXTRACONTENT... + d c 1813 + d XML_SCHEMAV_INVALIDATTR... + d c 1814 + d XML_SCHEMAV_INVALIDELEM... + d c 1815 + d XML_SCHEMAV_NOTDETERMINIST... + d c 1816 + d XML_SCHEMAV_CONSTRUCT... + d c 1817 + d XML_SCHEMAV_INTERNAL... + d c 1818 + d XML_SCHEMAV_NOTSIMPLE... + d c 1819 + d XML_SCHEMAV_ATTRUNKNOWN... + d c 1820 + d XML_SCHEMAV_ATTRINVALID... + d c 1821 + d XML_SCHEMAV_VALUE... + d c 1822 + d XML_SCHEMAV_FACET... + d c 1823 + d XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1... + d c 1824 + d XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2... + d c 1825 + d XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3... + d c 1826 + d XML_SCHEMAV_CVC_TYPE_3_1_1... + d c 1827 + d XML_SCHEMAV_CVC_TYPE_3_1_2... + d c 1828 + d XML_SCHEMAV_CVC_FACET_VALID... + d c 1829 + d XML_SCHEMAV_CVC_LENGTH_VALID... + d c 1830 + d XML_SCHEMAV_CVC_MINLENGTH_VALID... + d c 1831 + d XML_SCHEMAV_CVC_MAXLENGTH_VALID... + d c 1832 + d XML_SCHEMAV_CVC_MININCLUSIVE_VALID... + d c 1833 + d XML_SCHEMAV_CVC_MAXINCLUSIVE_VALID... + d c 1834 + d XML_SCHEMAV_CVC_MINEXCLUSIVE_VALID... + d c 1835 + d XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALID... + d c 1836 + d XML_SCHEMAV_CVC_TOTALDIGITS_VALID... + d c 1837 + d XML_SCHEMAV_CVC_FRACTIONDIGITS_VALID... + d c 1838 + d XML_SCHEMAV_CVC_PATTERN_VALID... + d c 1839 + d XML_SCHEMAV_CVC_ENUMERATION_VALID... + d c 1840 + d XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1... + d c 1841 + d XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2... + d c 1842 + d XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3... + d c 1843 + d XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4... + d c 1844 + d XML_SCHEMAV_CVC_ELT_1... + d c 1845 + d XML_SCHEMAV_CVC_ELT_2... + d c 1846 + d XML_SCHEMAV_CVC_ELT_3_1... + d c 1847 + d XML_SCHEMAV_CVC_ELT_3_2_1... + d c 1848 + d XML_SCHEMAV_CVC_ELT_3_2_2... + d c 1849 + d XML_SCHEMAV_CVC_ELT_4_1... + d c 1850 + d XML_SCHEMAV_CVC_ELT_4_2... + d c 1851 + d XML_SCHEMAV_CVC_ELT_4_3... + d c 1852 + d XML_SCHEMAV_CVC_ELT_5_1_1... + d c 1853 + d XML_SCHEMAV_CVC_ELT_5_1_2... + d c 1854 + d XML_SCHEMAV_CVC_ELT_5_2_1... + d c 1855 + d XML_SCHEMAV_CVC_ELT_5_2_2_1... + d c 1856 + d XML_SCHEMAV_CVC_ELT_5_2_2_2_1... + d c 1857 + d XML_SCHEMAV_CVC_ELT_5_2_2_2_2... + d c 1858 + d XML_SCHEMAV_CVC_ELT_6... + d c 1859 + d XML_SCHEMAV_CVC_ELT_7... + d c 1860 + d XML_SCHEMAV_CVC_ATTRIBUTE_1... + d c 1861 + d XML_SCHEMAV_CVC_ATTRIBUTE_2... + d c 1862 + d XML_SCHEMAV_CVC_ATTRIBUTE_3... + d c 1863 + d XML_SCHEMAV_CVC_ATTRIBUTE_4... + d c 1864 + d XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1... + d c 1865 + d XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1... + d c 1866 + d XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2... + d c 1867 + d XML_SCHEMAV_CVC_COMPLEX_TYPE_4... + d c 1868 + d XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1... + d c 1869 + d XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2... + d c 1870 + d XML_SCHEMAV_ELEMENT_CONTENT... + d c 1871 + d XML_SCHEMAV_DOCUMENT_ELEMENT_MISSING... + d c 1872 + d XML_SCHEMAV_CVC_COMPLEX_TYPE_1... + d c 1873 + d XML_SCHEMAV_CVC_AU... + d c 1874 + d XML_SCHEMAV_CVC_TYPE_1... + d c 1875 + d XML_SCHEMAV_CVC_TYPE_2... + d c 1876 + d XML_SCHEMAV_CVC_IDC... + d c 1877 + d XML_SCHEMAV_CVC_WILDCARD... + d c 1878 + d XML_SCHEMAV_MISC... + d c 1879 + d XML_XPTR_UNKNOWN_SCHEME... + d c 1900 + d XML_XPTR_CHILDSEQ_START... + d c 1901 + d XML_XPTR_EVAL_FAILED... + d c 1902 + d XML_XPTR_EXTRA_OBJECTS... + d c 1903 + d XML_C14N_CREATE_CTXT... + d c 1950 + d XML_C14N_REQUIRES_UTF8... + d c 1951 + d XML_C14N_CREATE_STACK... + d c 1952 + d XML_C14N_INVALID_NODE... + d c 1953 + d XML_C14N_UNKNOW_NODE... + d c 1954 + d XML_C14N_RELATIVE_NAMESPACE... + d c 1955 + d XML_FTP_PASV_ANSWER... + d c 2000 + d XML_FTP_EPSV_ANSWER... + d c 2001 + d XML_FTP_ACCNT... + d c 2002 + d XML_FTP_URL_SYNTAX... + d c 2003 + d XML_HTTP_URL_SYNTAX... + d c 2020 + d XML_HTTP_USE_IP... + d c 2021 + d XML_HTTP_UNKNOWN_HOST... + d c 2022 + d XML_SCHEMAP_SRC_SIMPLE_TYPE_1... + d c 3000 + d XML_SCHEMAP_SRC_SIMPLE_TYPE_2... + d c 3001 + d XML_SCHEMAP_SRC_SIMPLE_TYPE_3... + d c 3002 + d XML_SCHEMAP_SRC_SIMPLE_TYPE_4... + d c 3003 + d XML_SCHEMAP_SRC_RESOLVE... + d c 3004 + d XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE... + d c 3005 + d XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE... + d c 3006 + d XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES... + d c 3007 + d XML_SCHEMAP_ST_PROPS_CORRECT_1... + d c 3008 + d XML_SCHEMAP_ST_PROPS_CORRECT_2... + d c 3009 + d XML_SCHEMAP_ST_PROPS_CORRECT_3... + d c 3010 + d XML_SCHEMAP_COS_ST_RESTRICTS_1_1... + d c 3011 + d XML_SCHEMAP_COS_ST_RESTRICTS_1_2... + d c 3012 + d XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1... + d c 3013 + d XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2... + d c 3014 + d XML_SCHEMAP_COS_ST_RESTRICTS_2_1... + d c 3015 + d XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1... + d c 3016 + d XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2... + d c 3017 + d XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1... + d c 3018 + d XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2... + d c 3019 + d XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3... + d c 3020 + d XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4... + d c 3021 + d XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5... + d c 3022 + d XML_SCHEMAP_COS_ST_RESTRICTS_3_1... + d c 3023 + d XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1... + d c 3024 + d XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2... + d c 3025 + d XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2... + d c 3026 + d XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1... + d c 3027 + d XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3... + d c 3028 + d XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4... + d c 3029 + d XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5... + d c 3030 + d XML_SCHEMAP_COS_ST_DERIVED_OK_2_1... + d c 3031 + d XML_SCHEMAP_COS_ST_DERIVED_OK_2_2... + d c 3032 + d XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED... + d c 3033 + d XML_SCHEMAP_S4S_ELEM_MISSING... + d c 3034 + d XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED... + d c 3035 + d XML_SCHEMAP_S4S_ATTR_MISSING... + d c 3036 + d XML_SCHEMAP_S4S_ATTR_INVALID_VALUE... + d c 3037 + d XML_SCHEMAP_SRC_ELEMENT_1... + d c 3038 + d XML_SCHEMAP_SRC_ELEMENT_2_1... + d c 3039 + d XML_SCHEMAP_SRC_ELEMENT_2_2... + d c 3040 + d XML_SCHEMAP_SRC_ELEMENT_3... + d c 3041 + d XML_SCHEMAP_P_PROPS_CORRECT_1... + d c 3042 + d XML_SCHEMAP_P_PROPS_CORRECT_2_1... + d c 3043 + d XML_SCHEMAP_P_PROPS_CORRECT_2_2... + d c 3044 + d XML_SCHEMAP_E_PROPS_CORRECT_2... + d c 3045 + d XML_SCHEMAP_E_PROPS_CORRECT_3... + d c 3046 + d XML_SCHEMAP_E_PROPS_CORRECT_4... + d c 3047 + d XML_SCHEMAP_E_PROPS_CORRECT_5... + d c 3048 + d XML_SCHEMAP_E_PROPS_CORRECT_6... + d c 3049 + d XML_SCHEMAP_SRC_INCLUDE... + d c 3050 + d XML_SCHEMAP_SRC_ATTRIBUTE_1... + d c 3051 + d XML_SCHEMAP_SRC_ATTRIBUTE_2... + d c 3052 + d XML_SCHEMAP_SRC_ATTRIBUTE_3_1... + d c 3053 + d XML_SCHEMAP_SRC_ATTRIBUTE_3_2... + d c 3054 + d XML_SCHEMAP_SRC_ATTRIBUTE_4... + d c 3055 + d XML_SCHEMAP_NO_XMLNS... + d c 3056 + d XML_SCHEMAP_NO_XSI... + d c 3057 + d XML_SCHEMAP_COS_VALID_DEFAULT_1... + d c 3058 + d XML_SCHEMAP_COS_VALID_DEFAULT_2_1... + d c 3059 + d XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1... + d c 3060 + d XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2... + d c 3061 + d XML_SCHEMAP_CVC_SIMPLE_TYPE... + d c 3062 + d XML_SCHEMAP_COS_CT_EXTENDS_1_1... + d c 3063 + d XML_SCHEMAP_SRC_IMPORT_1_1... + d c 3064 + d XML_SCHEMAP_SRC_IMPORT_1_2... + d c 3065 + d XML_SCHEMAP_SRC_IMPORT_2... + d c 3066 + d XML_SCHEMAP_SRC_IMPORT_2_1... + d c 3067 + d XML_SCHEMAP_SRC_IMPORT_2_2... + d c 3068 + d XML_SCHEMAP_INTERNAL... Non W3C + d c 3069 + d XML_SCHEMAP_NOT_DETERMINISTIC... + d c 3070 + d XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1... + d c 3071 + d XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2... + d c 3072 + d XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3... + d c 3073 + d XML_SCHEMAP_MG_PROPS_CORRECT_1... + d c 3074 + d XML_SCHEMAP_MG_PROPS_CORRECT_2... + d c 3075 + d XML_SCHEMAP_SRC_CT_1... + d c 3076 + d XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3... + d c 3077 + d XML_SCHEMAP_AU_PROPS_CORRECT_2... + d c 3078 + d XML_SCHEMAP_A_PROPS_CORRECT_2... + d c 3079 + d XML_SCHEMAP_C_PROPS_CORRECT... + d c 3080 + d XML_SCHEMAP_SRC_REDEFINE... + d c 3081 + d XML_SCHEMAP_SRC_IMPORT... + d c 3082 + d XML_SCHEMAP_WARN_SKIP_SCHEMA... + d c 3083 + d XML_SCHEMAP_WARN_UNLOCATED_SCHEMA... + d c 3084 + d XML_SCHEMAP_WARN_ATTR_REDECL_PROH... + d c 3085 + d XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH... + d c 3086 + d XML_SCHEMAP_AG_PROPS_CORRECT... + d c 3087 + d XML_SCHEMAP_COS_CT_EXTENDS_1_2... + d c 3088 + d XML_SCHEMAP_AU_PROPS_CORRECT... + d c 3089 + d XML_SCHEMAP_A_PROPS_CORRECT_3... + d c 3090 + d XML_SCHEMAP_COS_ALL_LIMITED... + d c 3091 + d XML_SCHEMATRONV_ASSERT... + d c 4000 + d XML_SCHEMATRONV_REPORT... + d c 4001 + d XML_MODULE_OPEN... + d c 4900 + d XML_MODULE_CLOSE... + d c 4901 + d XML_CHECK_FOUND_ELEMENT... + d c 5000 + d XML_CHECK_FOUND_ATTRIBUTE... + d c 5001 + d XML_CHECK_FOUND_TEXT... + d c 5002 + d XML_CHECK_FOUND_CDATA... + d c 5003 + d XML_CHECK_FOUND_ENTITYREF... + d c 5004 + d XML_CHECK_FOUND_ENTITY... + d c 5005 + d XML_CHECK_FOUND_PI... + d c 5006 + d XML_CHECK_FOUND_COMMENT... + d c 5007 + d XML_CHECK_FOUND_DOCTYPE... + d c 5008 + d XML_CHECK_FOUND_FRAGMENT... + d c 5009 + d XML_CHECK_FOUND_NOTATION... + d c 5010 + d XML_CHECK_UNKNOWN_NODE... + d c 5011 + d XML_CHECK_ENTITY_TYPE... + d c 5012 + d XML_CHECK_NO_PARENT... + d c 5013 + d XML_CHECK_NO_DOC... + d c 5014 + d XML_CHECK_NO_NAME... + d c 5015 + d XML_CHECK_NO_ELEM... + d c 5016 + d XML_CHECK_WRONG_DOC... + d c 5017 + d XML_CHECK_NO_PREV... + d c 5018 + d XML_CHECK_WRONG_PREV... + d c 5019 + d XML_CHECK_NO_NEXT... + d c 5020 + d XML_CHECK_WRONG_NEXT... + d c 5021 + d XML_CHECK_NOT_DTD... + d c 5022 + d XML_CHECK_NOT_ATTR... + d c 5023 + d XML_CHECK_NOT_ATTR_DECL... + d c 5024 + d XML_CHECK_NOT_ELEM_DECL... + d c 5025 + d XML_CHECK_NOT_ENTITY_DECL... + d c 5026 + d XML_CHECK_NOT_NS_DECL... + d c 5027 + d XML_CHECK_NO_HREF... + d c 5028 + d XML_CHECK_WRONG_PARENT... + d c 5029 + d XML_CHECK_NS_SCOPE... + d c 5030 + d XML_CHECK_NS_ANCESTOR... + d c 5031 + d XML_CHECK_NOT_UTF8... + d c 5032 + d XML_CHECK_NO_DICT... + d c 5033 + d XML_CHECK_NOT_NCNAME... + d c 5034 + d XML_CHECK_OUTSIDE_DICT... + d c 5035 + d XML_CHECK_WRONG_NAME... + d c 5036 + d XML_CHECK_NAME_NOT_NULL... + d c 5037 + d XML_I18N_NO_NAME... + d c 6000 + d XML_I18N_NO_HANDLER... + d c 6001 + d XML_I18N_EXCESS_HANDLER... + d c 6002 + d XML_I18N_CONV_FAILED... + d c 6003 + d XML_I18N_NO_OUTPUT... + d c 6004 + d XML_BUF_OVERFLOW... + d c 7000 + + * xmlGenericErrorFunc: + * @ctx: a parsing context + * @msg: the message + * @...: the extra arguments of the varags to format the message + * + * Signature of the function to use when there is an error and + * no parsing or validity context available . + + d xmlGenericErrorFunc... + d s * based(######typedef######) + d procptr + + * xmlStructuredErrorFunc: + * @userData: user provided data for the error callback + * @error: the error being raised. + * + * Signature of the function to use when there is an error and + * the module handles the new error reporting mechanism. + + d xmlStructuredErrorFunc... + d s * based(######typedef######) + d procptr + + * Use the following function to reset the two global variables + * xmlGenericError and xmlGenericErrorContext. + + d xmlSetGenericErrorFunc... + d pr extproc('xmlSetGenericErrorFunc') + d ctx * value void * + d handler value like(xmlGenericErrorFunc) + + d initGenericErrorDefaultFunc... + d pr extproc( + d 'initGenericErrorDefaultFunc') + d handler like(xmlGenericErrorFunc) + + d xmlSetStructuredErrorFunc... + d pr extproc('xmlSetStructuredErrorFunc') + d ctx * value void * + d handler value like(xmlGenericErrorFunc) + + * Default message routines used by SAX and Valid context for error + * and warning reporting. + * + * These are vararg functions. + * The following prototypes support up to 8 pointer arguments. + * Other argument signature can be achieved by defining alternate + * prototypes redirected to the same function. + + d xmlParserError pr extproc('xmlParserError') + d ctx * value void * + d msg * value options(*string) const char * + d handler value like(xmlGenericErrorFunc) + d arg1 * value options(*string: *nopass) + d arg2 * value options(*string: *nopass) + d arg3 * value options(*string: *nopass) + d arg4 * value options(*string: *nopass) + d arg5 * value options(*string: *nopass) + d arg6 * value options(*string: *nopass) + d arg7 * value options(*string: *nopass) + d arg8 * value options(*string: *nopass) + + d xmlParserWarning... + d pr extproc('xmlParserWarning') + d ctx * value void * + d msg * value options(*string) const char * + d handler value like(xmlGenericErrorFunc) + d arg1 * value options(*string: *nopass) + d arg2 * value options(*string: *nopass) + d arg3 * value options(*string: *nopass) + d arg4 * value options(*string: *nopass) + d arg5 * value options(*string: *nopass) + d arg6 * value options(*string: *nopass) + d arg7 * value options(*string: *nopass) + d arg8 * value options(*string: *nopass) + + d xmlParserValidityError... + d pr extproc('xmlParserValidityError') + d ctx * value void * + d msg * value options(*string) const char * + d handler value like(xmlGenericErrorFunc) + d arg1 * value options(*string: *nopass) + d arg2 * value options(*string: *nopass) + d arg3 * value options(*string: *nopass) + d arg4 * value options(*string: *nopass) + d arg5 * value options(*string: *nopass) + d arg6 * value options(*string: *nopass) + d arg7 * value options(*string: *nopass) + d arg8 * value options(*string: *nopass) + + d xmlParserValidityWarning... + d pr extproc('xmlParserValidityWarning') + d ctx * value void * + d msg * value options(*string) const char * + d handler value like(xmlGenericErrorFunc) + d arg1 * value options(*string: *nopass) + d arg2 * value options(*string: *nopass) + d arg3 * value options(*string: *nopass) + d arg4 * value options(*string: *nopass) + d arg5 * value options(*string: *nopass) + d arg6 * value options(*string: *nopass) + d arg7 * value options(*string: *nopass) + d arg8 * value options(*string: *nopass) + + d xmlParserPrintFileInfo... + d pr extproc('xmlParserPrintFileInfo') + d input value like(xmlParserInputPtr) + + d xmlParserPrintFileContext... + d pr extproc('xmlParserPrintFileContext') + d input value like(xmlParserInputPtr) + + * Extended error information routines + + d xmlGetLastError... + d pr extproc('xmlGetLastError') + d like(xmlErrorPtr) + + d xmlResetLastError... + d pr extproc('xmlResetLastError') + + d xmlCtxtGetLastError... + d pr extproc('xmlCtxtGetLastError') + d like(xmlErrorPtr) + d ctx * value void * + + d xmlCtxtResetLastError... + d pr extproc('xmlCtxtResetLastError') + d ctx * value void * + + d xmlResetError pr extproc('xmlResetError') + d err value like(xmlErrorPtr) + + d xmlCopyError pr extproc('xmlCopyError') + d like(xmlCint) + d from value like(xmlErrorPtr) + d to value like(xmlErrorPtr) + + /endif XML_ERROR_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlexports.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlexports.rpgle new file mode 100644 index 0000000..9a6fd10 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlexports.rpgle @@ -0,0 +1,15 @@ + * Summary: macros for marking symbols as exportable/importable. + * Description: macros for marking symbols as exportable/importable. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_EXPORTS_H__) + /define XML_EXPORTS_H__ + + * The definition in the original C header file are not appliable to + * ILE/RPG. + * Therefore this file is intentionally empty. + + /endif XML_EXPORTS_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlmemory.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlmemory.rpgle new file mode 100644 index 0000000..472e941 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlmemory.rpgle @@ -0,0 +1,247 @@ + * Summary: interface for the memory allocator + * Description: provides interfaces for the memory allocator, + * including debugging capabilities. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(DEBUG_MEMORY_ALLOC__) + /define DEBUG_MEMORY_ALLOC__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + + * DEBUG_MEMORY: + * + * DEBUG_MEMORY replaces the allocator with a collect and debug + * shell to the libc allocator. + * DEBUG_MEMORY should only be activated when debugging + * libxml i.e. if libxml has been configured with --with-debug-mem too. + + * /define DEBUG_MEMORY_FREED + * /define DEBUG_MEMORY_LOCATION + + /if defined(DEBUG) + /if not defined(DEBUG_MEMORY) + /define DEBUG_MEMORY + /endif + /endif + + * DEBUG_MEMORY_LOCATION: + * + * DEBUG_MEMORY_LOCATION should be activated only when debugging + * libxml i.e. if libxml has been configured with --with-debug-mem too. + + /if defined(DEBUG_MEMORY_LOCATION) + /endif + + * The XML memory wrapper support 4 basic overloadable functions. + + * xmlFreeFunc: + * @mem: an already allocated block of memory + * + * Signature for a free() implementation. + + d xmlFreeFunc s * based(######typedef######) + d procptr + + * xmlMallocFunc: + * @size: the size requested in bytes + * + * Signature for a malloc() implementation. + * + * Returns a pointer to the newly allocated block or NULL in case of error. + + d xmlMallocFunc s * based(######typedef######) + d procptr + + * xmlReallocFunc: + * @mem: an already allocated block of memory + * @size: the new size requested in bytes + * + * Signature for a realloc() implementation. + * + * Returns a pointer to the newly reallocated block or NULL in case of error. + + d xmlReallocFunc s * based(######typedef######) + d procptr + + * xmlStrdupFunc: + * @str: a zero terminated string + * + * Signature for an strdup() implementation. + * + * Returns the copy of the string or NULL in case of error. + + d xmlStrdupFunc s * based(######typedef######) + d procptr + + * The 5 interfaces used for all memory handling within libxml. + * Since indirect calls are only supported via a based prototype, + * storage is accessed via functions. + + d get_xmlFree pr extproc('__get_xmlFree') + d like(xmlFreeFunc) + + d set_xmlFree pr extproc('__set_xmlFree') + d func value like(xmlFreeFunc) + + d xmlFree pr extproc('__call_xmlFree') + d mem * value void * + + d get_xmlMalloc pr extproc('__get_xmlMalloc') + d like(xmlMallocFunc) + + d set_xmlMalloc pr extproc('__set_xmlMalloc') + d func value like(xmlMallocFunc) + + d xmlMalloc pr * extproc('__call_xmlMalloc') void * + d size value like(xmlCsize_t) + + d get_xmlMallocAtomic... + d pr extproc('__get_xmlMallocAtomic') + d like(xmlMallocFunc) + + d set_xmlMallocAtomic... + d pr extproc('__set_xmlMallocAtomic') + d func value like(xmlMallocFunc) + + d xmlMallocAtomic... + d pr * extproc('__call_xmlMallocAtomic') void * + d size value like(xmlCsize_t) + + d get_xmlRealloc pr extproc('__get_xmlRealloc') + d like(xmlReallocFunc) + + d set_xmlRealloc pr extproc('__set_xmlRealloc') + d func value like(xmlReallocFunc) + + d xmlRealloc pr * extproc('__call_xmlRealloc') void * + d mem * value void * + d size value like(xmlCsize_t) + + d get_xmlMemStrdup... + d pr extproc('__get_xmlMemStrdup') + d like(xmlStrdupFunc) + + d set_xmlMemStrdup... + d pr extproc('__set_xmlMemstrdup') + d func value like(xmlStrdupFunc) + + d xmlMemStrdup pr * extproc('__call_xmlMemStrdup') void * + d str * value options(*string) const char * + + * The way to overload the existing functions. + * The xmlGc function have an extra entry for atomic block + * allocations useful for garbage collected memory allocators + + d xmlMemSetup pr extproc('xmlMemSetup') + d like(xmlCint) + d freeFunc value like(xmlFreeFunc) + d mallocFunc value like(xmlMallocFunc) + d reallocFunc value like(xmlReallocFunc) + d strdupFunc value like(xmlStrdupFunc) + + d xmlMemGet pr extproc('xmlMemGet') + d like(xmlCint) + d freeFunc like(xmlFreeFunc) + d mallocFunc like(xmlMallocFunc) + d reallocFunc like(xmlReallocFunc) + d strdupFunc like(xmlStrdupFunc) + + d xmlGcMemSetup pr extproc('xmlGcMemSetup') + d like(xmlCint) + d freeFunc value like(xmlFreeFunc) + d mallocFunc value like(xmlMallocFunc) + d mallocAtomicFunc... + d value like(xmlMallocFunc) + d reallocFunc value like(xmlReallocFunc) + d strdupFunc value like(xmlStrdupFunc) + + d xmlGcMemGet pr extproc('xmlGcMemGet') + d like(xmlCint) + d freeFunc like(xmlFreeFunc) + d mallocFunc like(xmlMallocFunc) + d mallocAtomicFunc... + d like(xmlMallocFunc) + d reallocFunc like(xmlReallocFunc) + d strdupFunc like(xmlStrdupFunc) + + * Initialization of the memory layer. + + d xmlInitMemory pr extproc('xmlInitMemory') + d like(xmlCint) + + * Cleanup of the memory layer. + + d xmlCleanupMemory... + d pr extproc('xmlCleanupMemory') + + * These are specific to the XML debug memory wrapper. + + d xmlMemUsed pr extproc('xmlMemUsed') + d like(xmlCint) + + d xmlMemBlocks pr extproc('xmlMemBlocks') + d like(xmlCint) + + d xmlMemDisplay pr extproc('xmlMemDisplay') + d fp * value FILE * + + d xmlMmDisplayLast... + d pr extproc('xmlMemDisplayLast') + d fp * value FILE * + d nbBytes value like(xmlClong) + + d xmlMemShow pr extproc('xmlMemShow') + d fp * value FILE * + d nr value like(xmlCint) + + d xmlMemoryDump pr extproc('xmlMemoryDump') + + d xmlMemMalloc pr * extproc('xmlMemMalloc') void * + d size value like(xmlCsize_t) + + d xmlMemRealloc pr * extproc('xmlMemRealloc') void * + d ptr * value void * + d size value like(xmlCsize_t) + + d xmlMemFree pr extproc('xmlMemFree') + d ptr * value void * + + d xmlMemoryStrdup... + d pr * extproc('xmlMemoryStrdup') char * + d str * value options(*string) const char * + + d xmlMallocLoc pr * extproc('xmlMallocLoc') void * + d size value like(xmlCsize_t) + d file * value options(*string) const char * + d line value like(xmlCint) + + d xmlReallocLoc pr * extproc('xmlReallocLoc') void * + d ptr * value void * + d size value like(xmlCsize_t) + d file * value options(*string) const char * + d line value like(xmlCint) + + d xmlMallocAtomicLoc... + d pr * extproc('xmlMallocAtomicLoc') void * + d size value like(xmlCsize_t) + d file * value options(*string) const char * + d line value like(xmlCint) + + d xmlMemStrdupLoc... + d pr * extproc('xmlMemStrdupLoc') char * + d str * value options(*string) const char * + d file * value options(*string) const char * + d line value like(xmlCint) + + /if not defined(XML_GLOBALS_H) + /if not defined(XML_THREADS_H__) + /include "libxmlrpg/threads" + /include "libxmlrpg/globals" + /endif + /endif + + /endif DEBUG_MEMORY_ALLOC__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlmodule.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlmodule.rpgle new file mode 100644 index 0000000..035254d --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlmodule.rpgle @@ -0,0 +1,57 @@ + * Summary: dynamic module loading + * Description: basic API for dynamic module loading, used by + * libexslt added in 2.6.17 + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_MODULE_H__) + /define XML_MODULE_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_MODULES_ENABLED) + + /include "libxmlrpg/xmlTypesC" + + * xmlModulePtr: + * + * A handle to a dynamically loaded module + + d xmlModulePtr s * based(######typedef######) + + * xmlModuleOption: + * + * enumeration of options that can be passed down to xmlModuleOpen() + + d xmlModuleOption... + d s based(######typedef######) + d like(xmlCenum) + d XML_MODULE_LAZY... Lazy binding + d c 1 + d XML_MODULE_LOCAL... Local binding + d c 2 + + d xmlModuleOpen pr extproc('xmlModuleOpen') + d like(xmlModulePtr) + d filename * value options(*string) const char * + d options value like(xmlCint) + + d xmlModuleSymbol... + d pr extproc('xmlModuleSymbol') + d like(xmlCint) + d module value like(xmlModulePtr) + d name * value options(*string) const char * + d result * void *(*) + + d xmlModuleClose pr extproc('xmlModuleClose') + d like(xmlCint) + d module value like(xmlModulePtr) + + d xmlModuleFree pr extproc('xmlModuleFree') + d like(xmlCint) + d module value like(xmlModulePtr) + + /endif LIBXML_MODULES_ENBLD + /endif XML_MODULE_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlreader.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlreader.rpgle new file mode 100644 index 0000000..f9ab207 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlreader.rpgle @@ -0,0 +1,668 @@ + * Summary: the XMLReader implementation + * Description: API of the XML streaming API based on C# interfaces. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_XMLREADER_H__) + /define XML_XMLREADER_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + /include "libxmlrpg/xmlIO" + + /if defined(LIBXML_SCHEMAS_ENABLED) + /include "libxmlrpg/relaxng" + /include "libxmlrpg/xmlschemas" + /endif + + * xmlParserSeverities: + * + * How severe an error callback is when the per-reader error callback API + * is used. + + d xmlParserSeverities... + d s based(######typedef######) + d like(xmlCenum) + d XML_PARSER_SEVERITY_VALIDITY_WARNING... + d c 1 + d XML_PARSER_SEVERITY_VALIDITY_ERROR... + d c 2 + d XML_PARSER_SEVERITY_WARNING... + d c 3 + d XML_PARSER_SEVERITY_ERROR... + d c 4 + + /if defined(LIBXML_READER_ENABLED) + + * xmlTextReaderMode: + * + * Internal state values for the reader. + + d xmlTextReaderMode... + d s based(######typedef######) + d like(xmlCenum) + d XML_TEXTREADER_MODE_INITIAL... + d c 0 + d XML_TEXTREADER_MODE_INTERACTIVE... + d c 1 + d XML_TEXTREADER_MODE_ERROR... + d c 2 + d XML_TEXTREADER_MODE_EOF... + d c 3 + d XML_TEXTREADER_MODE_CLOSED... + d c 4 + d XML_TEXTREADER_MODE_READING... + d c 5 + + * xmlParserProperties: + * + * Some common options to use with xmlTextReaderSetParserProp, but it + * is better to use xmlParserOption and the xmlReaderNewxxx and + * xmlReaderForxxx APIs now. + + d xmlParserProperties... + d s based(######typedef######) + d like(xmlCenum) + d XML_PARSER_LOADDTD... + d c 1 + d XML_PARSER_DEFAULTATTRS... + d c 2 + d XML_PARSER_VALIDATE... + d c 3 + d XML_PARSER_SUBST_ENTITIES... + d c 4 + + * xmlReaderTypes: + * + * Predefined constants for the different types of nodes. + + d xmlReaderTypes s based(######typedef######) + d like(xmlCenum) + d XML_READER_TYPE_NONE... + d c 0 + d XML_READER_TYPE_ELEMENT... + d c 1 + d XML_READER_TYPE_ATTRIBUTE... + d c 2 + d XML_READER_TYPE_TEXT... + d c 3 + d XML_READER_TYPE_CDATA... + d c 4 + d XML_READER_TYPE_ENTITY_REFERENCE... + d c 5 + d XML_READER_TYPE_ENTITY... + d c 6 + d XML_READER_TYPE_PROCESSING_INSTRUCTION... + d c 7 + d XML_READER_TYPE_COMMENT... + d c 8 + d XML_READER_TYPE_DOCUMENT... + d c 9 + d XML_READER_TYPE_DOCUMENT_TYPE... + d c 10 + d XML_READER_TYPE_DOCUMENT_FRAGMENT... + d c 11 + d XML_READER_TYPE_NOTATION... + d c 12 + d XML_READER_TYPE_WHITESPACE... + d c 13 + d XML_READER_TYPE_SIGNIFICANT_WHITESPACE... + d c 14 + d XML_READER_TYPE_END_ELEMENT... + d c 15 + d XML_READER_TYPE_END_ENTITY... + d c 16 + d XML_READER_TYPE_XML_DECLARATION... + d c 17 + + * xmlTextReaderPtr: + * + * Pointer to an xmlReader context. + + d xmlTextReaderPtr... + d s * based(######typedef######) + + * Constructors & Destructor + + d xmlNewTextReader... + d pr extproc('xmlNewTextReader') + d like(xmlTextReaderPtr) + d input value like(xmlParserInputBufferPtr) + d URI * value options(*string) const char * + + d xmlNewTextReaderFilename... + d pr extproc('xmlNewTextReaderFilename') + d like(xmlTextReaderPtr) + d URI * value options(*string) const char * + + d xmlFreeTextReader... + d pr extproc('xmlFreeTextReader') + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderSetup... + d pr extproc('xmlTextReaderSetup') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d input value like(xmlParserInputBufferPtr) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + * Iterators + + d xmlTextReaderRead... + d pr extproc('xmlTextReaderRead') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + /if defined(LIBXML_WRITER_ENABLED) + d xmlTextReaderReadInnerXml... + d pr * extproc('xmlTextReaderReadInnerXml') xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderReadOuterXml... + d pr * extproc('xmlTextReaderReadOuterXml') xmlChar * + d reader value like(xmlTextReaderPtr) + /endif + + d xmlTextReaderReadString... + d pr * extproc('xmlTextReaderReadString') xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderReadAttributeValue... + d pr extproc( + d 'xmlTextReaderReadAttributeValue') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + * Attributes of the node + + d xmlTextReaderAttributeCount... + d pr extproc( + d 'xmlTextReaderAttributeCount') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderDepth... + d pr extproc('xmlTextReaderDepth') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderHasAttributes... + d pr extproc('xmlTextReaderHasAttributes') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderHasValue... + d pr extproc('xmlTextReaderHasValue') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderIsDefault... + d pr extproc('xmlTextReaderIsDefault') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderIsEmptyElement... + d pr extproc( + d 'xmlTextReaderIsEmptyElement') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderNodeType... + d pr extproc('xmlTextReaderNodeType') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderQuoteChar... + d pr extproc('xmlTextReaderQuoteChar') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderReadState... + d pr extproc('xmlTextReaderReadState') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderIsNamespaceDecl... + d pr extproc( + d 'xmlTextReaderIsNamespaceDecl') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderConstBaseUri... + d pr * extproc('xmlTextReaderConstBaseUri') const xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderConstLocalName... + d pr * extproc( const xmlChar * + d 'xmlTextReaderConstLocalName') + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderConstName... + d pr * extproc('xmlTextReaderConstName') const xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderConstNamespaceUri... + d pr * extproc( const xmlChar * + d 'xmlTextReaderConstNamespaceUri') + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderConstPrefix... + d pr * extproc('xmlTextReaderConstPrefix') const xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderConstXmlLang... + d pr * extproc('xmlTextReaderConstXmlLang') const xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderConstString... + d pr * extproc('xmlTextReaderConstString') const xmlChar * + d reader value like(xmlTextReaderPtr) + d str * value options(*string) const xmlChar * + + d xmlTextReaderConstValue... + d pr * extproc('xmlTextReaderConstValue') const xmlChar * + d reader value like(xmlTextReaderPtr) + + * use the Const version of the routine for + * better performance and simpler code + + d xmlTextReaderBaseUri... + d pr * extproc('xmlTextReaderBaseUri') xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderLocalName... + d pr * extproc('xmlTextReaderLocalName') xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderName... + d pr * extproc('xmlTextReaderName') xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderNamespaceUri... + d pr * extproc('xmlTextReaderNamespaceUri') xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderPrefix... + d pr * extproc('xmlTextReaderPrefix') xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderXmlLang... + d pr * extproc('xmlTextReaderXmlLang') xmlChar * + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderValue... + d pr * extproc('xmlTextReaderValue') xmlChar * + d reader value like(xmlTextReaderPtr) + + * Methods of the XmlTextReader + + d xmlTextReaderClose... + d pr extproc('xmlTextReaderClose') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderGetAttributeNo... + d pr * extproc( xmlChar * + d 'xmlTextReaderGetAttributeNo') + d reader value like(xmlTextReaderPtr) + d no value like(xmlCint) + + d xmlTextReaderGetAttribute... + d pr * extproc('xmlTextReaderGetAttribute') xmlChar * + d reader value like(xmlTextReaderPtr) + d name * value options(*string) const xmlChar * + + d xmlTextReaderGetAttributeNs... + d pr * extproc( xmlChar * + d 'xmlTextReaderGetAttributeNs') + d reader value like(xmlTextReaderPtr) + d localName * value options(*string) const xmlChar * + d namespaceURI * value options(*string) const xmlChar * + + d xmlTextReaderGetRemainder... + d pr extproc('xmlTextReaderGetRemainder') + d like(xmlParserInputBufferPtr) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderLookupNamespace... + d pr * extproc( xmlChar * + d 'xmlTextReaderLookupNamespace') + d reader value like(xmlTextReaderPtr) + d prefix * value options(*string) const xmlChar * + + d xmlTextReaderMoveToAttributeNo... + d pr extproc( + d 'xmlTextReaderMoveToAttributeNo') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d no value like(xmlCint) + + d xmlTextReaderMoveToAttribute... + d pr extproc( + d 'xmlTextReaderMoveToAttribute') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d name * value options(*string) const xmlChar * + + d xmlTextReaderMoveToAttributeNs... + d pr extproc( + d 'xmlTextReaderMoveToAttributeNs') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d localName * value options(*string) const xmlChar * + d namespaceURI * value options(*string) const xmlChar * + + d xmlTextReaderMoveToFirstAttribute... + d pr extproc( + d 'xmlTextReaderMoveToFirstAttribute') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderMoveToNextAttribute... + d pr extproc( + d 'xmlTextReaderMoveToNextAttribute') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderMoveToElement... + d pr extproc('xmlTextReaderMoveToElement') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderNormalization... + d pr extproc('xmlTextReaderNormalization') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderConstEncoding... + d pr * extproc('xmlTextReaderConstEncoding')const xmlChar * + d reader value like(xmlTextReaderPtr) + + * Extensions + + d xmlTextReaderSetParserProp... + d pr extproc('xmlTextReaderSetParserProp') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d prop value like(xmlCint) + d value value like(xmlCint) + + d xmlTextReaderGetParserProp... + d pr extproc('xmlTextReaderGetParserProp') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d prop value like(xmlCint) + + d xmlTextReaderCurrentNode... + d pr extproc('xmlTextReaderCurrentNode') + d like(xmlNodePtr) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderGetParserLineNumber... + d pr extproc( + d 'xmlTextReaderGetParserLineNumber') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderGetParserColumnNumber... + d pr extproc( + d 'xmlTextReaderGetParserColumnNumber') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderPreserve... + d pr extproc('xmlTextReaderPreserve') + d like(xmlNodePtr) + d reader value like(xmlTextReaderPtr) + + /if defined(LIBXML_PATTERN_ENABLED) + d xmlTextReaderPreservePattern... + d pr extproc( + d 'xmlTextReaderPreservePattern') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d pattern * value options(*string) const xmlChar * + d namespaces * const xmlChar *(*) + /endif LIBXML_PATTERN_ENBLD + + d xmlTextReaderCurrentDoc... + d pr extproc('xmlTextReaderCurrentDoc') + d like(xmlDocPtr) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderExpand... + d pr extproc('xmlTextReaderExpand') + d like(xmlNodePtr) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderNext... + d pr extproc('xmlTextReaderNext') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderNextSibling... + d pr extproc('xmlTextReaderNextSibling') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderIsValid... + d pr extproc('xmlTextReaderIsValid') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + /if defined(LIBXML_SCHEMAS_ENABLED) + d xmlTextReaderRelaxNGValidate... + d pr extproc( + d 'xmlTextReaderRelaxNGValidate') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d rng * value options(*string) const char * + + d xmlTextReaderRelaxNGValidateCtxt... + d pr extproc( + d 'xmlTextReaderRelaxNGValidateCtxt') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d ctxt value like(xmlRelaxNGValidCtxtPtr) + d options value like(xmlCint) + + d xmlTextReaderRelaxNGSetSchema... + d pr extproc( + d 'xmlTextReaderRelaxNGSetSchema') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d schema value like(xmlRelaxNGPtr) + + d xmlTextReaderSchemaValidate... + d pr extproc( + d 'xmlTextReaderSchemaValidate') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d xsd * value options(*string) const char * + + d xmlTextReaderSchemaValidateCtxt... + d pr extproc( + d 'xmlTextReaderSchemaValidateCtxt') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d ctxt value like(xmlSchemaValidCtxtPtr) + d options value like(xmlCint) + + d xmlTextReaderSetSchema... + d pr extproc('xmlTextReaderSetSchema') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d schema value like(xmlSchemaPtr) + /endif + + d xmlTextReaderConstXmlVersion... + d pr * extproc( const xmlChar * + d 'xmlTextReaderConstXmlVersion') + d reader value like(xmlTextReaderPtr) + + d xmlTextReaderStandalone... + d pr extproc('xmlTextReaderStandalone') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + + * Index lookup + + d xmlTextReaderByteConsumed... + d pr extproc('xmlTextReaderByteConsumed') + d like(xmlClong) + d reader value like(xmlTextReaderPtr) + + * New more complete APIs for simpler creation and reuse of readers + + d xmlReaderWalker... + d pr extproc('xmlReaderWalker') + d like(xmlTextReaderPtr) + d doc value like(xmlDocPtr) + + d xmlReaderForDoc... + d pr extproc('xmlReaderForDoc') + d like(xmlTextReaderPtr) + d cur * value options(*string) const xmlChar * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReaderForFile... + d pr extproc('xmlReaderForFile') + d like(xmlTextReaderPtr) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReaderForMemory... + d pr extproc('xmlReaderForMemory') + d like(xmlTextReaderPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReaderForFd pr extproc('xmlReaderForFd') + d like(xmlTextReaderPtr) + d fd value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReaderForIO pr extproc('xmlReaderForIO') + d like(xmlTextReaderPtr) + d ioread value like(xmlInputReadCallback) + d ioclose value like(xmlInputCloseCallback) + d ioctx * value void * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReaderNewWalker... + d pr extproc('xmlReaderNewWalker') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d doc value like(xmlDocPtr) + + d xmlReaderNewDoc... + d pr extproc('xmlReaderNewDoc') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d cur * value options(*string) const xmlChar * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReaderNewFile... + d pr extproc('xmlReaderNewFile') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReaderNewMemory... + d pr extproc('xmlReaderNewMemory') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReaderNewFd pr extproc('xmlReaderNewFd') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d fd value like(xmlCint) + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlReaderNewIO pr extproc('xmlReaderNewIO') + d like(xmlCint) + d reader value like(xmlTextReaderPtr) + d ioread value like(xmlInputReadCallback) + d ioclose value like(xmlInputCloseCallback) + d ioctx * value void * + d URL * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + * Error handling extensions + + d xmlTextReaderLocatorPtr... + d s * based(######typedef######) void * + + * xmlTextReaderErrorFunc: + * @arg: the user argument + * @msg: the message + * @severity: the severity of the error + * @locator: a locator indicating where the error occurred + * + * Signature of an error callback from a reader parser + + d xmlTextReaderErrorFunc... + d s * based(######typedef######) + d procptr + + d xmlTextReaderLocatorLineNumber... + d pr extproc( + d 'xmlTextReaderLocatorLineNumber') + d like(xmlCint) + d locator value like(xmlTextReaderLocatorPtr) + + d xmlTextReaderLocatorBaseURI... + d pr * extproc( xmlChar * + d 'xmlTextReaderLocatorBaseURI') + d locator value like(xmlTextReaderLocatorPtr) + + d xmlTextReaderSetErrorHandler... + d pr extproc( + d 'xmlTextReaderSetErrorHandler') + d reader value like(xmlTextReaderPtr) + d f value like(xmlTextReaderErrorFunc) + d arg * value void * + + d xmlTextReaderSetStructuredErrorHandler... + d pr extproc('xmlTextReaderSetStructuredE- + d rrorHandler') + d reader value like(xmlTextReaderPtr) + d f value like(xmlStructuredErrorFunc) + d arg * value void * + + d xmlTextReaderGetErrorHandler... + d pr extproc( + d 'xmlTextReaderGetErrorHandler') + d reader value like(xmlTextReaderPtr) + d f like(xmlTextReaderErrorFunc) + d arg * void *(*) + + /endif LIBXML_READER_ENABLD + /endif XML_XMLREADER_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlregexp.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlregexp.rpgle new file mode 100644 index 0000000..01d411a --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlregexp.rpgle @@ -0,0 +1,262 @@ + * Summary: regular expressions handling + * Description: basic API for libxml regular expressions handling used + * for XML Schemas and validation. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_REGEXP_H__) + /define XML_REGEXP_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_REGEXP_ENABLED) + + /include "libxmlrpg/xmlTypesC" + + * xmlRegexpPtr: + * + * A libxml regular expression, they can actually be far more complex + * thank the POSIX regex expressions. + + d xmlRegexpPtr s * based(######typedef######) + + * xmlRegExecCtxtPtr: + * + * A libxml progressive regular expression evaluation context + + d xmlRegExecCtxtPtr... + d s * based(######typedef######) + + /include "libxmlrpg/tree" + /include "libxmlrpg/dict" + + * The POSIX like API + + d xmlRegexpCompile... + d pr extproc('xmlRegexpCompile') + d like(xmlRegexpPtr) + d regexp * value options(*string) const xmlChar * + + d xmlRegFreeRegexp... + d pr extproc('xmlRegFreeRegexp') + d regexp value like(xmlRegexpPtr) + + d xmlRegexpExec pr extproc('xmlRegexpExec') + d like(xmlCint) + d comp value like(xmlRegexpPtr) + d value * value options(*string) const xmlChar * + + d xmlRegexpPrint pr extproc('xmlRegexpPrint') + d output * value FILE * + d regexp value like(xmlRegexpPtr) + + d xmlRegexpIsDeterminist... + d pr extproc('xmlRegexpIsDeterminist') + d like(xmlCint) + d comp value like(xmlRegexpPtr) + + * xmlRegExecCallbacks: + * @exec: the regular expression context + * @token: the current token string + * @transdata: transition data + * @inputdata: input data + * + * Callback function when doing a transition in the automata + + d xmlRegExecCallbacks... + d s * based(######typedef######) + d procptr + + * The progressive API + + d xmlRegNewExecCtxt... + d pr extproc('xmlRegNewExecCtxt') + d like(xmlRegExecCtxtPtr) + d comp value like(xmlRegexpPtr) + d callback value like(xmlRegExecCallbacks) + d data * value void * + + d xmlRegFreeExecCtxt... + d pr extproc('xmlRegFreeExecCtxt') + d exec value like(xmlRegExecCtxtPtr) + + d xmlRegExecPushString... + d pr extproc('xmlRegExecPushString') + d like(xmlCint) + d exec value like(xmlRegExecCtxtPtr) + d value * value options(*string) const xmlChar * + d data * value void * + + d xmlRegExecPushString2... + d pr extproc('xmlRegExecPushString2') + d like(xmlCint) + d exec value like(xmlRegExecCtxtPtr) + d value * value options(*string) const xmlChar * + d value2 * value options(*string) const xmlChar * + d data * value void * + + d xmlRegExecNextValues... + d pr extproc('xmlRegExecNextValues') + d like(xmlCint) + d exec value like(xmlRegExecCtxtPtr) + d nbval like(xmlCint) + d nbneg like(xmlCint) + d values * xmlChar * (*) + d terminal like(xmlCint) + + d xmlRegExecErrInfo... + d pr extproc('xmlRegExecErrInfo') + d like(xmlCint) + d exec value like(xmlRegExecCtxtPtr) + d string * const xmlChar * (*) + d nbval like(xmlCint) + d nbneg like(xmlCint) + d values * xmlChar * (*) + d terminal like(xmlCint) + + /if defined(LIBXML_EXPR_ENABLED) + + * Formal regular expression handling + * Its goal is to do some formal work on content models + + * expressions are used within a context + + d xmlExpCtxtPtr s * based(######typedef######) + + d xmlExpFreeCtxt pr extproc('xmlExpFreeCtxt') + d ctxt value like(xmlExpCtxtPtr) + + d xmlExpNewCtxt pr extproc('xmlExpNewCtxt') + d like(xmlExpCtxtPtr) + d maxNodes value like(xmlCint) + d dict value like(xmlDictPtr) + + d xmlExpCtxtNbNodes... + d pr extproc('xmlExpCtxtNbNodes') + d like(xmlCint) + d ctxt value like(xmlExpCtxtPtr) + + d xmlExpCtxtNbCons... + d pr extproc('xmlExpCtxtNbCons') + d like(xmlCint) + d ctxt value like(xmlExpCtxtPtr) + + * Expressions are trees but the tree is opaque + + d xmlExpNodePtr s * based(######typedef######) + + d xmlExpNodeType s based(######typedef######) + d like(xmlCenum) + d XML_EXP_EMPTY c 0 + d XML_EXP_FORBID... + d c 1 + d XML_EXP_ATOM c 2 + d XML_EXP_SEQ c 3 + d XML_EXP_OR c 4 + d XML_EXP_COUNT c 5 + + * 2 core expressions shared by all for the empty language set + * and for the set with just the empty token + + d forbiddenExp s import('forbiddenExp') + d like(xmlExpNodePtr) + + d emptyExp s import('emptyExp') + d like(xmlExpNodePtr) + + + * Expressions are reference counted internally + + d xmlExpFree pr extproc('xmlExpFree') + d expr value like(xmlExpNodePtr) + + d xmlExpRef pr extproc('xmlExpRef') + d expr value like(xmlExpNodePtr) + + * constructors can be either manual or from a string + + d xmlExpParse pr extproc('xmlExpParse') + d like(xmlExpNodePtr) + d ctxt value like(xmlExpCtxtPtr) + d expr * value options(*string) const char * + + d xmlExpNewAtom pr extproc('xmlExpNewAtom') + d like(xmlExpNodePtr) + d ctxt value like(xmlExpCtxtPtr) + d name * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlExpNewOr pr extproc('xmlExpNewOr') + d like(xmlExpNodePtr) + d ctxt value like(xmlExpCtxtPtr) + d left value like(xmlExpNodePtr) + d right value like(xmlExpNodePtr) + + d xmlExpNewSeq pr extproc('xmlExpNewSeq') + d like(xmlExpNodePtr) + d ctxt value like(xmlExpCtxtPtr) + d left value like(xmlExpNodePtr) + d right value like(xmlExpNodePtr) + + d xmlExpNewRange pr extproc('xmlExpNewRange') + d like(xmlExpNodePtr) + d ctxt value like(xmlExpCtxtPtr) + d subset value like(xmlExpNodePtr) + d min value like(xmlCint) + d max value like(xmlCint) + + * The really interesting APIs + + d xmlExpIsNillable... + d pr extproc('xmlExpIsNillable') + d like(xmlCint) + d expr value like(xmlExpNodePtr) + + d xmlExpMaxToken pr extproc('xmlExpMaxToken') + d like(xmlCint) + d expr value like(xmlExpNodePtr) + + d xmlExpGetLanguage... + d pr extproc('xmlExpGetLanguage') + d like(xmlCint) + d ctxt value like(xmlExpCtxtPtr) + d expr value like(xmlExpNodePtr) + d langList * const xmlChar *(*) + d len value like(xmlCint) + + d xmlExpGetStart pr extproc('xmlExpGetStart') + d like(xmlCint) + d ctxt value like(xmlExpCtxtPtr) + d expr value like(xmlExpNodePtr) + d tokList * const xmlChar *(*) + d len value like(xmlCint) + + d xmlExpStringDerive... + d pr extproc('xmlExpStringDerive') + d like(xmlExpNodePtr) + d ctxt value like(xmlExpCtxtPtr) + d expr value like(xmlExpNodePtr) + d str * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlExpExpDerive... + d pr extproc('xmlExpExpDerive') + d like(xmlExpNodePtr) + d ctxt value like(xmlExpCtxtPtr) + d expr value like(xmlExpNodePtr) + d sub value like(xmlExpNodePtr) + + d xmlExpSubsume pr extproc('xmlExpSubsume') + d like(xmlCint) + d ctxt value like(xmlExpCtxtPtr) + d expr value like(xmlExpNodePtr) + d sub value like(xmlExpNodePtr) + + d xmlExpDump pr extproc('xmlExpDump') + d buf value like(xmlBufferPtr) + d expr value like(xmlExpNodePtr) + /endif LIBXML_EXPR_ENABLED + /endif LIBXML_REGEXP_ENABLD + /endif XML_REGEXP_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlsave.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlsave.rpgle new file mode 100644 index 0000000..ad0d15d --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlsave.rpgle @@ -0,0 +1,105 @@ + * Summary: the XML document serializer + * Description: API to save document or subtree of document + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_XMLSAVE_H__) + /define XML_XMLSAVE_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_OUTPUT_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + /include "libxmlrpg/encoding" + /include "libxmlrpg/xmlIO" + + * xmlSaveOption: + * + * This is the set of XML save options that can be passed down + * to the xmlSaveToFd() and similar calls. + + d xmlSaveOption s based(######typedef######) + d like(xmlCenum) + d XML_SAVE_FORMAT... Format save output + d c X'0001' + d XML_SAVE_NO_DECL... Drop xml declaration + d c X'0002' + d XML_SAVE_NO_EMPTY... No empty tags + d c X'0004' + d XML_SAVE_NO_XHTML... No XHTML1 specific + d c X'0008' + d XML_SAVE_XHTML... Frce XHTML1 specific + d c X'0010' + d XML_SAVE_AS_XML... Frce XML on HTML doc + d c X'0020' + d XML_SAVE_AS_HTML... Frce HTML on XML doc + d c X'0040' + d XML_SAVE_WSNONSIG... Fmt w/ non-sig space + d c X'0080' + + d xmlSaveCtxtPtr s * based(######typedef######) + + d xmlSaveToFd pr extproc('xmlSaveToFd') + d like(xmlSaveCtxtPtr) + d fd value like(xmlCint) + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlSaveToFilename... + d pr extproc('xmlSaveToFilename') + d like(xmlSaveCtxtPtr) + d filename * value options(*string) const char * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlSaveToBuffer... + d pr extproc('xmlSaveToBuffer') + d like(xmlSaveCtxtPtr) + d buffer value like(xmlBufferPtr) + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlSaveToIO pr extproc('xmlSaveToIO') + d like(xmlSaveCtxtPtr) + d iowrite value like(xmlOutputWriteCallback) + d ioclose value like(xmlOutputCloseCallback) + d ioctx * value void * + d encoding * value options(*string) const char * + d options value like(xmlCint) + + d xmlSaveDoc pr extproc('xmlSaveDoc') + d like(xmlClong) + d ctxt value like(xmlSaveCtxtPtr) + d doc value like(xmlDocPtr) + + d xmlSaveTree pr extproc('xmlSaveTree') + d like(xmlClong) + d ctxt value like(xmlSaveCtxtPtr) + d node value like(xmlNodePtr) + + d xmlSaveFlush pr extproc('xmlSaveFlush') + d like(xmlCint) + d ctxt value like(xmlSaveCtxtPtr) + + d xmlSaveClose pr extproc('xmlSaveClose') + d like(xmlCint) + d ctxt value like(xmlSaveCtxtPtr) + + d xmlSaveSetEscape... + d pr extproc('xmlSaveSetEscape') + d like(xmlCint) + d ctxt value like(xmlSaveCtxtPtr) + d escape value like(xmlCharEncodingOutputFunc) + + d xmlSaveSetAttrEscape... + d pr extproc('xmlSaveSetAttrEscape') + d like(xmlCint) + d ctxt value like(xmlSaveCtxtPtr) + d escape value like(xmlCharEncodingOutputFunc) + + /endif LIBXML_OUTPUT_ENABLD + /endif XML_XMLSAVE_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlschemas.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlschemas.rpgle new file mode 100644 index 0000000..f34ddcd --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlschemas.rpgle @@ -0,0 +1,331 @@ + * Summary: incomplete XML Schemas structure implementation + * Description: interface to the XML Schemas handling and schema validity + * checking, it is incomplete right now. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_SCHEMA_H__) + /define XML_SCHEMA_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_SCHEMAS_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + + * This error codes are obsolete; not used any more. + + d xmlSchemaValidError... + d s based(######typedef######) + d like(xmlCenum) + d XML_SCHEMAS_ERR_OK... + d c 0 + d XML_SCHEMAS_ERR_NOROOT... + d c 1 + d XML_SCHEMAS_ERR_UNDECLAREDELEM... + d c 2 + d XML_SCHEMAS_ERR_NOTTOPLEVEL... + d c 3 + d XML_SCHEMAS_ERR_MISSING... + d c 4 + d XML_SCHEMAS_ERR_WRONGELEM... + d c 5 + d XML_SCHEMAS_ERR_NOTYPE... + d c 6 + d XML_SCHEMAS_ERR_NOROLLBACK... + d c 7 + d XML_SCHEMAS_ERR_ISABSTRACT... + d c 8 + d XML_SCHEMAS_ERR_NOTEMPTY... + d c 9 + d XML_SCHEMAS_ERR_ELEMCONT... + d c 10 + d XML_SCHEMAS_ERR_HAVEDEFAULT... + d c 11 + d XML_SCHEMAS_ERR_NOTNILLABLE... + d c 12 + d XML_SCHEMAS_ERR_EXTRACONTENT... + d c 13 + d XML_SCHEMAS_ERR_INVALIDATTR... + d c 14 + d XML_SCHEMAS_ERR_INVALIDELEM... + d c 15 + d XML_SCHEMAS_ERR_NOTDETERMINIST... + d c 16 + d XML_SCHEMAS_ERR_CONSTRUCT... + d c 17 + d XML_SCHEMAS_ERR_INTERNAL... + d c 18 + d XML_SCHEMAS_ERR_NOTSIMPLE... + d c 19 + d XML_SCHEMAS_ERR_ATTRUNKNOWN... + d c 20 + d XML_SCHEMAS_ERR_ATTRINVALID... + d c 21 + d XML_SCHEMAS_ERR_VALUE... + d c 22 + d XML_SCHEMAS_ERR_FACET... + d c 23 + d XML_SCHEMAS_ERR_... + d c 24 + d XML_SCHEMAS_ERR_XXX... + d c 25 + + * ATTENTION: Change xmlSchemaSetValidOptions's check + * for invalid values, if adding to the validation + * options below. + + * xmlSchemaValidOption: + * + * This is the set of XML Schema validation options. + + d xmlSchemaValidOption... + d s based(######typedef######) + d like(xmlCenum) + * + * Default/fixed: create an attribute node + * or an element's text node on the instance. + * + d XML_SCHEMA_VAL_VC_I_CREATE... + d c X'0001' + /if defined(DISABLED) + * + * assemble schemata using + * xsi:schemaLocation and + * xsi:noNamespaceSchemaLocation + * + d XML_SCHEMA_VAL_XSI_ASSEMBLE... + d c X'0002' + /endif + + * The schemas related types are kept internal + + d xmlSchemaPtr s * based(######typedef######) + + * xmlSchemaValidityErrorFunc: + * @ctx: the validation context + * @msg: the message + * @...: extra arguments + * + * Signature of an error callback from an XSD validation + + d xmlSchemaValidityErrorFunc... + d s * based(######typedef######) + d procptr + + * xmlSchemaValidityWarningFunc: + * @ctx: the validation context + * @msg: the message + * @...: extra arguments + * + * Signature of a warning callback from an XSD validation + + d xmlSchemaValidityWarningFunc... + d s * based(######typedef######) + d procptr + + * A schemas validation context + + d xmlSchemaParserCtxtPtr... + d s * based(######typedef######) + + d xmlSchemaValidCtxtPtr... + d s * based(######typedef######) + + * xmlSchemaValidityLocatorFunc: + * @ctx: user provided context + * @file: returned file information + * @line: returned line information + * + * A schemas validation locator, a callback called by the validator. + * This is used when file or node informations are not available + * to find out what file and line number are affected + * + * Returns: 0 in case of success and -1 in case of error + + d xmlSchemaValidityLocatorFunc... + d s * based(######typedef######) + d procptr + + * Interfaces for parsing. + + d xmlSchemaNewParserCtxt... + d pr extproc('xmlSchemaNewParserCtxt') + d like(xmlSchemaParserCtxtPtr) + d URL * value options(*string) const char * + + d xmlSchemaNewMemParserCtxt... + d pr extproc('xmlSchemaNewMemParserCtxt') + d like(xmlSchemaParserCtxtPtr) + d buffer * value options(*string) const char * + d size value like(xmlCint) + + d xmlSchemaNewDocParserCtxt... + d pr extproc('xmlSchemaNewDocParserCtxt') + d like(xmlSchemaParserCtxtPtr) + d doc value like(xmlDocPtr) + + d xmlSchemaFreeParserCtxt... + d pr extproc('xmlSchemaFreeParserCtxt') + d ctxt value like(xmlSchemaParserCtxtPtr) + + d xmlSchemaSetParserErrors... + d pr extproc('xmlSchemaSetParserErrors') + d ctxt value like(xmlSchemaParserCtxtPtr) + d err value + d like(xmlSchemaValidityErrorFunc) + d warn value + d like(xmlSchemaValidityWarningFunc) + d ctx * value void * + + d xmlSchemaSetParserStructuredErrors... + d pr extproc( + d 'xmlSchemaSetParserStructuredErrors') + d ctxt value like(xmlSchemaParserCtxtPtr) + d serror value like(xmlStructuredErrorFunc) + d ctx * value void * + + d xmlSchemaGetParserErrors... + d pr extproc('xmlSchemaGetParserErrors') + d like(xmlCint) + d ctxt value like(xmlSchemaParserCtxtPtr) + d err like(xmlSchemaValidityErrorFunc) + d warn like(xmlSchemaValidityWarningFunc) + d ctx * void *(*) + + d xmlSchemaIsValid... + d pr extproc('xmlSchemaIsValid') + d like(xmlCint) + d ctxt value like(xmlSchemaValidCtxtPtr) + + d xmlSchemaParse pr extproc('xmlSchemaParse') + d like(xmlSchemaPtr) + d ctxt value like(xmlSchemaParserCtxtPtr) + + d xmlSchemaFree pr extproc('xmlSchemaFree') + d schema value like(xmlSchemaPtr) + + /if defined(LIBXML_OUTPUT_ENABLED) + d xmlSchemaDump pr extproc('xmlSchemaDump') + d output * value FILE * + d schema value like(xmlSchemaPtr) + /endif LIBXML_OUTPUT_ENABLD + + * Interfaces for validating + + d xmlSchemaSetValidErrors... + d pr extproc('xmlSchemaSetValidErrors') + d ctxt value like(xmlSchemaValidCtxtPtr) + d err value + d like(xmlSchemaValidityErrorFunc) + d warn value + d like(xmlSchemaValidityWarningFunc) + d ctx * value void * + + d xmlSchemaSetValidStructuredErrors... + d pr extproc( + d 'xmlSchemaSetValidStructuredErrors') + d ctxt value like(xmlSchemaValidCtxtPtr) + d serror value like(xmlStructuredErrorFunc) + d ctx * value void * + + d xmlSchemaGetValidErrors... + d pr extproc('xmlSchemaGetValidErrors') + d like(xmlCint) + d ctxt value like(xmlSchemaValidCtxtPtr) + d err like(xmlSchemaValidityErrorFunc) + d warn like(xmlSchemaValidityWarningFunc) + d ctx * void *(*) + + d xmlSchemaSetValidOptions... + d pr extproc('xmlSchemaSetValidOptions') + d like(xmlCint) + d ctxt value like(xmlSchemaValidCtxtPtr) + d options value like(xmlCint) + + d xmlSchemaValidateSetFilename... + d pr extproc( + d 'xmlSchemaValidateSetFilename') + d vctxt value like(xmlSchemaValidCtxtPtr) + d filename * value options(*string) const char * + + d xmlSchemaValidCtxtGetOptions... + d pr extproc( + d 'xmlSchemaValidCtxtGetOptions') + d like(xmlCint) + d ctxt value like(xmlSchemaValidCtxtPtr) + + d xmlSchemaNewValidCtxt... + d pr extproc('xmlSchemaNewValidCtxt') + d like(xmlSchemaValidCtxtPtr) + d schema value like(xmlSchemaPtr) + + d xmlSchemaFreeValidCtxt... + d pr extproc('xmlSchemaFreeValidCtxt') + d ctxt value like(xmlSchemaValidCtxtPtr) + + d xmlSchemaValidateDoc... + d pr extproc('xmlSchemaValidateDoc') + d like(xmlCint) + d ctxt value like(xmlSchemaValidCtxtPtr) + d instance value like(xmlDocPtr) + + d xmlSchemaValidateOneElement... + d pr extproc( + d 'xmlSchemaValidateOneElement') + d like(xmlCint) + d ctxt value like(xmlSchemaValidCtxtPtr) + d elem value like(xmlNodePtr) + + d xmlSchemaValidateStream... + d pr extproc('xmlSchemaValidateStream') + d like(xmlCint) + d ctxt value like(xmlSchemaValidCtxtPtr) + d input value like(xmlParserInputBufferPtr) + d enc value like(xmlCharEncoding) + d sax value like(xmlSAXHandlerPtr) + d user_data * value void * + + d xmlSchemaValidateFile... + d pr extproc('xmlSchemaValidateFile') + d like(xmlCint) + d ctxt value like(xmlSchemaValidCtxtPtr) + d filename * value options(*string) const char * + d options value like(xmlCint) + + d xmlSchemaValidCtxtGetParserCtxt... + d pr extproc( + d 'xmlSchemaValidCtxtGetParserCtxt') + d like(xmlParserCtxtPtr) + d ctxt value like(xmlSchemaValidCtxtPtr) + + * Interface to insert Schemas SAX validation in a SAX stream + + d xmlSchemaSAXPlugPtr... + d s * based(######typedef######) + + d xmlSchemaSAXPlug... + d pr extproc('xmlSchemaSAXPlug') + d like(xmlSchemaSAXPlugPtr) + d ctxt value like(xmlSchemaValidCtxtPtr) + d sax like(xmlSAXHandlerPtr) + d user_data * void *(*) + + d xmlSchemaSAXUnplug... + d pr extproc('xmlSchemaSAXUnplug') + d like(xmlCint) + d plug value like(xmlSchemaSAXPlugPtr) + + d xmlSchemaValidateSetLocator... + d pr extproc( + d 'xmlSchemaValidateSetLocator') + d vctxt value like(xmlSchemaValidCtxtPtr) + d f value + d like(xmlSchemaValidityLocatorFunc) + d ctxt * value void * + + /endif LIBXML_SCHEMAS_ENBLD + /endif XML_SCHEMA_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlschemastypes.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlschemastypes.rpgle new file mode 100644 index 0000000..ecd6aba --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlschemastypes.rpgle @@ -0,0 +1,254 @@ + * Summary: implementation of XML Schema Datatypes + * Description: module providing the XML Schema Datatypes implementation + * both definition and validity checking + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_SCHEMA_TYPES_H__) + /define XML_SCHEMA_TYPES_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_SCHEMAS_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/schemasInternals" + /include "libxmlrpg/xmlschemas" + + d xmlSchemaWhitespaceValueType... + d s based(######typedef######) + d like(xmlCenum) + d XML_SCHEMA_WHITESPACE_UNKNOWN... + d c 0 + d XML_SCHEMA_WHITESPACE_PRESERVE... + d c 1 + d XML_SCHEMA_WHITESPACE_REPLACE... + d c 2 + d XML_SCHEMA_WHITESPACE_COLLAPSE... + d c 3 + + d xmlSchemaInitTypes... + d pr extproc('xmlSchemaInitTypes') + + d xmlSchemaCleanupTypes... + d pr extproc('xmlSchemaCleanupTypes') + + d xmlSchemaGetPredefinedType... + d pr extproc('xmlSchemaGetPredefinedType') + d like(xmlSchemaTypePtr) + d name * value options(*string) const xmlChar * + d ns * value options(*string) const xmlChar * + + d xmlSchemaValidatePredefinedType... + d pr extproc( + d 'xmlSchemaValidatePredefinedType') + d like(xmlCint) + d type value like(xmlSchemaTypePtr) + d value * value options(*string) const xmlChar * + d val * value xmlSchemaValPtr * + + d xmlSchemaValPredefTypeNode... + d pr extproc('xmlSchemaValPredefTypeNode') + d like(xmlCint) + d type value like(xmlSchemaTypePtr) + d value * value options(*string) const xmlChar * + d val * value xmlSchemaValPtr * + d node value like(xmlNodePtr) + + d xmlSchemaValidateFacet... + d pr extproc('xmlSchemaValidateFacet') + d like(xmlCint) + d base value like(xmlSchemaTypePtr) + d facet value like(xmlSchemaFacetPtr) + d value * value options(*string) const xmlChar * + d val value like(xmlSchemaValPtr) + + d xmlSchemaValidateFacetWhtsp... + d pr extproc( + d 'xmlSchemaValidateFacetWhtsp') + d like(xmlCint) + d facet value like(xmlSchemaFacetPtr) + d fws value + d like(xmlSchemaWhitespaceValueType) + d valType value like(xmlSchemaValType) + d value * value options(*string) const xmlChar * + d val value like(xmlSchemaValPtr) + d ws value + d like(xmlSchemaWhitespaceValueType) + + d xmlSchemaFreeValue... + d pr extproc('xmlSchemaFreeValue') + d val value like(xmlSchemaValPtr) + + d xmlSchemaNewFacet... + d pr extproc('xmlSchemaNewFacet') + d like(xmlSchemaFacetPtr) + + d xmlSchemaCheckFacet... + d pr extproc('xmlSchemaCheckFacet') + d like(xmlCint) + d facet value like(xmlSchemaFacetPtr) + d typeDecl value like(xmlSchemaTypePtr) + d ctxt value like(xmlSchemaParserCtxtPtr) + d name * value options(*string) const xmlChar * + + d xmlSchemaFreeFacet... + d pr extproc('xmlSchemaFreeFacet') + d facet value like(xmlSchemaFacetPtr) + + d xmlSchemaCompareValues... + d pr extproc('xmlSchemaCompareValues') + d like(xmlCint) + d x value like(xmlSchemaValPtr) + d y value like(xmlSchemaValPtr) + + d xmlSchemaGetBuiltInListSimpleTypeItemType... + d pr extproc('xmlSchemaGetBuiltInListSimp- + d leTypeItemType') + d like(xmlSchemaTypePtr) + d type value like(xmlSchemaTypePtr) + + d xmlSchemaValidateListSimpleTypeFacet... + d pr extproc('xmlSchemaValidateListSimple- + d TypeFacet') + d like(xmlCint) + d facet value like(xmlSchemaFacetPtr) + d value * value options(*string) const xmlChar * + d actualLen value like(xmlCulong) + d expectedLen * value unsigned long * + + d xmlSchemaGetBuiltInType... + d pr extproc('xmlSchemaGetBuiltInType') + d like(xmlSchemaTypePtr) + d type value like(xmlSchemaValType) + + d xmlSchemaIsBuiltInTypeFacet... + d pr extproc( + d 'xmlSchemaIsBuiltInTypeFacet') + d like(xmlCint) + d type value like(xmlSchemaTypePtr) + d facetType value like(xmlCint) + + d xmlSchemaCollapseString... + d pr * extproc('xmlSchemaCollapseString') xmlChar * + d value * value options(*string) const xmlChar * + + d xmlSchemaWhiteSpaceReplace... + d pr * extproc('xmlSchemaWhiteSpaceReplace')xmlChar * + d value * value options(*string) const xmlChar * + + d xmlSchemaGetFacetValueAsULong... + d pr extproc( + d 'xmlSchemaGetFacetValueAsULong') + d like(xmlCulong) + d facet value like(xmlSchemaFacetPtr) + + d xmlSchemaValidateLengthFacet... + d pr extproc( + d 'xmlSchemaValidateLengthFacet') + d like(xmlCint) + d type value like(xmlSchemaTypePtr) + d facet value like(xmlSchemaFacetPtr) + d value * value options(*string) const xmlChar * + d val value like(xmlSchemaValPtr) + d length like(xmlCulong) + + d xmlSchemaValidateLengthFacetWhtsp... + d pr extproc( + d 'xmlSchemaValidateLengthFacetWhtsp') + d like(xmlCint) + d facet value like(xmlSchemaFacetPtr) + d valType value like(xmlSchemaValType) + d value * value options(*string) const xmlChar * + d val value like(xmlSchemaValPtr) + d length like(xmlCulong) + d ws value + d like(xmlSchemaWhitespaceValueType) + + d xmlSchemaValPredefTypeNodeNoNorm... + d pr extproc( + d 'xmlSchemaValPredefTypeNodeNoNorm') + d like(xmlCint) + d type value like(xmlSchemaTypePtr) + d value * value options(*string) const xmlChar * + d val like(xmlSchemaValPtr) + d node value like(xmlNodePtr) + + d xmlSchemaGetCanonValue... + d pr extproc('xmlSchemaGetCanonValue') + d like(xmlCint) + d val value like(xmlSchemaValPtr) + d retValue * value const xmlChar * * + + d xmlSchemaGetCanonValueWhtsp... + d pr extproc( + d 'xmlSchemaGetCanonValueWhtsp') + d like(xmlCint) + d val value like(xmlSchemaValPtr) + d retValue * value const xmlChar * * + d ws value + d like(xmlSchemaWhitespaceValueType) + + d xmlSchemaValueAppend... + d pr extproc('xmlSchemaValueAppend') + d like(xmlCint) + d prev value like(xmlSchemaValPtr) + d cur value like(xmlSchemaValPtr) + + d xmlSchemaValueGetNext... + d pr extproc('xmlSchemaValueGetNext') + d like(xmlSchemaValPtr) + d cur value like(xmlSchemaValPtr) + + d xmlSchemaValueGetAsString... + d pr * extproc('xmlSchemaValueGetAsString') const xmlChar * + d val value like(xmlSchemaValPtr) + + d xmlSchemaValueGetAsBoolean... + d pr extproc('xmlSchemaValueGetAsBoolean') + d like(xmlCint) + d val value like(xmlSchemaValPtr) + + d xmlSchemaNewStringValue... + d pr extproc('xmlSchemaNewStringValue') + d like(xmlSchemaValPtr) + d type value like(xmlSchemaValType) + d value * value options(*string) const xmlChar * + + d xmlSchemaNewNOTATIONValue... + d pr extproc('xmlSchemaNewNOTATIONValue') + d like(xmlSchemaValPtr) + d name * value options(*string) const xmlChar * + d ns * value options(*string) const xmlChar * + + d xmlSchemaNewQNameValue... + d pr extproc('xmlSchemaNewQNameValue') + d like(xmlSchemaValPtr) + d namespaceName * value options(*string) const xmlChar * + d localName * value options(*string) const xmlChar * + + d xmlSchemaCompareValuesWhtsp... + d pr extproc( + d 'xmlSchemaCompareValuesWhtsp') + d like(xmlCint) + d x value like(xmlSchemaValPtr) + d xws value + d like(xmlSchemaWhitespaceValueType) + d y value like(xmlSchemaValPtr) + d yws value + d like(xmlSchemaWhitespaceValueType) + + d xmlSchemaCopyValue... + d pr extproc('xmlSchemaCopyValue') + d like(xmlSchemaValPtr) + d val value like(xmlSchemaValPtr) + + d xmlSchemaGetValType... + d pr extproc('xmlSchemaGetValType') + d like(xmlSchemaValType) + d val value like(xmlSchemaValPtr) + + /endif LIBXML_SCHEMAS_ENBLD + /endif XML_SCHEMA_TYPES_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlstdarg.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlstdarg.rpgle new file mode 100644 index 0000000..3c8e200 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlstdarg.rpgle @@ -0,0 +1,35 @@ + * Summary: va_list support for ILE/RPG. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_STDARG_H__) + /define XML_STDARG_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + + * The va_list object. + + d xmlVaList ds based(######typedef######) + d align qualified + d current * + d next * + + * Procedures. + + d xmlVaStart pr extproc('__xmlVaStart') + d list likeds(xmlVaList) + d lastargaddr * value + d lastargsize value like(xmlCsize_t) + + d xmlVaArg pr * extproc('__xmlVaArg') + d list likeds(xmlVaList) + d dest * value + d argsize value like(xmlCsize_t) + + d xmlVaEnd pr extproc('__xmlVaEnd') + d list likeds(xmlVaList) + + /endif XML_STDARG_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlstring.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlstring.rpgle new file mode 100644 index 0000000..59a7625 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlstring.rpgle @@ -0,0 +1,180 @@ + * Summary: set of routines to process strings + * Description: type and interfaces needed for the internal string + * handling of the library, especially UTF8 processing. + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_STRING_H__) + /define XML_STRING_H__ + + /include "libxmlrpg/xmlversion" + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/xmlstdarg" + + * xmlChar: + * + * This is a basic byte in an UTF-8 encoded string. + * It's unsigned allowing to pinpoint case where char * are assigned + * to xmlChar * (possibly making serialization back impossible). + + d xmlChar s based(######typedef######) + d like(xmlCuchar) + + * xmlChar handling + + d xmlStrdup pr * extproc('xmlStrdup') xmlChar * + d cur * value options(*string) const xmlChar * + + d xmlStrndup pr * extproc('xmlStrndup') xmlChar * + d cur * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlCharStrndup pr * extproc('xmlCharStrndup') xmlChar * + d cur * value options(*string) const char * + d len value like(xmlCint) + + d xmlCharStrdup pr * extproc('xmlCharStrdup') xmlChar * + d cur * value options(*string) const char * + + d xmlStrsub pr * extproc('xmlStrsub') const xmlChar * + d str * value options(*string) const xmlChar * + d start value like(xmlCint) + d len value like(xmlCint) + + d xmlStrchr pr * extproc('xmlStrchr') const xmlChar * + d str * value options(*string) const xmlChar * + d val value like(xmlChar) + + d xmlStrstr pr * extproc('xmlStrstr') const xmlChar * + d str * value options(*string) const xmlChar * + d val * value options(*string) const xmlChar * + + d xmlStrcasestr pr * extproc('xmlStrcasestr') const xmlChar * + d str * value options(*string) const xmlChar * + d val * value options(*string) const xmlChar * + + d xmlStrcmp pr extproc('xmlStrcmp') + d like(xmlCint) + d str1 * value options(*string) const xmlChar * + d str2 * value options(*string) const xmlChar * + + d xmlStrncmp pr extproc('xmlStrncmp') + d like(xmlCint) + d str1 * value options(*string) const xmlChar * + d str2 * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlStrcasecmp pr extproc('xmlStrcasecmp') + d like(xmlCint) + d str1 * value options(*string) const xmlChar * + d str2 * value options(*string) const xmlChar * + + d xmlStrncasecmp pr extproc('xmlStrncasecmp') + d like(xmlCint) + d str1 * value options(*string) const xmlChar * + d str2 * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlStrEqual pr extproc('xmlStrEqual') + d like(xmlCint) + d str1 * value options(*string) const xmlChar * + d str2 * value options(*string) const xmlChar * + + d xmlStrQEqual pr extproc('xmlStrQEqual') + d like(xmlCint) + d pref * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + d stre * value options(*string) const xmlChar * + + d xmlStrlen pr extproc('xmlStrlen') + d like(xmlCint) + d str * value options(*string) const xmlChar * + + d xmlStrcat pr * extproc('xmlStrcat') xmlChar * + d cur * value options(*string) xmlChar * + d add * value options(*string) const xmlChar * + + d xmlStrncat pr * extproc('xmlStrncat') xmlChar * + d cur * value options(*string) xmlChar * + d add * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlStrncatNew pr * extproc('xmlStrncatNew') xmlChar * + d str1 * value options(*string) const xmlChar * + d str2 * value options(*string) const xmlChar * + d len value like(xmlCint) + + * xmlStrPrintf() is a vararg function. + * The following prototype supports up to 8 pointer arguments. + * Other argument signature can be achieved by defining alternate + * prototypes redirected to the same function. + + d xmlStrPrintf pr extproc('xmlStrPrintf') + d like(xmlCint) + d buf * value options(*string) xmlChar * + d len value like(xmlCint) + d msg * value options(*string) const char * + d arg1 * value options(*string: *nopass) + d arg2 * value options(*string: *nopass) + d arg3 * value options(*string: *nopass) + d arg4 * value options(*string: *nopass) + d arg5 * value options(*string: *nopass) + d arg6 * value options(*string: *nopass) + d arg7 * value options(*string: *nopass) + d arg8 * value options(*string: *nopass) + + d xmlStrVPrintf pr extproc('xmlStrVPrintf') + d like(xmlCint) + d buf * value options(*string) xmlChar * + d len value like(xmlCint) + d msg * value options(*string) const char * + d ap likeds(xmlVaList) + + d xmlGetUTF8Char pr extproc('xmlGetUTF8Char') + d like(xmlCint) + d utf * value options(*string) const uns. char * + d len like(xmlCint) + + d xmlCheckUTF8 pr extproc('xmlCheckUTF8') + d like(xmlCint) + d utf * value options(*string) const uns. char * + + d xmlUTF8Strsize pr extproc('xmlUTF8Strsize') + d like(xmlCint) + d utf * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlUTF8Strndup pr * extproc('xmlUTF8Strndup') xmlChar * + d utf * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlUTF8Strpos pr * extproc('xmlUTF8Strpos') const xmlChar * + d utf * value options(*string) const xmlChar * + d pos value like(xmlCint) + + d xmlUTF8Strloc pr extproc('xmlUTF8Strloc') + d like(xmlCint) + d utf * value options(*string) const xmlChar * + d utfchar * value options(*string) const xmlChar * + + d xmlUTF8Strsub pr * extproc('xmlUTF8Strsub') xmlChar * + d utf * value options(*string) const xmlChar * + d start value like(xmlCint) + d len value like(xmlCint) + + d xmlUTF8Strlen pr extproc('xmlUTF8Strlen') + d like(xmlCint) + d utf * value options(*string) const xmlChar * + + d xmlUTF8Size pr extproc('xmlUTF8Size') + d like(xmlCint) + d utf * value options(*string) const xmlChar * + + d xmlUTF8Charcmp pr extproc('xmlUTF8Charcmp') + d like(xmlCint) + d utf1 * value options(*string) const xmlChar * + d utf2 * value options(*string) const xmlChar * + + /endif XML_STRING_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlunicode.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlunicode.rpgle new file mode 100644 index 0000000..c4c4ba1 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlunicode.rpgle @@ -0,0 +1,836 @@ + * Summary: Unicode character APIs + * Description: API for the Unicode character APIs + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_UNICODE_H__) + /define XML_UNICODE_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_UNICODE_ENABLED) + + /include "libxmlrpg/xmlTypesC" + + d xmlUCSIsAegeanNumbers... + d pr extproc('xmlUCSIsAegeanNumbers') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsAlphabeticPresentationForms... + d pr extproc( + d 'xmlUCSIsAlphabeticPresentationForms' + d ) + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsArabic pr extproc('xmlUCSIsArabic') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsArabicPresentationFormsA... + d pr extproc( + d 'xmlUCSIsArabicPresentationFormsA') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsArabicPresentationFormsB... + d pr extproc( + d 'xmlUCSIsArabicPresentationFormsB') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsArmenian... + d pr extproc('xmlUCSIsArmenian') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsArrows pr extproc('xmlUCSIsArrows') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsBasicLatin... + d pr extproc('xmlUCSIsBasicLatin') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsBengali... + d pr extproc('xmlUCSIsBengali') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsBlockElements... + d pr extproc('xmlUCSIsBlockElements') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsBopomofo... + d pr extproc('xmlUCSIsBopomofo') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsBopomofoExtended... + d pr extproc('xmlUCSIsBopomofoExtended') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsBoxDrawing... + d pr extproc('xmlUCSIsBoxDrawing') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsBraillePatterns... + d pr extproc('xmlUCSIsBraillePatterns') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsBuhid pr extproc('xmlUCSIsBuhid') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsByzantineMusicalSymbols... + d pr extproc( + d 'xmlUCSIsByzantineMusicalSymbols') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCJKCompatibility... + d pr extproc('xmlUCSIsCJKCompatibility') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCJKCompatibilityForms... + d pr extproc( + d 'xmlUCSIsCJKCompatibilityForms') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCJKCompatibilityIdeographs... + d pr extproc( + d 'xmlUCSIsCJKCompatibilityIdeographs') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCJKCompatibilityIdeographsSupplement... + d pr extproc('xmlUCSIsCJKCompatibilityIde- + d ographsSupplement') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCJKRadicalsSupplement... + d pr extproc( + d 'xmlUCSIsCJKRadicalsSupplement') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCJKSymbolsandPunctuation... + d pr extproc( + d 'xmlUCSIsCJKSymbolsandPunctuation') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCJKUnifiedIdeographs... + d pr extproc( + d 'xmlUCSIsCJKUnifiedIdeographs') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCJKUnifiedIdeographsExtensionA... + d pr extproc('xmlUCSIsCJKUnifiedIdeograph- + d sExtensionA') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCJKUnifiedIdeographsExtensionB... + d pr extproc('xmlUCSIsCJKUnifiedIdeograph- + d sExtensionB') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCherokee... + d pr extproc('xmlUCSIsCherokee') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCombiningDiacriticalMarks... + d pr extproc( + d 'xmlUCSIsCombiningDiacriticalMarks') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCombiningDiacriticalMarksforSymbols... + d pr extproc('xmlUCSIsCombiningDiacritica- + d lMarksforSymbols') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCombiningHalfMarks... + d pr extproc('xmlUCSIsCombiningHalfMarks') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCombiningMarksforSymbols... + d pr extproc( + d 'xmlUCSIsCombiningMarksforSymbols') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsControlPictures... + d pr extproc('xmlUCSIsControlPictures') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCurrencySymbols... + d pr extproc('xmlUCSIsCurrencySymbols') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCypriotSyllabary... + d pr extproc('xmlUCSIsCypriotSyllabary') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCyrillic... + d pr extproc('xmlUCSIsCyrillic') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCyrillicSupplement... + d pr extproc('xmlUCSIsCyrillicSupplement') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsDeseret... + d pr extproc('xmlUCSIsDeseret') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsDevanagari... + d pr extproc('xmlUCSIsDevanagari') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsDingbats... + d pr extproc('xmlUCSIsDingbats') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsEnclosedAlphanumerics... + d pr extproc( + d 'xmlUCSIsEnclosedAlphanumerics') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsEnclosedCJKLettersandMonths... + d pr extproc( + d 'xmlUCSIsEnclosedCJKLettersandMonths' + d ) + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsEthiopic... + d pr extproc('xmlUCSIsEthiopic') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsGeneralPunctuation... + d pr extproc('xmlUCSIsGeneralPunctuation') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsGeometricShapes... + d pr extproc('xmlUCSIsGeometricShapes') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsGeorgian... + d pr extproc('xmlUCSIsGeorgian') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsGothic pr extproc('xmlUCSIsGothic') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsGreek pr extproc('xmlUCSIsGreek') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsGreekExtended... + d pr extproc('xmlUCSIsGreekExtended') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsGreekandCoptic... + d pr extproc('xmlUCSIsGreekandCoptic') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsGujarati... + d pr extproc('xmlUCSIsGujarati') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsGurmukhi... + d pr extproc('xmlUCSIsGurmukhi') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsHalfwidthandFullwidthForms... + d pr extproc( + d 'xmlUCSIsHalfwidthandFullwidthForms') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsHangulCompatibilityJamo... + d pr extproc( + d 'xmlUCSIsHangulCompatibilityJamo') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsHangulJamo... + d pr extproc('xmlUCSIsHangulJamo') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsHangulSyllables... + d pr extproc('xmlUCSIsHangulSyllables') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsHanunoo... + d pr extproc('xmlUCSIsHanunoo') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsHebrew pr extproc('xmlUCSIsHebrew') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsHighPrivateUseSurrogates... + d pr extproc( + d 'xmlUCSIsHighPrivateUseSurrogates') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsHighSurrogates... + d pr extproc('xmlUCSIsHighSurrogates') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsHiragana... + d pr extproc('xmlUCSIsHiragana') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsIPAExtensions... + d pr extproc('xmlUCSIsIPAExtensions') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsIdeographicDescriptionCharacters... + d pr extproc('xmlUCSIsIdeographicDescript- + d ionCharacters') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsKanbun pr extproc('xmlUCSIsKanbun') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsKangxiRadicals... + d pr extproc('xmlUCSIsKangxiRadicals') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsKannada... + d pr extproc('xmlUCSIsKannada') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsKatakana... + d pr extproc('xmlUCSIsKatakana') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsKatakanaPhoneticExtensions... + d pr extproc( + d 'xmlUCSIsKatakanaPhoneticExtensions') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsKhmer pr extproc('xmlUCSIsKhmer') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsKhmerSymbols... + d pr extproc('xmlUCSIsKhmerSymbols') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsLao pr extproc('xmlUCSIsLao') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsLatin1Supplement... + d pr extproc('xmlUCSIsLatin1Supplement') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsLatinExtendedA... + d pr extproc('xmlUCSIsLatinExtendedA') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsLatinExtendedB... + d pr extproc('xmlUCSIsLatinExtendedB') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsLatinExtendedAdditional... + d pr extproc( + d 'xmlUCSIsLatinExtendedAdditional') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsLetterlikeSymbols... + d pr extproc('xmlUCSIsLetterlikeSymbols') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsLimbu pr extproc('xmlUCSIsLimbu') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsLinearBIdeograms... + d pr extproc('xmlUCSIsLinearBIdeograms') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsLinearBSyllabary... + d pr extproc('xmlUCSIsLinearBSyllabary') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsLowSurrogates... + d pr extproc('xmlUCSIsLowSurrogates') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsMalayalam... + d pr extproc('xmlUCSIsMalayalam') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsMathematicalAlphanumericSymbols... + d pr extproc('xmlUCSIsMathematicalAlphanu- + d mericSymbols') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsMathematicalOperators... + d pr extproc( + d 'xmlUCSIsMathematicalOperators') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsMiscellaneousMathematicalSymbolsA... + d pr extproc('xmlUCSIsMiscellaneousMathem- + d aticalSymbolsA') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsMiscellaneousMathematicalSymbolsB... + d pr extproc('xmlUCSIsMiscellaneousMathem- + d aticalSymbolsB') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsMiscellaneousSymbols... + d pr extproc( + d 'xmlUCSIsMiscellaneousSymbols') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsMiscellaneousSymbolsandArrows... + d pr extproc('xmlUCSIsMiscellaneousSymbol- + d sandArrows') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsMiscellaneousTechnical... + d pr extproc( + d 'xmlUCSIsMiscellaneousTechnical') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsMongolian... + d pr extproc('xmlUCSIsMongolian') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsMusicalSymbols... + d pr extproc('xmlUCSIsMusicalSymbols') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsMyanmar... + d pr extproc('xmlUCSIsMyanmar') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsNumberForms... + d pr extproc('xmlUCSIsNumberForms') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsOgham pr extproc('xmlUCSIsOgham') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsOldItalic... + d pr extproc('xmlUCSIsOldItalic') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsOpticalCharacterRecognition... + d pr extproc( + d 'xmlUCSIsOpticalCharacterRecognition' + d ) + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsOriya pr extproc('xmlUCSIsOriya') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsOsmanya... + d pr extproc('xmlUCSIsOsmanya') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsPhoneticExtensions... + d pr extproc('xmlUCSIsPhoneticExtensions') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsPrivateUse... + d pr extproc('xmlUCSIsPrivateUse') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsPrivateUseArea... + d pr extproc('xmlUCSIsPrivateUseArea') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsRunic pr extproc('xmlUCSIsRunic') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsShavian... + d pr extproc('xmlUCSIsShavian') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsSinhala... + d pr extproc('xmlUCSIsSinhala') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsSmallFormVariants... + d pr extproc('xmlUCSIsSmallFormVariants') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsSpacingModifierLetters... + d pr extproc( + d 'xmlUCSIsSpacingModifierLetters') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsSpecials... + d pr extproc('xmlUCSIsSpecials') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsSuperscriptsandSubscripts... + d pr extproc( + d 'xmlUCSIsSuperscriptsandSubscripts') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsSupplementalArrowsA... + d pr extproc( + d 'xmlUCSIsSupplementalArrowsA') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsSupplementalArrowsB... + d pr extproc( + d 'xmlUCSIsSupplementalArrowsB') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsSupplementalMathematicalOperators... + d pr extproc('xmlUCSIsSupplementalMathema- + d ticalOperators') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsSupplementaryPrivateUseAreaA... + d pr extproc('xmlUCSIsSupplementaryPrivat- + d eUseAreaA') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsSupplementaryPrivateUseAreaB... + d pr extproc('xmlUCSIsSupplementaryPrivat- + d eUseAreaB') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsSyriac pr extproc('xmlUCSIsSyriac') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsTagalog... + d pr extproc('xmlUCSIsTagalog') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsTagbanwa... + d pr extproc('xmlUCSIsTagbanwa') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsTags pr extproc('xmlUCSIsTags') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsTaiLe pr extproc('xmlUCSIsTaiLe') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsTaiXuanJingSymbols... + d pr extproc('xmlUCSIsTaiXuanJingSymbols') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsTamil pr extproc('xmlUCSIsTamil') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsTelugu pr extproc('xmlUCSIsTelugu') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsThaana pr extproc('xmlUCSIsThaana') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsThai pr extproc('xmlUCSIsThai') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsTibetan... + d pr extproc('xmlUCSIsTibetan') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsUgaritic... + d pr extproc('xmlUCSIsUgaritic') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsUnifiedCanadianAboriginalSyllabics... + d pr extproc('xmlUCSIsUnifiedCanadianAbor- + d iginalSyllabics') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsVariationSelectors... + d pr extproc('xmlUCSIsVariationSelectors') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsVariationSelectorsSupplement... + d pr extproc('xmlUCSIsVariationSelectorsS- + d upplement') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsYiRadicals... + d pr extproc('xmlUCSIsYiRadicals') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsYiSyllables... + d pr extproc('xmlUCSIsYiSyllables') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsYijingHexagramSymbols... + d pr extproc( + d 'xmlUCSIsYijingHexagramSymbols') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsBlock pr extproc('xmlUCSIsBlock') + d like(xmlCint) + d code value like(xmlCint) + d block * value options(*string) const char * + + d xmlUCSIsCatC pr extproc('xmlUCSIsCatC') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatCc pr extproc('xmlUCSIsCatCc') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatCf pr extproc('xmlUCSIsCatCf') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatCo pr extproc('xmlUCSIsCatCo') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatCs pr extproc('xmlUCSIsCatCs') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatL pr extproc('xmlUCSIsCatL') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatLl pr extproc('xmlUCSIsCatLl') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatLm pr extproc('xmlUCSIsCatLm') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatLo pr extproc('xmlUCSIsCatLo') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatLt pr extproc('xmlUCSIsCatLt') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatLu pr extproc('xmlUCSIsCatLu') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatM pr extproc('xmlUCSIsCatM') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatMc pr extproc('xmlUCSIsCatMc') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatMe pr extproc('xmlUCSIsCatMe') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatMn pr extproc('xmlUCSIsCatMn') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatN pr extproc('xmlUCSIsCatN') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatNd pr extproc('xmlUCSIsCatNd') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatNl pr extproc('xmlUCSIsCatNl') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatNo pr extproc('xmlUCSIsCatNo') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatP pr extproc('xmlUCSIsCatP') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatPc pr extproc('xmlUCSIsCatPc') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatPd pr extproc('xmlUCSIsCatPd') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatPe pr extproc('xmlUCSIsCatPe') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatPf pr extproc('xmlUCSIsCatPf') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatPi pr extproc('xmlUCSIsCatPi') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatPo pr extproc('xmlUCSIsCatPo') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatPs pr extproc('xmlUCSIsCatPs') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatS pr extproc('xmlUCSIsCatS') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatSc pr extproc('xmlUCSIsCatSc') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatSk pr extproc('xmlUCSIsCatSk') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatSm pr extproc('xmlUCSIsCatSm') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatSo pr extproc('xmlUCSIsCatSo') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatZ pr extproc('xmlUCSIsCatZ') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatZl pr extproc('xmlUCSIsCatZl') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatZp pr extproc('xmlUCSIsCatZp') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCatZs pr extproc('xmlUCSIsCatZs') + d like(xmlCint) + d code value like(xmlCint) + + d xmlUCSIsCat pr extproc('xmlUCSIsCat') + d like(xmlCint) + d code value like(xmlCint) + d cat * value options(*string) const char * + + /endif LIBXML_UNICODE_ENBLD + /endif XML_UNICODE_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlversion.rpgle.in b/libxml2-2.9.10/os400/libxmlrpg/xmlversion.rpgle.in new file mode 100644 index 0000000..955599e --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlversion.rpgle.in @@ -0,0 +1,353 @@ + * Summary: compile-time version informations + * Description: compile-time version informations for the XML library + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_VERSION_H__) + /define XML_VERSION_H__ + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/xmlexports" + + * use those to be sure nothing nasty will happen if + * your library and includes mismatch + + + d xmlCheckVersion... + d pr extproc('xmlCheckVersion') + d version value like(xmlCint) + + * LIBXML_DOTTED_VERSION: + * + * the version string like "1.2.3" + + d LIBXML_DOTTED_VERSION... + d c '@VERSION@' + + * LIBXML_VERSION: + * + * the version number: 1.2.3 value is 10203 + + d LIBXML_VERSION c @LIBXML_VERSION_NUMBER@ + + * LIBXML_VERSION_STRING: + * + * the version number string, 1.2.3 value is "10203" + + d LIBXML_VERSION_STRING... + d c '@LIBXML_VERSION_NUMBER@' + + * LIBXML_VERSION_EXTRA: + * + * extra version information, used to show a CVS compilation + + d LIBXML_VERSION_EXTRA... + d c '@LIBXML_VERSION_EXTRA@' + + * For conditional compilation + /define DEFINED_1 + /undefine DEFINED_0 + + /if defined(DEFINED_@WITH_TRIO@) + * WITH_TRIO: + * + * defined if the trio support need to be configured in + + /define WITH_TRIO + /else + * WITHOUT_TRIO: + * + * defined if the trio support should not be configured in + + /define WITHOUT_TRIO + /endif + + * LIBXML_THREAD_ENABLED: + * + * Whether the thread support is configured in + + /if defined(DEFINED_@WITH_THREADS@) + /define LIBXML_THREAD_ENABLED + /endif + + * LIBXML_THREAD_ALLOC_ENABLED: + * + * Whether the allocation hooks are per-thread + + /if defined(DEFINED_@WITH_THREAD_ALLOC@) + /define LIBXML_THREAD_ALLOC_ENABLED + /endif + + * LIBXML_TREE_ENABLED: + * + * Whether the DOM like tree manipulation API support is configured in + + /if defined(DEFINED_@WITH_TREE@) + /define LIBXML_TREE_ENABLED + /endif + + * LIBXML_OUTPUT_ENABLED: + * + * Whether the serialization/saving support is configured in + + /if defined(DEFINED_@WITH_OUTPUT@) + /define LIBXML_OUTPUT_ENABLED + /endif + + * LIBXML_PUSH_ENABLED: + * + * Whether the push parsing interfaces are configured in + + /if defined(DEFINED_@WITH_PUSH@) + /define LIBXML_PUSH_ENABLED + /endif + + * LIBXML_READER_ENABLED: + * + * Whether the xmlReader parsing interface is configured in + + /if defined(DEFINED_@WITH_READER@) + /define LIBXML_READER_ENABLED + /endif + + * LIBXML_PATTERN_ENABLED: + * + * Whether the xmlPattern node selection interface is configured in + + /if defined(DEFINED_@WITH_PATTERN@) + /define LIBXML_PATTERN_ENABLED + /endif + + * LIBXML_WRITER_ENABLED: + * + * Whether the xmlWriter saving interface is configured in + + /if defined(DEFINED_@WITH_WRITER@) + /define LIBXML_WRITER_ENABLED + /endif + + * LIBXML_SAX1_ENABLED: + * + * Whether the older SAX1 interface is configured in + + /if defined(DEFINED_@WITH_SAX1@) + /define LIBXML_SAX1_ENABLED + /endif + + * LIBXML_FTP_ENABLED: + * + * Whether the FTP support is configured in + + /if defined(DEFINED_@WITH_FTP@) + /define LIBXML_FTP_ENABLED + /endif + + * LIBXML_HTTP_ENABLED: + * + * Whether the HTTP support is configured in + + /if defined(DEFINED_@WITH_HTTP@) + /define LIBXML_HTTP_ENABLED + /endif + + * LIBXML_VALID_ENABLED: + * + * Whether the DTD validation support is configured in + + /if defined(DEFINED_@WITH_VALID@) + /define LIBXML_VALID_ENABLED + /endif + + * LIBXML_HTML_ENABLED: + * + * Whether the HTML support is configured in + + /if defined(DEFINED_@WITH_HTML@) + /define LIBXML_HTML_ENABLED + /endif + + * LIBXML_LEGACY_ENABLED: + * + * Whether the deprecated APIs are compiled in for compatibility + + /if defined(DEFINED_@WITH_LEGACY@) + /define LIBXML_LEGACY_ENABLED + /endif + + * LIBXML_C14N_ENABLED: + * + * Whether the Canonicalization support is configured in + + /if defined(DEFINED_@WITH_C14N@) + /define LIBXML_C14N_ENABLED + /endif + + * LIBXML_CATALOG_ENABLED: + * + * Whether the Catalog support is configured in + + /if defined(DEFINED_@WITH_CATALOG@) + /define LIBXML_CATALOG_ENABLED + /endif + + * LIBXML_DOCB_ENABLED: + * + * Whether the SGML Docbook support is configured in + + /if defined(DEFINED_@WITH_DOCB@) + /define LIBXML_DOCB_ENABLED + /endif + + * LIBXML_XPATH_ENABLED: + * + * Whether XPath is configured in + + /if defined(DEFINED_@WITH_XPATH@) + /define LIBXML_XPATH_ENABLED + /endif + + * LIBXML_XPTR_ENABLED: + * + * Whether XPointer is configured in + + /if defined(DEFINED_@WITH_XPTR@) + /define LIBXML_XPTR_ENABLED + /endif + + * LIBXML_XINCLUDE_ENABLED: + * + * Whether XInclude is configured in + + /if defined(DEFINED_@WITH_XINCLUDE@) + /define LIBXML_XINCLUDE_ENABLED + /endif + + * LIBXML_ICONV_ENABLED: + * + * Whether iconv support is available + + /if defined(DEFINED_@WITH_ICONV@) + /define LIBXML_ICONV_ENABLED + /endif + + * LIBXML_ICU_ENABLED: + * + * Whether icu support is available + + /if defined(DEFINED_@WITH_ICU@) + /define LIBXML_ICU_ENABLED + /endif + + * LIBXML_ISO8859X_ENABLED: + * + * Whether ISO-8859-* support is made available in case iconv is not + + /if defined(DEFINED_@WITH_ISO8859X@) + /define LIBXML_ISO8859X_ENABLED + /endif + + * LIBXML_DEBUG_ENABLED: + * + * Whether Debugging module is configured in + + /if defined(DEFINED_@WITH_DEBUG@) + /define LIBXML_DEBUG_ENABLED + /endif + + * DEBUG_MEMORY_LOCATION: + * + * Whether the memory debugging is configured in + + /if defined(DEFINED_@WITH_MEM_DEBUG@) + /define DEBUG_MEMORY_LOCATION + /endif + + * LIBXML_DEBUG_RUNTIME: + * + * Whether the runtime debugging is configured in + + /if defined(DEFINED_@WITH_RUN_DEBUG@) + /define LIBXML_DEBUG_RUNTIME + /endif + + * LIBXML_UNICODE_ENABLED: + * + * Whether the Unicode related interfaces are compiled in + + /if defined(DEFINED_@WITH_REGEXPS@) + /define LIBXML_UNICODE_ENABLED + /endif + + * LIBXML_REGEXP_ENABLED: + * + * Whether the regular expressions interfaces are compiled in + + /if defined(DEFINED_@WITH_REGEXPS@) + /define LIBXML_REGEXP_ENABLED + /endif + + * LIBXML_AUTOMATA_ENABLED: + * + * Whether the automata interfaces are compiled in + + /if defined(DEFINED_@WITH_REGEXPS@) + /define LIBXML_AUTOMATA_ENABLED + /endif + + * LIBXML_EXPR_ENABLED: + * + * Whether the formal expressions interfaces are compiled in + + /if defined(DEFINED_@WITH_SCHEMAS@) + /define LIBXML_EXPR_ENABLED + /endif + + * LIBXML_SCHEMAS_ENABLED: + * + * Whether the Schemas validation interfaces are compiled in + + /if defined(DEFINED_@WITH_SCHEMAS@) + /define LIBXML_SCHEMAS_ENABLED + /endif + + * LIBXML_SCHEMATRON_ENABLED: + * + * Whether the Schematron validation interfaces are compiled in + + /if defined(DEFINED_@WITH_SCHEMATRON@) + /define LIBXML_SCHEMATRON_ENABLED + /endif + + * LIBXML_MODULES_ENABLED: + * + * Whether the module interfaces are compiled in + + /if defined(DEFINED_@WITH_MODULES@) + /define LIBXML_MODULES_ENABLED + + * LIBXML_MODULE_EXTENSION: + * + * the string suffix used by dynamic modules (usually shared libraries) + + d LIBXML_MODULE_EXTENSION... + d c '.SRVPGM' + /endif + + * LIBXML_ZLIB_ENABLED: + * + * Whether the Zlib support is compiled in + + /if defined(DEFINED_@WITH_ZLIB@) + /define LIBXML_ZLIB_ENABLED + /endif + + * LIBXML_LZMA_ENABLED: + * + * Whether the Lzma support is compiled in + + /if defined(DEFINED_@WITH_LZMA@) + /define LIBXML_LZMA_ENABLED + /endif + /endif diff --git a/libxml2-2.9.10/os400/libxmlrpg/xmlwriter.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xmlwriter.rpgle new file mode 100644 index 0000000..c8530f8 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xmlwriter.rpgle @@ -0,0 +1,801 @@ + * Summary: text writing API for XML + * Description: text writing API for XML + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_XMLWRITER_H__) + /define XML_XMLWRITER_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_WRITER_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/xmlstdarg" + /include "libxmlrpg/xmlIO" + /include "libxmlrpg/list" + /include "libxmlrpg/xmlstring" + + d xmlTextWriterPtr... + d s * based(######typedef######) + + * Constructors & Destructor + + d xmlNewTextWriter... + d pr extproc('xmlNewTextWriter') + d like(xmlTextWriterPtr) + d out value like(xmlOutputBufferPtr) + + d xmlNewTextWriterFilename... + d pr extproc('xmlNewTextWriterFilename') + d like(xmlTextWriterPtr) + d uri * value options(*string) const char * + d compression value like(xmlCint) + + d xmlNewTextWriterMemory... + d pr extproc('xmlNewTextWriterMemory') + d like(xmlTextWriterPtr) + d buf value like(xmlBufferPtr) + d compression value like(xmlCint) + + d xmlNewTextWriterPushParser... + d pr extproc('xmlNewTextWriterPushParser') + d like(xmlTextWriterPtr) + d ctxt value like(xmlParserCtxtPtr) + d compression value like(xmlCint) + + d xmlNewTextWriterDoc... + d pr extproc('xmlNewTextWriterDoc') + d like(xmlTextWriterPtr) + d doc like(xmlDocPtr) + d compression value like(xmlCint) + + d xmlNewTextWriterTree... + d pr extproc('xmlNewTextWriterTree') + d like(xmlTextWriterPtr) + d doc value like(xmlDocPtr) + d node value like(xmlNodePtr) + d compression value like(xmlCint) + + d xmlFreeTextWriter... + d pr extproc('xmlFreeTextWriter') + d writer value like(xmlTextWriterPtr) + + * Functions + + * Document + + d xmlTextWriterStartDocument... + d pr extproc('xmlTextWriterStartDocument') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d version * value options(*string) const char * + d encoding * value options(*string) const char * + d standalone * value options(*string) const char * + + d xmlTextWriterEndDocument... + d pr extproc('xmlTextWriterEndDocument') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + * Comments + + d xmlTextWriterStartComment... + d pr extproc('xmlTextWriterStartComment') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + d xmlTextWriterEndComment... + d pr extproc('xmlTextWriterEndComment') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + d xmlTextWriterWriteFormatComment... + d pr extproc( + d 'xmlTextWriterWriteFormatComment') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d format * value options(*string: *nopass) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatComment... + d pr extproc( + d 'xmlTextWriterWriteVFormatComment') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteComment... + d pr extproc('xmlTextWriterWriteComment') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d content * value options(*string) const xmlChar * + + * Elements + + d xmlTextWriterStartElement... + d pr extproc('xmlTextWriterStartElement') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + + d xmlTextWriterStartElementNS... + d pr extproc( + d 'xmlTextWriterStartElementNS') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d prefix * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + d namespaceURI * value options(*string) const xmlChar * + + d xmlTextWriterEndElement... + d pr extproc('xmlTextWriterEndElement') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + d xmlTextWriterFullEndElement... + d pr extproc( + d 'xmlTextWriterFullEndElement') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + * Elements conveniency functions + + d xmlTextWriterWriteFormatElement... + d pr extproc( + d 'xmlTextWriterWriteFormatElement') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatElement... + d pr extproc( + d 'xmlTextWriterWriteVFormatElement') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteElement... + d pr extproc('xmlTextWriterWriteElement') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + d xmlTextWriterWriteFormatElementNS... + d pr extproc( + d 'xmlTextWriterWriteFormatElementNS') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d prefix * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + d namespaceURI * value options(*string) const xmlChar * + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatElementNS... + d pr extproc( + d 'xmlTextWriterWriteVFormatElementNS') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d prefix * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + d namespaceURI * value options(*string) const xmlChar * + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteElementNS... + d pr extproc( + d 'xmlTextWriterWriteElementNS') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d prefix * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + d namespaceURI * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + * Text + + d xmlTextWriterWriteFormatRaw... + d pr extproc( + d 'xmlTextWriterWriteFormatRaw') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatRaw... + d pr extproc( + d 'xmlTextWriterWriteVFormatRaw') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteRawLen... + d pr extproc('xmlTextWriterWriteRawLen') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d content * value options(*string) const xmlChar * + d len value like(xmlCint) + + d xmlTextWriterWriteRaw... + d pr extproc('xmlTextWriterWriteRaw') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d content * value options(*string) const xmlChar * + + d xmlTextWriterWriteFormatString... + d pr extproc( + d 'xmlTextWriterWriteFormatString') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatString... + d pr extproc( + d 'xmlTextWriterWriteVFormatString') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteString... + d pr extproc('xmlTextWriterWriteString') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d content * value options(*string) const xmlChar * + + d xmlTextWriterWriteBase64... + d pr extproc('xmlTextWriterWriteBase64') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d data * value options(*string) const char * + d start value like(xmlCint) + d len value like(xmlCint) + + d xmlTextWriterWriteBinHex... + d pr extproc('xmlTextWriterWriteBinHex') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d data * value options(*string) const char * + d start value like(xmlCint) + d len value like(xmlCint) + + * Attributes + + d xmlTextWriterStartAttribute... + d pr extproc( + d 'xmlTextWriterStartAttribute') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + + d xmlTextWriterStartAttributeNS... + d pr extproc( + d 'xmlTextWriterStartAttributeNS') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d prefix * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + d namespaceURI * value options(*string) const xmlChar * + + d xmlTextWriterEndAttribute... + d pr extproc('xmlTextWriterEndAttribute') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + * Attributes conveniency functions + + d xmlTextWriterWriteFormatAttribute... + d pr extproc( + d 'xmlTextWriterWriteFormatAttribute') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatAttribute... + d pr extproc( + d 'xmlTextWriterWriteVFormatAttribute') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteAttribute... + d pr extproc( + d 'xmlTextWriterWriteAttribute') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + d xmlTextWriterWriteFormatAttributeNS... + d pr extproc( + d 'xmlTextWriterWriteFormatAttributeNS' + d ) + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d prefix * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + d namespaceURI * value options(*string) const xmlChar * + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatAttributeNS... + d pr extproc('xmlTextWriterWriteVFormatAt- + d tributeNS') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d prefix * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + d namespaceURI * value options(*string) const xmlChar * + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteAttributeNS... + d pr extproc( + d 'xmlTextWriterWriteAttributeNS') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d prefix * value options(*string) const xmlChar * + d name * value options(*string) const xmlChar * + d namespaceURI * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + * PI's + + d xmlTextWriterStartPI... + d pr extproc('xmlTextWriterStartPI') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d target * value options(*string) const xmlChar * + + d xmlTextWriterEndPI... + d pr extproc('xmlTextWriterEndPI') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + * PI conveniency functions + + d xmlTextWriterWriteFormatPI... + d pr extproc('xmlTextWriterWriteFormatPI') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d target * value options(*string) const xmlChar * + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatPI... + d pr extproc( + d 'xmlTextWriterWriteVFormatPI') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d target * value options(*string) const xmlChar * + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWritePI... + d pr extproc('xmlTextWriterWritePI') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d target * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + * xmlTextWriterWriteProcessingInstruction: + * + * This macro maps to xmlTextWriterWritePI + + d xmlTextWriterWriteProcessingInstruction... + d pr extproc('xmlTextWriterWritePI') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d target * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + * CDATA + + d xmlTextWriterStartCDATA... + d pr extproc('xmlTextWriterStartCDATA') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + d xmlTextWriterEndCDATA... + d pr extproc('xmlTextWriterEndCDATA') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + * CDATA conveniency functions + + d xmlTextWriterWriteFormatCDATA... + d pr extproc( + d 'xmlTextWriterWriteFormatCDATA') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatCDATA... + d pr extproc( + d 'xmlTextWriterWriteVFormatCDATA') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteCDATA... + d pr extproc('xmlTextWriterWriteCDATA') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d content * value options(*string) const xmlChar * + + * DTD + + d xmlTextWriterStartDTD... + d pr extproc('xmlTextWriterStartDTD') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d pubid * value options(*string) const xmlChar * + d sysid * value options(*string) const xmlChar * + + d xmlTextWriterEndDTD... + d pr extproc('xmlTextWriterEndDTD') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + * DTD conveniency functions + + d xmlTextWriterWriteFormatDTD... + d pr extproc( + d 'xmlTextWriterWriteFormatDTD') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d pubid * value options(*string) const xmlChar * + d sysid * value options(*string) const xmlChar * + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatDTD... + d pr extproc( + d 'xmlTextWriterWriteVFormatDTD') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d pubid * value options(*string) const xmlChar * + d sysid * value options(*string) const xmlChar * + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteDTD... + d pr extproc('xmlTextWriterWriteDTD') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d pubid * value options(*string) const xmlChar * + d sysid * value options(*string) const xmlChar * + d subset * value options(*string) const xmlChar * + + * xmlTextWriterWriteDocType: + * + * this macro maps to xmlTextWriterWriteDTD + + d xmlTextWriterWriteDocType... + d pr extproc('xmlTextWriterWriteDTD') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d pubid * value options(*string) const xmlChar * + d sysid * value options(*string) const xmlChar * + d subset * value options(*string) const xmlChar * + + * DTD element definition + + d xmlTextWriterStartDTDElement... + d pr extproc( + d 'xmlTextWriterStartDTDElement') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + + d xmlTextWriterEndDTDElement... + d pr extproc('xmlTextWriterEndDTDElement') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + * DTD element definition conveniency functions + + d xmlTextWriterWriteFormatDTDElement... + d pr extproc( + d 'xmlTextWriterWriteFormatDTDElement') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatDTDElement... + d pr extproc( + d 'xmlTextWriterWriteVFormatDTDElement' + d ) + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteDTDElement... + d pr extproc( + d 'xmlTextWriterWriteDTDElement') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + * DTD attribute list definition + + d xmlTextWriterStartDTDAttlist... + d pr extproc( + d 'xmlTextWriterStartDTDAttlist') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + + d xmlTextWriterEndDTDAttlist... + d pr extproc('xmlTextWriterEndDTDAttlist') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + * DTD attribute list definition conveniency functions + + d xmlTextWriterWriteFormatDTDAttlist... + d pr extproc( + d 'xmlTextWriterWriteFormatDTDAttlist') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatDTDAttlist... + d pr extproc( + d 'xmlTextWriterWriteVFormatDTDAttlist' + d ) + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteDTDAttlist... + d pr extproc( + d 'xmlTextWriterWriteDTDAttlist') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + * DTD entity definition + + d xmlTextWriterStartDTDEntity... + d pr extproc( + d 'xmlTextWriterStartDTDEntity') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d pe value like(xmlCint) + d name * value options(*string) const xmlChar * + + d xmlTextWriterEndDTDEntity... + d pr extproc('xmlTextWriterEndDTDEntity') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + * DTD entity definition conveniency functions + + d xmlTextWriterWriteFormatDTDInternalEntity... + d pr extproc('xmlTextWriterWriteFormatDTD- + d InternalEntity') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d pe value like(xmlCint) + d name * value options(*string) const xmlChar * + d format * value options(*string) const char * + d #vararg1 * value options(*string: *nopass) void * + d #vararg2 * value options(*string: *nopass) void * + d #vararg3 * value options(*string: *nopass) void * + d #vararg4 * value options(*string: *nopass) void * + d #vararg5 * value options(*string: *nopass) void * + d #vararg6 * value options(*string: *nopass) void * + d #vararg7 * value options(*string: *nopass) void * + d #vararg8 * value options(*string: *nopass) void * + + d xmlTextWriterWriteVFormatDTDInternalEntity... + d pr extproc('xmlTextWriterWriteVFormatDT- + d DInternalEntity') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d pe value like(xmlCint) + d name * value options(*string) const xmlChar * + d format * value options(*string) const char * + d argptr likeds(xmlVaList) + + d xmlTextWriterWriteDTDInternalEntity... + d pr extproc( + d 'xmlTextWriterWriteDTDInternalEntity' + d ) + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d pe value like(xmlCint) + d name * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + d xmlTextWriterWriteDTDExternalEntity... + d pr extproc( + d 'xmlTextWriterWriteDTDExternalEntity' + d ) + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d pe value like(xmlCint) + d name * value options(*string) const xmlChar * + d pubid * value options(*string) const xmlChar * + d sysid * value options(*string) const xmlChar * + d ndataid * value options(*string) const xmlChar * + + d xmlTextWriterWriteDTDExternalEntityContents... + d pr extproc('xmlTextWriterWriteDTDExtern- + d alEntityContents') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d pubid * value options(*string) const xmlChar * + d sysid * value options(*string) const xmlChar * + d ndataid * value options(*string) const xmlChar * + + d xmlTextWriterWriteDTDEntity... + d pr extproc( + d 'xmlTextWriterWriteDTDEntity') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d pe value like(xmlCint) + d name * value options(*string) const xmlChar * + d pubid * value options(*string) const xmlChar * + d sysid * value options(*string) const xmlChar * + d ndataid * value options(*string) const xmlChar * + d content * value options(*string) const xmlChar * + + * DTD notation definition + + d xmlTextWriterWriteDTDNotation... + d pr extproc( + d 'xmlTextWriterWriteDTDNotation') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d name * value options(*string) const xmlChar * + d pubid * value options(*string) const xmlChar * + d sysid * value options(*string) const xmlChar * + + * Indentation + + d xmlTextWriterSetIndent... + d pr extproc('xmlTextWriterSetIndent') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d indent value like(xmlCint) + + d xmlTextWriterSetIndentString... + d pr extproc( + d 'xmlTextWriterSetIndentString') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d str * value options(*string) const xmlChar * + + d xmlTextWriterSetQuoteChar... + d pr extproc('xmlTextWriterSetQuoteChar') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + d quotechar value like(xmlChar) + + * misc + + d xmlTextWriterFlush... + d pr extproc('xmlTextWriterFlush') + d like(xmlCint) + d writer value like(xmlTextWriterPtr) + + /endif LIBXML_WRITER_ENABLD + /endif XML_XMLWRITER_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xpath.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xpath.rpgle new file mode 100644 index 0000000..6e591ee --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xpath.rpgle @@ -0,0 +1,675 @@ + * Summary: XML Path Language implementation + * Description: API for the XML Path Language implementation + * + * XML Path Language implementation + * XPath is a language for addressing parts of an XML document, + * designed to be used by both XSLT and XPointer + * http://www.w3.org/TR/xpath + * + * Implements + * W3C Recommendation 16 November 1999 + * http://www.w3.org/TR/1999/REC-xpath-19991116 + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_XPATH_H__) + /define XML_XPATH_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_XPATH_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/xmlerror" + /include "libxmlrpg/tree" + /include "libxmlrpg/hash" + /endif LIBXML_XPATH_ENABLED + + /if defined(LIBXML_XPATH_ENABLED) + + d xmlXPathContextPtr... + d s * based(######typedef######) + + d xmlXPathParserContextPtr... + d s * based(######typedef######) + + * The set of XPath error codes. + + d xmlXPathError s based(######typedef######) + d like(xmlCenum) + d XPATH_EXPRESSION_OK... + d c 0 + d XPATH_NUMBER_ERROR... + d c 1 + d XPATH_UNFINISHED_LITERAL_ERROR... + d c 2 + d XPATH_START_LITERAL_ERROR... + d c 3 + d XPATH_VARIABLE_REF_ERROR... + d c 4 + d XPATH_UNDEF_VARIABLE_ERROR... + d c 5 + d XPATH_INVALID_PREDICATE_ERROR... + d c 6 + d XPATH_EXPR_ERROR... + d c 7 + d XPATH_UNCLOSED_ERROR... + d c 8 + d XPATH_UNKNOWN_FUNC_ERROR... + d c 9 + d XPATH_INVALID_OPERAND... + d c 10 + d XPATH_INVALID_TYPE... + d c 11 + d XPATH_INVALID_ARITY... + d c 12 + d XPATH_INVALID_CTXT_SIZE... + d c 13 + d XPATH_INVALID_CTXT_POSITION... + d c 14 + d XPATH_MEMORY_ERROR... + d c 15 + d XPTR_SYNTAX_ERROR... + d c 16 + d XPTR_RESOURCE_ERROR... + d c 17 + d XPTR_SUB_RESOURCE_ERROR... + d c 18 + d XPATH_UNDEF_PREFIX_ERROR... + d c 19 + d XPATH_ENCODING_ERROR... + d c 20 + d XPATH_INVALID_CHAR_ERROR... + d c 21 + d XPATH_INVALID_CTXT... + d c 22 + d XPATH_STACK_ERROR... + d c 23 + d XPATH_FORBID_VARIABLE_ERROR... + d c 24 + + * A node-set (an unordered collection of nodes without duplicates). + + d xmlNodeSetPtr s * based(######typedef######) + + d xmlNodeSet ds based(xmlNodeSetPtr) + d align qualified + d nodeNr like(xmlCint) Set node count + d nodeMax like(xmlCint) Max # nodes in set + d nodeTab * xmlNodePtr * + + * An expression is evaluated to yield an object, which + * has one of the following four basic types: + * - node-set + * - boolean + * - number + * - string + * + * @@ XPointer will add more types ! + + d xmlXPathObjectType... + d s based(######typedef######) + d like(xmlCenum) + d XPATH_UNDEFINED... + d c 0 + d XPATH_NODESET c 1 + d XPATH_BOOLEAN c 2 + d XPATH_NUMBER c 3 + d XPATH_STRING c 4 + d XPATH_POINT c 5 + d XPATH_RANGE c 6 + d XPATH_LOCATIONSET... + d c 7 + d XPATH_USERS c 8 + d XPATH_XSLT_TREE... R/O XSLT value tree + d c 9 + + d xmlXPathObjectPtr... + d s * based(######typedef######) + + d xmlXPathObject ds based(xmlXPathObjectPtr) + d align qualified + d type like(xmlXPathObjectType) + d nodesetval like(xmlNodeSetPtr) + d boolval like(xmlCint) + d floatval like(xmlCdouble) + d stringval * xmlChar * + d user * void * + d index like(xmlCint) + d user2 * void * + d index2 like(xmlCint) + + * xmlXPathConvertFunc: + * @obj: an XPath object + * @type: the number of the target type + * + * A conversion function is associated to a type and used to cast + * the new type to primitive values. + * + * Returns -1 in case of error, 0 otherwise + + d xmlXPathConvertFunc... + d s * based(######typedef######) + d procptr + + * Extra type: a name and a conversion function. + + d xmlXPathTypePtr... + d s * based(######typedef######) + + d xmlXPathType ds based(xmlXPathTypePtr) + d align qualified + d name * The type name + d func like(xmlXPathConvertFunc) Conversion function + + * Extra variable: a name and a value. + + d xmlXPathVariablePtr... + d s * based(######typedef######) + + d xmlXPathVariable... + d ds based(xmlXPathVariablePtr) + d align qualified + d name * The variable name + d value like(xmlXPathObjectPtr) The value + + * xmlXPathEvalFunc: + * @ctxt: an XPath parser context + * @nargs: the number of arguments passed to the function + * + * An XPath evaluation function, the parameters are on the XPath + * context stack. + + d xmlXPathEvalFunc... + d s * based(######typedef######) + d procptr + + * Extra function: a name and an evaluation function. + + d xmlXPathFuncPtr... + d s * based(######typedef######) + + d xmlXPathFunct ds based(xmlXPathFuncPtr) + d align qualified + d name * The function name + d func like(xmlXPathEvalFunc) Evaluation function + + * xmlXPathAxisFunc: + * @ctxt: the XPath interpreter context + * @cur: the previous node being explored on that axis + * + * An axis traversal function. To traverse an axis, the engine calls + * the first time with cur == NULL and repeat until the function returns + * NULL indicating the end of the axis traversal. + * + * Returns the next node in that axis or NULL if at the end of the axis. + + d xmlXPathAxisFunc... + d s * based(######typedef######) + d procptr + + * Extra axis: a name and an axis function. + + d xmlXPathAxisPtr... + d s * based(######typedef######) + + d xmlXPathAxis ds based(xmlXPathAxisPtr) + d align qualified + d name * The axis name + d func like(xmlXPathAxisFunc) The search function + + * xmlXPathFunction: + * @ctxt: the XPath interprestation context + * @nargs: the number of arguments + * + * An XPath function. + * The arguments (if any) are popped out from the context stack + * and the result is pushed on the stack. + + d xmlXPathFunction... + d s * based(######typedef######) + d procptr + + * Function and Variable Lookup. + + * xmlXPathVariableLookupFunc: + * @ctxt: an XPath context + * @name: name of the variable + * @ns_uri: the namespace name hosting this variable + * + * Prototype for callbacks used to plug variable lookup in the XPath + * engine. + * + * Returns the XPath object value or NULL if not found. + + d xmlXPathVariableLookupFunc... + d s * based(######typedef######) + d procptr + + * xmlXPathFuncLookupFunc: + * @ctxt: an XPath context + * @name: name of the function + * @ns_uri: the namespace name hosting this function + * + * Prototype for callbacks used to plug function lookup in the XPath + * engine. + * + * Returns the XPath function or NULL if not found. + + d xmlXPathFuncLookupFunc... + d s * based(######typedef######) + d procptr + + * xmlXPathFlags: + * Flags for XPath engine compilation and runtime + + * XML_XPATH_CHECKNS: + * + * check namespaces at compilation + + d XML_XPATH_CHECKNS... + d c X'0001' + + * XML_XPATH_NOVAR: + * + * forbid variables in expression + + d XML_XPATH_NOVAR... + d c X'0002' + + * xmlXPathContext: + * + * Expression evaluation occurs with respect to a context. + * he context consists of: + * - a node (the context node) + * - a node list (the context node list) + * - a set of variable bindings + * - a function library + * - the set of namespace declarations in scope for the expression + * Following the switch to hash tables, this need to be trimmed up at + * the next binary incompatible release. + * The node may be modified when the context is passed to libxml2 + * for an XPath evaluation so you may need to initialize it again + * before the next call. + + d xmlXPathContext... + d ds based(xmlXPathContextPtr) + d align qualified + d doc like(xmlDocPtr) Current document + d node like(xmlNodePtr) Current node + * + d nb_variables_unused... Unused (hash table) + d like(xmlCint) + d max_variables_unused... Unused (hash table) + d like(xmlCint) + d varHash like(xmlHashTablePtr) Defined variables + * + d nb_types like(xmlCint) # of defined types + d max_types like(xmlCint) Max number of types + d types like(xmlXPathTypePtr) Defined types array + * + d nb_funcs_unused... Unused (hash table) + d like(xmlCint) + d max_funcs_unused... Unused (hash table) + d like(xmlCint) + d funcHash like(xmlHashTablePtr) Defined functions + * + d nb_axis like(xmlCint) # of defined axis + d max_axis like(xmlCint) Max number of axis + d axis like(xmlXPathAxisPtr) Defined axis array + * + * the namespace nodes of the context node + * + d namespaces * xmlNsPtr * + d nsNr like(xmlCint) # scope namespaces + d user * procptr Function to free + * + * extra variables + * + d contextSize like(xmlCint) The context size + d proximityPosition... + d like(xmlCint) + * + * extra stuff for XPointer + * + d xptr like(xmlCint) XPointer context ? + d here like(xmlNodePtr) For here() + d origin like(xmlNodePtr) For origin() + * + * the set of namespace declarations in scope for the expression + * + d nsHash like(xmlHashTablePtr) Namespace hashtable + d varLookupFunc like(xmlXPathVariableLookupFunc) Var lookup function + d varLookupData * void * + * + * Possibility to link in an extra item + * + d extra * void * + * + * The function name and URI when calling a function + * + d function * const xmlChar * + d functionURI * const xmlChar * + * + * function lookup function and data + * + d funcLookupFunc... Func lookup func + d like(xmlXPathVariableLookupFunc) + d funcLookupData... void * + d * + * + * temporary namespace lists kept for walking the namespace axis + * + d tmpNsList * xmlNsPtr * + d tmpNsNr like(xmlCint) # scope namespaces + * + * error reporting mechanism + * + d userData * void * + d error like(xmlStructuredErrorFunc) Error callback + d lastError likeds(xmlError) The last error + d debugNode like(xmlNodePtr) XSLT source node + * + * dictionary + * + d dict like(xmlDictPtr) Dictionary if any + * + d flags like(xmlCint) Compilation control + * + * Cache for reusal of XPath objects + * + d cache * void * + + * The structure of a compiled expression form is not public. + + d xmlXPathCompExprPtr... + d s * based(######typedef######) + + * xmlXPathParserContext: + * + * An XPath parser context. It contains pure parsing informations, + * an xmlXPathContext, and the stack of objects. + + d xmlXPathParserContext... + d ds based(xmlXPathParserContextPtr) + d align qualified + d cur * const xmlChar * + d base * const xmlChar * + * + d error like(xmlCint) Error code + * + d context like(xmlXPathContextPtr) Evaluation context + d value like(xmlXPathObjectPtr) The current value + d valueNr like(xmlCint) Value stack depth + d valueMax like(xmlCint) Max stack depth + d valueTab * xmlXPathObjectPtr * + * + d comp like(xmlXPathCompExprPtr) Precompiled expr. + d xptr like(xmlCint) XPointer expression? + d ancestor like(xmlNodePtr) To walk prec. axis + * + d valueFrame like(xmlCint) Limit stack pop + + ************************************************************************** + * * + * Public API * + * * + ************************************************************************** + + * Objects and Nodesets handling + + d xmlXPathNAN s import('xmlXPathNAN') + d like(xmlCdouble) + + d xmlXPathPINF s import('xmlXPathPINF') + d like(xmlCdouble) + + d xmlXPathNINF s import('xmlXPathNINF') + d like(xmlCdouble) + + d xmlXPathFreeObject... + d pr extproc('xmlXPathFreeObject') + d obj value like(xmlXPathObjectPtr) + + d xmlXPathNodeSetCreate... + d pr extproc('xmlXPathNodeSetCreate') + d like(xmlNodeSetPtr) + d val value like(xmlNodePtr) + + d xmlXPathFreeNodeSetList... + d pr extproc('xmlXPathFreeNodeSetList') + d obj value like(xmlXPathObjectPtr) + + d xmlXPathFreeNodeSet... + d pr extproc('xmlXPathFreeNodeSet') + d obj value like(xmlNodeSetPtr) + + d xmlXPathObjectCopy... + d pr extproc('xmlXPathObjectCopy') + d like(xmlXPathObjectPtr) + d val value like(xmlXPathObjectPtr) + + d xmlXPathCmpNodes... + d pr extproc('xmlXPathCmpNodes') + d like(xmlCint) + d node1 value like(xmlNodePtr) + d node2 value like(xmlNodePtr) + + * Conversion functions to basic types. + + d xmlXPathCastNumberToBoolean... + d pr extproc( + d 'xmlXPathCastNumberToBoolean') + d like(xmlCint) + d val value like(xmlCdouble) + + d xmlXPathCastStringToBoolean... + d pr extproc( + d 'xmlXPathCastStringToBoolean') + d like(xmlCint) + d val * value options(*string) const xmlChar * + + d xmlXPathCastNodeSetToBoolean... + d pr extproc( + d 'xmlXPathCastNodeSetToBoolean') + d like(xmlCint) + d ns value like(xmlNodeSetPtr) + + d xmlXPathCastToBoolean... + d pr extproc('xmlXPathCastToBoolean') + d like(xmlCint) + d val value like(xmlXPathObjectPtr) + + d xmlXPathCastBooleanToNumber... + d pr extproc( + d 'xmlXPathCastBooleanToNumber') + d like(xmlCdouble) + d val value like(xmlCint) + + d xmlXPathCastStringToNumber... + d pr extproc('xmlXPathCastStringToNumber') + d like(xmlCdouble) + d val * value options(*string) const xmlChar * + + d xmlXPathCastNodeToNumber... + d pr extproc('xmlXPathCastNodeToNumber') + d like(xmlCdouble) + d node value like(xmlNodePtr) + + d xmlXPathCastNodeSetToNumber... + d pr extproc( + d 'xmlXPathCastNodeSetToNumber') + d like(xmlCdouble) + d ns value like(xmlNodeSetPtr) + + d xmlXPathCastToNumber... + d pr extproc('xmlXPathCastToNumber') + d like(xmlCdouble) + d val value like(xmlXPathObjectPtr) + + d xmlXPathCastBooleanToString... + d pr * extproc( xmlChar * + d 'xmlXPathCastBooleanToString') + d val value like(xmlCint) + + d xmlXPathCastNumberToString... + d pr * extproc('xmlXPathCastNumberToString')xmlChar * + d val value like(xmlCdouble) + + d xmlXPathCastNodeToString... + d pr * extproc('xmlXPathCastNodeToString') xmlChar * + d node value like(xmlNodePtr) + + d xmlXPathCastNodeSetToString... + d pr * extproc('xmlXPathCastNodeSetToString'xmlChar * + d ) + d ns value like(xmlNodeSetPtr) + + d xmlXPathCastToString... + d pr * extproc('xmlXPathCastToString') xmlChar * + d val value like(xmlXPathObjectPtr) + + d xmlXPathConvertBoolean... + d pr extproc('xmlXPathConvertBoolean') + d like(xmlXPathObjectPtr) + d val value like(xmlXPathObjectPtr) + + d xmlXPathConvertNumber... + d pr extproc('xmlXPathConvertNumber') + d like(xmlXPathObjectPtr) + d val value like(xmlXPathObjectPtr) + + d xmlXPathConvertString... + d pr extproc('xmlXPathConvertString') + d like(xmlXPathObjectPtr) + d val value like(xmlXPathObjectPtr) + + * Context handling. + + d xmlXPathNewContext... + d pr extproc('xmlXPathNewContext') + d like(xmlXPathContextPtr) + d doc value like(xmlDocPtr) + + d xmlXPathFreeContext... + d pr extproc('xmlXPathFreeContext') + d ctxt value like(xmlXPathContextPtr) + + d xmlXPathContextSetCache... + d pr extproc('xmlXPathContextSetCache') + d like(xmlCint) + d ctxt value like(xmlXPathContextPtr) + d active value like(xmlCint) + d value value like(xmlCint) + d options value like(xmlCint) + + * Evaluation functions. + + d xmlXPathOrderDocElems... + d pr extproc('xmlXPathOrderDocElems') + d like(xmlClong) + d doc value like(xmlDocPtr) + + d xmlXPathSetContextNode... + d pr extproc('xmlXPathSetContextNode') + d like(xmlCint) + d node value like(xmlNodePtr) + d ctx value like(xmlXPathContextPtr) + + d xmlXPathNodeEval... + d pr extproc('xmlXPathNodeEval') + d like(xmlXPathObjectPtr) + d node value like(xmlNodePtr) + d str * value options(*string) const xmlChar * + d ctx value like(xmlXPathContextPtr) + + d xmlXPathEval pr extproc('xmlXPathEval') + d like(xmlXPathObjectPtr) + d str * value options(*string) const xmlChar * + d ctx value like(xmlXPathContextPtr) + + d xmlXPathEvalExpression... + d pr extproc('xmlXPathEvalExpression') + d like(xmlXPathObjectPtr) + d str * value options(*string) const xmlChar * + d ctxt value like(xmlXPathContextPtr) + + d xmlXPathEvalPredicate... + d pr extproc('xmlXPathEvalPredicate') + d like(xmlCint) + d ctxt value like(xmlXPathContextPtr) + d res value like(xmlXPathObjectPtr) + + * Separate compilation/evaluation entry points. + + d xmlXPathCompile... + d pr extproc('xmlXPathCompile') + d like(xmlXPathCompExprPtr) + d str * value options(*string) const xmlChar * + + d xmlXPathCtxtCompile... + d pr extproc('xmlXPathCtxtCompile') + d like(xmlXPathCompExprPtr) + d ctxt value like(xmlXPathContextPtr) + d str * value options(*string) const xmlChar * + + d xmlXPathCompiledEval... + d pr extproc('xmlXPathCompiledEval') + d like(xmlXPathObjectPtr) + d comp value like(xmlXPathCompExprPtr) + d ctx value like(xmlXPathContextPtr) + + d xmlXPathCompiledEvalToBoolean... + d pr extproc( + d 'xmlXPathCompiledEvalToBoolean') + d like(xmlCint) + d comp value like(xmlXPathCompExprPtr) + d ctxt value like(xmlXPathContextPtr) + + d xmlXPathFreeCompExpr... + d pr extproc('xmlXPathFreeCompExpr') + d comp value like(xmlXPathCompExprPtr) + /endif LIBXML_XPATH_ENABLED + + /undefine XML_TESTVAL + /if defined(LIBXML_XPATH_ENABLED) + /define XML_TESTVAL + /elseif defined(LIBXML_SCHEMAS_ENABLED) + /define XML_TESTVAL + /endif + /if defined(XML_TESTVAL) + d xmlXPathInit pr extproc('xmlXPathInit') + + d xmlXPathIsNaN pr extproc('xmlXPathIsNaN') + d like(xmlCint) + d val value like(xmlCdouble) + + d xmlXPathIsInf pr extproc('xmlXPathIsInf') + d like(xmlCint) + d val value like(xmlCdouble) + + /undefine XML_TESTVAL + /endif + + * C macros implemented as procedures for ILE/RPG support. + + /if defined(LIBXML_XPATH_ENABLED) + d xmlXPathNodeSetGetLength... + d pr extproc('__xmlXPathNodeSetGetLength') + d like(xmlCint) + d ns value like(xmlNodeSetPtr) + + d xmlXPathNodeSetItem... + d pr extproc('__xmlXPathNodeSetItem') + d like(xmlNodePtr) + d ns value like(xmlNodeSetPtr) + d index value like(xmlCint) + + d xmlXPathNodeSetIsEmpty... + d pr extproc('__xmlXPathNodeSetIsEmpty') + d like(xmlCint) + d ns value like(xmlNodeSetPtr) + /endif LIBXML_XPATH_ENABLED + /endif XML_XPATH_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xpathInternals.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xpathInternals.rpgle new file mode 100644 index 0000000..a6d12e1 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xpathInternals.rpgle @@ -0,0 +1,693 @@ + * Summary: internal interfaces for XML Path Language implementation + * Description: internal interfaces for XML Path Language implementation + * used to build new modules on top of XPath like XPointer and + * XSLT + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_XPATH_INTERNALS_H__) + /define XML_XPATH_INTERNALS_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_XPATH_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/xpath" + + ************************************************************************ + * * + * Helpers * + * * + ************************************************************************ + + * Many of these macros may later turn into functions. They + * shouldn't be used in #ifdef's preprocessor instructions. + + d xmlXPathPopBoolean... + d pr extproc('xmlXPathPopBoolean') + d like(xmlCint) + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathPopNumber... + d pr extproc('xmlXPathPopNumber') + d like(xmlCdouble) + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathPopString... + d pr * extproc('xmlXPathPopString') xmlChar * + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathPopNodeSet... + d pr extproc('xmlXPathPopNodeSet') + d like(xmlNodeSetPtr) + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathPopExternal... + d pr * extproc('xmlXPathPopExternal') void * + d ctxt value like(xmlXPathParserContextPtr) + + * Variable Lookup forwarding. + + d xmlXPathRegisterVariableLookup... + d pr extproc( + d 'xmlXPathRegisterVariableLookup') + d ctxt value like(xmlXPathContextPtr) + d f value + d like(xmlXPathVariableLookupFunc) + d data * value void * + + * Function Lookup forwarding. + + d xmlXPathRegisterFuncLookup... + d pr extproc('xmlXPathRegisterFuncLookup') + d ctxt value like(xmlXPathContextPtr) + d f value like(xmlXPathFuncLookupFunc) + d funcCtxt * value void * + + * Error reporting. + * Note this procedure is renamed in RPG to avoid character case clash with + * data type xmlXPathError. + + d xmlXPathReportError... + d pr extproc('xmlXPatherror') + d ctxt value like(xmlXPathParserContextPtr) + d file * value options(*string) const char * + d line value like(xmlCint) + d no value like(xmlCint) + + d xmlXPathErr pr extproc('xmlXPathErr') + d ctxt value like(xmlXPathParserContextPtr) + d error value like(xmlCint) + + /if defined(LIBXML_DEBUG_ENABLED) + d xmlXPathDebugDumpObject... + d pr extproc('xmlXPathDebugDumpObject') + d output * value FILE * + d cur value like(xmlXPathObjectPtr) + d depth value like(xmlCint) + + d xmlXPathDebugDumpCompExpr... + d pr extproc('xmlXPathDebugDumpCompExpr') + d output * value FILE * + d comp value like(xmlXPathCompExprPtr) + d depth value like(xmlCint) + /endif + + * NodeSet handling. + + d xmlXPathNodeSetContains... + d pr extproc('xmlXPathNodeSetContains') + d like(xmlCint) + d cur value like(xmlNodeSetPtr) + d val value like(xmlNodePtr) + + d xmlXPathDifference... + d pr extproc('xmlXPathDifference') + d like(xmlNodeSetPtr) + d nodes1 value like(xmlNodeSetPtr) + d nodes2 value like(xmlNodeSetPtr) + + d xmlXPathIntersection... + d pr extproc('xmlXPathIntersection') + d like(xmlNodeSetPtr) + d nodes1 value like(xmlNodeSetPtr) + d nodes2 value like(xmlNodeSetPtr) + + d xmlXPathDistinctSorted... + d pr extproc('xmlXPathDistinctSorted') + d like(xmlNodeSetPtr) + d nodes value like(xmlNodeSetPtr) + + d xmlXPathDistinct... + d pr extproc('xmlXPathDistinct') + d like(xmlNodeSetPtr) + d nodes value like(xmlNodeSetPtr) + + d xmlXPathHasSameNodes... + d pr extproc('xmlXPathHasSameNodes') + d like(xmlCint) + d nodes1 value like(xmlNodeSetPtr) + d nodes2 value like(xmlNodeSetPtr) + + d xmlXPathNodeLeadingSorted... + d pr extproc('xmlXPathNodeLeadingSorted') + d like(xmlNodeSetPtr) + d nodes value like(xmlNodeSetPtr) + d node value like(xmlNodePtr) + + d xmlXPathLeadingSorted... + d pr extproc('xmlXPathLeadingSorted') + d like(xmlNodeSetPtr) + d nodes1 value like(xmlNodeSetPtr) + d nodes2 value like(xmlNodeSetPtr) + + d xmlXPathNodeLeading... + d pr extproc('xmlXPathNodeLeading') + d like(xmlNodeSetPtr) + d nodes value like(xmlNodeSetPtr) + d node value like(xmlNodePtr) + + d xmlXPathLeading... + d pr extproc('xmlXPathLeading') + d like(xmlNodeSetPtr) + d nodes1 value like(xmlNodeSetPtr) + d nodes2 value like(xmlNodeSetPtr) + + d xmlXPathNodeTrailingSorted... + d pr extproc('xmlXPathNodeTrailingSorted') + d like(xmlNodeSetPtr) + d nodes value like(xmlNodeSetPtr) + d node value like(xmlNodePtr) + + d xmlXPathTrailingSorted... + d pr extproc('xmlXPathTrailingSorted') + d like(xmlNodeSetPtr) + d nodes1 value like(xmlNodeSetPtr) + d nodes2 value like(xmlNodeSetPtr) + + d xmlXPathNodeTrailing... + d pr extproc('xmlXPathNodeTrailing') + d like(xmlNodeSetPtr) + d nodes value like(xmlNodeSetPtr) + d node value like(xmlNodePtr) + + d xmlXPathTrailing... + d pr extproc('xmlXPathTrailing') + d like(xmlNodeSetPtr) + d nodes1 value like(xmlNodeSetPtr) + d nodes2 value like(xmlNodeSetPtr) + + * Extending a context. + + d xmlXPathRegisterNs... + d pr extproc('xmlXPathRegisterNs') + d like(xmlCint) + d ctxt value like(xmlXPathContextPtr) + d prefix * value options(*string) const xmlChar * + d ns_uri * value options(*string) const xmlChar * + + d xmlXPathNsLookup... + d pr * extproc('xmlXPathNsLookup') const xmlChar * + d ctxt value like(xmlXPathContextPtr) + d prefix * value options(*string) const xmlChar * + + d xmlXPathRegisteredNsCleanup... + d pr extproc( + d 'xmlXPathRegisteredNsCleanup') + d ctxt value like(xmlXPathContextPtr) + + d xmlXPathRegisterFunc... + d pr extproc('xmlXPathRegisterFunc') + d like(xmlCint) + d ctxt value like(xmlXPathContextPtr) + d name * value options(*string) const xmlChar * + d f value like(xmlXPathFunction) + + d xmlXPathRegisterFuncNS... + d pr extproc('xmlXPathRegisterFuncNS') + d like(xmlCint) + d ctxt value like(xmlXPathContextPtr) + d name * value options(*string) const xmlChar * + d ns_uri * value options(*string) const xmlChar * + d f value like(xmlXPathFunction) + + d xmlXPathRegisterVariable... + d pr extproc('xmlXPathRegisterVariable') + d like(xmlCint) + d ctxt value like(xmlXPathContextPtr) + d name * value options(*string) const xmlChar * + d value value like(xmlXPathObjectPtr) + + d xmlXPathRegisterVariableNS... + d pr extproc('xmlXPathRegisterVariableNS') + d like(xmlCint) + d ctxt value like(xmlXPathContextPtr) + d name * value options(*string) const xmlChar * + d ns_uri * value options(*string) const xmlChar * + d value value like(xmlXPathObjectPtr) + + d xmlXPathFunctionLookup... + d pr extproc('xmlXPathFunctionLookup') + d like(xmlXPathFunction) + d ctxt value like(xmlXPathContextPtr) + d name * value options(*string) const xmlChar * + + d xmlXPathFunctionLookupNS... + d pr extproc('xmlXPathFunctionLookupNS') + d like(xmlXPathFunction) + d ctxt value like(xmlXPathContextPtr) + d name * value options(*string) const xmlChar * + d ns_uri * value options(*string) const xmlChar * + + d xmlXPathRegisteredFuncsCleanup... + d pr extproc( + d 'xmlXPathRegisteredFuncsCleanup') + d ctxt value like(xmlXPathContextPtr) + + d xmlXPathVariableLookup... + d pr extproc('xmlXPathVariableLookup') + d like(xmlXPathObjectPtr) + d ctxt value like(xmlXPathContextPtr) + d name * value options(*string) const xmlChar * + + d xmlXPathVariableLookupNS... + d pr extproc('xmlXPathVariableLookupNS') + d like(xmlXPathObjectPtr) + d ctxt value like(xmlXPathContextPtr) + d name * value options(*string) const xmlChar * + d ns_uri * value options(*string) const xmlChar * + + d xmlXPathRegisteredVariablesCleanup... + d pr extproc( + d 'xmlXPathRegisteredVariablesCleanup') + d ctxt value like(xmlXPathContextPtr) + + * Utilities to extend XPath. + + d xmlXPathNewParserContext... + d pr extproc('xmlXPathNewParserContext') + d like(xmlXPathParserContextPtr) + d str * value options(*string) const xmlChar * + d ctxt value like(xmlXPathContextPtr) + + d xmlXPathFreeParserContext... + d pr extproc('xmlXPathFreeParserContext') + d ctxt value like(xmlXPathParserContextPtr) + + + * TODO: remap to xmlXPathValuePop and Push. + + d valuePop pr extproc('valuePop') + d like(xmlXPathObjectPtr) + d ctxt value like(xmlXPathParserContextPtr) + + d valuePush pr extproc('valuePush') + d like(xmlCint) + d ctxt value like(xmlXPathParserContextPtr) + d value value like(xmlXPathObjectPtr) + + d xmlXPathNewString... + d pr extproc('xmlXPathNewString') + d like(xmlXPathObjectPtr) + d val * value options(*string) const xmlChar * + + d xmlXPathNewCString... + d pr extproc('xmlXPathNewCString') + d like(xmlXPathObjectPtr) + d val * value options(*string) const char * + + d xmlXPathWrapString... + d pr extproc('xmlXPathWrapString') + d like(xmlXPathObjectPtr) + d val * value options(*string) xmlChar * + + d xmlXPathWrapCString... + d pr extproc('xmlXPathWrapCString') + d like(xmlXPathObjectPtr) + d val * value options(*string) char * + + d xmlXPathNewFloat... + d pr extproc('xmlXPathNewFloat') + d like(xmlXPathObjectPtr) + d val value like(xmlCdouble) + + d xmlXPathNewBoolean... + d pr extproc('xmlXPathNewBoolean') + d like(xmlXPathObjectPtr) + d val value like(xmlCint) + + d xmlXPathNewNodeSet... + d pr extproc('xmlXPathNewNodeSet') + d like(xmlXPathObjectPtr) + d val value like(xmlNodePtr) + + d xmlXPathNewValueTree... + d pr extproc('xmlXPathNewValueTree') + d like(xmlXPathObjectPtr) + d val value like(xmlNodePtr) + + d xmlXPathNodeSetAdd... + d pr extproc('xmlXPathNodeSetAdd') + d like(xmlCint) + d cur value like(xmlNodeSetPtr) + d val value like(xmlNodePtr) + + d xmlXPathNodeSetAddUnique... + d pr extproc('xmlXPathNodeSetAddUnique') + d like(xmlCint) + d cur value like(xmlNodeSetPtr) + d val value like(xmlNodePtr) + + d xmlXPathNodeSetAddNs... + d pr extproc('xmlXPathNodeSetAddNs') + d like(xmlCint) + d cur value like(xmlNodeSetPtr) + d node value like(xmlNodePtr) + d ns value like(xmlNsPtr) + + d xmlXPathNodeSetSort... + d pr extproc('xmlXPathNodeSetSort') + d set value like(xmlNodeSetPtr) + + d xmlXPathRoot pr extproc('xmlXPathRoot') + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathEvalExpr... + d pr extproc('xmlXPathEvalExpr') + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathParseName... + d pr * extproc('xmlXPathParseName') xmlChar * + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathParseNCName... + d pr * extproc('xmlXPathParseNCName') xmlChar * + d ctxt value like(xmlXPathParserContextPtr) + + * Existing functions. + + d xmlXPathStringEvalNumber... + d pr extproc('xmlXPathStringEvalNumber') + d like(xmlCdouble) + d str * value options(*string) const xmlChar * + + d xmlXPathEvaluatePredicateResult... + d pr extproc( + d 'xmlXPathEvaluatePredicateResult') + d like(xmlCint) + d ctxt value like(xmlXPathParserContextPtr) + d res value like(xmlXPathObjectPtr) + + d xmlXPathRegisterAllFunctions... + d pr extproc( + d 'xmlXPathRegisterAllFunctions') + d ctxt value like(xmlXPathContextPtr) + + d xmlXPathNodeSetMerge... + d pr extproc('xmlXPathNodeSetMerge') + d like(xmlNodeSetPtr) + d val1 value like(xmlNodeSetPtr) + d val2 value like(xmlNodeSetPtr) + + d xmlXPathNodeSetDel... + d pr extproc('xmlXPathNodeSetDel') + d cur value like(xmlNodeSetPtr) + d val value like(xmlNodePtr) + + d xmlXPathNodeSetRemove... + d pr extproc('xmlXPathNodeSetRemove') + d cur value like(xmlNodeSetPtr) + d val value like(xmlCint) + + d xmlXPathNewNodeSetList... + d pr extproc('xmlXPathNewNodeSetList') + d like(xmlXPathObjectPtr) + d val value like(xmlNodeSetPtr) + + d xmlXPathWrapNodeSet... + d pr extproc('xmlXPathWrapNodeSet') + d like(xmlXPathObjectPtr) + d val value like(xmlNodeSetPtr) + + d xmlXPathWrapExternal... + d pr extproc('xmlXPathWrapExternal') + d like(xmlXPathObjectPtr) + d val * value void * + + d xmlXPathEqualValues... + d pr extproc('xmlXPathEqualValues') + d like(xmlCint) + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathNotEqualValues... + d pr extproc('xmlXPathNotEqualValues') + d like(xmlCint) + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathCompareValues... + d pr extproc('xmlXPathCompareValues') + d like(xmlCint) + d ctxt value like(xmlXPathParserContextPtr) + d inf value like(xmlCint) + d strict value like(xmlCint) + + d xmlXPathValueFlipSign... + d pr extproc('xmlXPathValueFlipSign') + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathAddValues... + d pr extproc('xmlXPathAddValues') + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathSubValues... + d pr extproc('xmlXPathSubValues') + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathMultValues... + d pr extproc('xmlXPathMultValues') + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathDivValues... + d pr extproc('xmlXPathDivValues') + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathModValues... + d pr extproc('xmlXPathModValues') + d ctxt value like(xmlXPathParserContextPtr) + + d xmlXPathIsNodeType... + d pr extproc('xmlXPathIsNodeType') + d like(xmlCint) + d name * value options(*string) const xmlChar * + + * Some of the axis navigation routines. + + d xmlXPathNextSelf... + d pr extproc('xmlXPathNextSelf') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextChild... + d pr extproc('xmlXPathNextChild') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextDescendant... + d pr extproc('xmlXPathNextDescendant') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextDescendantOrSelf... + d pr extproc( + d 'xmlXPathNextDescendantOrSelf') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextParent... + d pr extproc('xmlXPathNextParent') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextAncestorOrSelf... + d pr extproc('xmlXPathNextAncestorOrSelf') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextFollowingSibling... + d pr extproc( + d 'xmlXPathNextFollowingSibling') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextFollowing... + d pr extproc('xmlXPathNextFollowing') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextNamespace... + d pr extproc('xmlXPathNextNamespace') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextAttribute... + d pr extproc('xmlXPathNextAttribute') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextPreceding... + d pr extproc('xmlXPathNextPreceding') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextAncestor... + d pr extproc('xmlXPathNextAncestor') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + d xmlXPathNextPrecedingSibling... + d pr extproc( + d 'xmlXPathNextPrecedingSibling') + d like(xmlNodePtr) + d ctxt value like(xmlXPathParserContextPtr) + d cur value like(xmlNodePtr) + + * The official core of XPath functions. + + d xmlXPathLastFunction... + d pr extproc('xmlXPathLastFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathPositionFunction... + d pr extproc('xmlXPathPositionFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathCountFunction... + d pr extproc('xmlXPathCountFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathIdFunction... + d pr extproc('xmlXPathIdFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathLocalNameFunction... + d pr extproc('xmlXPathLocalNameFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathNamespaceURIFunction... + d pr extproc( + d 'xmlXPathNamespaceURIFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathStringFunction... + d pr extproc('xmlXPathStringFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathStringLengthFunction... + d pr extproc( + d 'xmlXPathStringLengthFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathConcatFunction... + d pr extproc('xmlXPathConcatFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathContainsFunction... + d pr extproc('xmlXPathContainsFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathStartsWithFunction... + d pr extproc('xmlXPathStartsWithFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathSubstringFunction... + d pr extproc('xmlXPathSubstringFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathSubstringBeforeFunction... + d pr extproc( + d 'xmlXPathSubstringBeforeFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathSubstringAfterFunction... + d pr extproc( + d 'xmlXPathSubstringAfterFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + + d xmlXPathNormalizeFunction... + d pr extproc('xmlXPathNormalizeFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathTranslateFunction... + d pr extproc('xmlXPathTranslateFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathNotFunction... + d pr extproc('xmlXPathNotFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathTrueFunction... + d pr extproc('xmlXPathTrueFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathFalseFunction... + d pr extproc('xmlXPathFalseFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathLangFunction... + d pr extproc('xmlXPathLangFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathNumberFunction... + d pr extproc('xmlXPathNumberFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathSumFunction... + d pr extproc('xmlXPathSumFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathFloorFunction... + d pr extproc('xmlXPathFloorFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathCeilingFunction... + d pr extproc('xmlXPathCeilingFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathRoundFunction... + d pr extproc('xmlXPathRoundFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPathBooleanFunction... + d pr extproc('xmlXPathBooleanFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + * Really internal functions + + d xmlXPathNodeSetFreeNs... + d pr extproc('xmlXPathNodeSetFreeNs') + d ns value like(xmlNsPtr) + + /endif LIBXML_XPATH_ENABLED + /endif XPATH_INTERNALS_H__ diff --git a/libxml2-2.9.10/os400/libxmlrpg/xpointer.rpgle b/libxml2-2.9.10/os400/libxmlrpg/xpointer.rpgle new file mode 100644 index 0000000..29ef0f3 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/xpointer.rpgle @@ -0,0 +1,158 @@ + * Summary: API to handle XML Pointers + * Description: API to handle XML Pointers + * Base implementation was made accordingly to + * W3C Candidate Recommendation 7 June 2000 + * http://www.w3.org/TR/2000/CR-xptr-20000607 + * + * Added support for the element() scheme described in: + * W3C Proposed Recommendation 13 November 2002 + * http://www.w3.org/TR/2002/PR-xptr-element-20021113/ + * + * Copy: See Copyright for the status of this software. + * + * Author: Patrick Monnerat , DATASPHERE S.A. + + /if not defined(XML_XPTR_H__) + /define XML_XPTR_H__ + + /include "libxmlrpg/xmlversion" + + /if defined(LIBXML_XPTR_ENABLED) + + /include "libxmlrpg/xmlTypesC" + /include "libxmlrpg/tree" + /include "libxmlrpg/xpath" + + * A Location Set + + d xmlLocationSetPtr... + d s * based(######typedef######) + + d xmlLocationSet ds based(xmlLocationSetPtr) + d align qualified + d locNr like(xmlCint) # locations in set + d locMax like(xmlCint) Max locations in set + d locTab * xmlXPathObjectPtr * + + * Handling of location sets. + + d xmlXPtrLocationSetCreate... + d pr extproc('xmlXPtrLocationSetCreate') + d like(xmlLocationSetPtr) + d val value like(xmlXPathObjectPtr) + + d xmlXPtrFreeLocationSet... + d pr extproc('xmlXPtrFreeLocationSet') + d obj value like(xmlLocationSetPtr) + + d xmlXPtrLocationSetMerge... + d pr extproc('xmlXPtrLocationSetMerge') + d like(xmlLocationSetPtr) + d val1 value like(xmlLocationSetPtr) + d val2 value like(xmlLocationSetPtr) + + d xmlXPtrNewRange... + d pr extproc('xmlXPtrNewRange') + d like(xmlXPathObjectPtr) + d start value like(xmlNodePtr) + d startindex value like(xmlCint) + d end value like(xmlNodePtr) + d endindex value like(xmlCint) + + d xmlXPtrNewRangePoints... + d pr extproc('xmlXPtrNewRangePoints') + d like(xmlXPathObjectPtr) + d start value like(xmlXPathObjectPtr) + d end value like(xmlXPathObjectPtr) + + d xmlXPtrNewRangeNodePoint... + d pr extproc('xmlXPtrNewRangeNodePoint') + d like(xmlXPathObjectPtr) + d start value like(xmlNodePtr) + d end value like(xmlXPathObjectPtr) + + d xmlXPtrNewRangePointNode... + d pr extproc('xmlXPtrNewRangePointNode') + d like(xmlXPathObjectPtr) + d start value like(xmlXPathObjectPtr) + d end value like(xmlNodePtr) + + d xmlXPtrNewRangeNodes... + d pr extproc('xmlXPtrNewRangeNodes') + d like(xmlXPathObjectPtr) + d start value like(xmlNodePtr) + d end value like(xmlNodePtr) + + d xmlXPtrNewLocationSetNodes... + d pr extproc('xmlXPtrNewLocationSetNodes') + d like(xmlXPathObjectPtr) + d start value like(xmlNodePtr) + d end value like(xmlNodePtr) + + d xmlXPtrNewLocationSetNodeSet... + d pr extproc( + d 'xmlXPtrNewLocationSetNodeSet') + d like(xmlXPathObjectPtr) + d set value like(xmlNodeSetPtr) + + d xmlXPtrNewRangeNodeObject... + d pr extproc('xmlXPtrNewRangeNodeObject') + d like(xmlXPathObjectPtr) + d start value like(xmlNodePtr) + d end value like(xmlXPathObjectPtr) + + d xmlXPtrNewCollapsedRange... + d pr extproc('xmlXPtrNewCollapsedRange') + d like(xmlXPathObjectPtr) + d start value like(xmlNodePtr) + + d xmlXPtrLocationSetAdd... + d pr extproc('xmlXPtrLocationSetAdd') + d cur value like(xmlLocationSetPtr) + d val value like(xmlXPathObjectPtr) + + d xmlXPtrWrapLocationSet... + d pr extproc('xmlXPtrWrapLocationSet') + d like(xmlXPathObjectPtr) + d val value like(xmlLocationSetPtr) + + d xmlXPtrLocationSetDel... + d pr extproc('xmlXPtrLocationSetDel') + d cur value like(xmlLocationSetPtr) + d val value like(xmlXPathObjectPtr) + + d xmlXPtrLocationSetRemove... + d pr extproc('xmlXPtrLocationSetRemove') + d cur value like(xmlLocationSetPtr) + d val value like(xmlCint) + + * Functions. + + d xmlXPtrNewContext... + d pr extproc('xmlXPtrNewContext') + d like(xmlXPathContextPtr) + d doc value like(xmlDocPtr) + d here value like(xmlNodePtr) + d origin value like(xmlNodePtr) + + d xmlXPtrEval pr extproc('xmlXPtrEval') + d like(xmlXPathObjectPtr) + d str * value options(*string) const xmlChar * + d ctx value like(xmlXPathContextPtr) + + d xmlXPtrRangeToFunction... + d pr extproc('xmlXPtrRangeToFunction') + d ctxt value like(xmlXPathParserContextPtr) + d nargs value like(xmlCint) + + d xmlXPtrBuildNodeList... + d pr extproc('xmlXPtrBuildNodeList') + d like(xmlNodePtr) + d obj value like(xmlXPathObjectPtr) + + d xmlXPtrEvalRangePredicate... + d pr extproc('xmlXPtrEvalRangePredicate') + d ctxt value like(xmlXPathParserContextPtr) + + /endif LIBXML_XPTR_ENABLED + /endif XML_XPTR_H__ -- cgit v1.2.3