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/xmlautomata.rpgle | 183 +++++++++++++++++++++++ 1 file changed, 183 insertions(+) create mode 100644 libxml2-2.9.10/os400/libxmlrpg/xmlautomata.rpgle (limited to 'libxml2-2.9.10/os400/libxmlrpg/xmlautomata.rpgle') 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__ -- cgit v1.2.3