diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-03-29 22:34:02 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-03-29 22:43:51 -0700 |
commit | 080a425db51e0b26b03f0f4bd06c814fc2b38578 (patch) | |
tree | efd3c6c3b46251dd3fe97332f55e6e03daf8c317 /test/lisp/emacs-lisp/rx-tests.el | |
parent | b7ec73f6905df99978f7183ac8e83a3be56edc6c (diff) | |
download | emacs-080a425db51e0b26b03f0f4bd06c814fc2b38578.tar.gz emacs-080a425db51e0b26b03f0f4bd06c814fc2b38578.tar.bz2 emacs-080a425db51e0b26b03f0f4bd06c814fc2b38578.zip |
Fix assoc_no_quit so that it does not quit
The problem was that it called Fequal, which can quit.
* src/fns.c (enum equal_kind):
New enum, to be used in place of a boolean.
(equal_no_quit): New function.
(Fmemql, Feql): Use it to compare floats, as a minor tuneup.
(assoc_no_quit): Use it to avoid quitting, the main point here.
(internal_equal): Generalize bool to enum equal_kind arg, so that
there are now 3 possibilities instead of 2. Do not signal an
error if EQUAL_NO_QUIT. Put the arg before the depth, since depth
should be irrelevant if the arg is EQUAL_NO_QUIT. All callers
changed.
Diffstat (limited to 'test/lisp/emacs-lisp/rx-tests.el')
0 files changed, 0 insertions, 0 deletions