MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlAutomataSetFinalState

Function xmlAutomataSetFinalState

ThirdParty/libxml2/vtklibxml2/xmlregexp.c:5641–5647  ·  view source on GitHub ↗

* xmlAutomataSetFinalState: * @am: an automata * @state: a state in this automata * * Makes that state a final state * * Returns 0 or -1 in case of error */

Source from the content-addressed store, hash-verified

5639 * Returns 0 or -1 in case of error
5640 */
5641int
5642xmlAutomataSetFinalState(xmlAutomataPtr am, xmlAutomataStatePtr state) {
5643 if ((am == NULL) || (state == NULL))
5644 return(-1);
5645 state->type = XML_REGEXP_FINAL_STATE;
5646 return(0);
5647}
5648
5649/**
5650 * xmlAutomataNewTransition:

Callers 4

automataTestFunction · 0.85
xmlRelaxNGCompileFunction · 0.85

Calls

no outgoing calls

Tested by 1

automataTestFunction · 0.68