]> git.eshelyaron.com Git - emacs.git/commit
regex-emacs.c (mutually_exclusive_aux): Rework again
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 21 Sep 2023 15:47:31 +0000 (11:47 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 21 Sep 2023 15:47:31 +0000 (11:47 -0400)
commit424b35fa24f07f85c5287c682e140c1c8daa25d0
treedbf8c1b632dbb82e0ae736aa916ef622d1f58b25
parent57c6c067d35e519bc3787966cd6346904bc75e16
regex-emacs.c (mutually_exclusive_aux): Rework again

Rework the way we handle loops.  This new code does not really work
better than the previous one, but it has the advantage of being "fail
safe" and also that we can dynamically check if our assumptions about
the shape of the bytecode are satisfied or not.

* src/regex-emacs.c (mutually_exclusive_aux): Replace `done_beg` and
`done_end` with `loop_beg` and `loop_end`.
(mutually_exclusive_p): Adjust accordingly.
(analyze_first): Fix incorrect assertion.
src/regex-emacs.c