]> git.eshelyaron.com Git - emacs.git/commit
Tweak re_registers allocation
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 28 Mar 2019 04:03:10 +0000 (21:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 28 Mar 2019 04:24:26 +0000 (21:24 -0700)
commit81795bb71394aac6d7f6f7fd2656b2eb79a39a4d
treeff9f813ebc27ba20ebd502412826d782d223b0f6
parenteac5f967ca700c5f47cf673cb4c06b07c4f42ac2
Tweak re_registers allocation

* src/regex-emacs.c (re_match_2_internal):
No need to allocate one extra trailing search register;
Emacs does not use it.  Avoid quadratic behavior on
reallocation.
src/regex-emacs.c
src/regex-emacs.h