(enum re_opcode_t): New opcode on_failure_jump_nastyloop.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 26 Mar 2000 23:05:51 +0000 (23:05 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 26 Mar 2000 23:05:51 +0000 (23:05 +0000)
commit0683b6fa90db2a43ca13bb2774255e22d40c4758
tree1dff5bc1e63e301b759ad20fd454bed4b7e2a0f9
parent3831af621accfbda7ea055db82046759a572987a
(enum re_opcode_t): New opcode on_failure_jump_nastyloop.
(print_partial_compiled_pattern, re_compile_fastmap): Handle new opcode.
(regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
(re_match_2_internal): Add code for on_failure_jump_nastyloop when
executing it as well as when popping it off the stack to find infinite
loops in non-greedy repetition operators.
src/regex.c