* xmlAutomataSetFinalState: * @am: an automata * @state: a state in this automata * * Makes that state a final state * * Returns 0 or -1 in case of error */
| 5639 | * Returns 0 or -1 in case of error |
| 5640 | */ |
| 5641 | int |
| 5642 | xmlAutomataSetFinalState(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: |
no outgoing calls