]> git.eshelyaron.com Git - emacs.git/commit
regex.c: Various cosmetic changes
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 29 Sep 2023 20:41:37 +0000 (16:41 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 29 Sep 2023 20:45:41 +0000 (16:45 -0400)
commit6e44d6e18438ea2665ae6252a6ec090963dd7e42
tree68b8fbb01631a1839bbfcd4c468defb4e664a346
parent35fbf6f15830f576fd1909f4a8d30e7ba1d777bd
regex.c: Various cosmetic changes

* src/regex-emacs.c (extract_address): New function.
(skip_noops, mutually_exclusive_aux, re_match_2_internal): Use it.
(regex_compile): Fix oversight in last commit.
(analyze_first): Return a bool rather than an int.
(re_compile_fastmap): Simplify accordingly.
(re_match_2_internal): Share the common code between the fail and
success exit paths.
src/regex-emacs.c