diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2023-04-12 16:32:39 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2023-04-12 16:32:39 -0400 |
commit | 861cf3a5c9d2081d811dcfc2c5ce5357f3dc44d4 (patch) | |
tree | 9431d7ef315d5a4081cb3fc65487c3fdd35354d7 /lisp/emacs-lisp/byte-opt.el | |
parent | c2c3114961802b4c52b4cde0271e460fb08698cf (diff) | |
download | emacs-861cf3a5c9d2081d811dcfc2c5ce5357f3dc44d4.tar.gz emacs-861cf3a5c9d2081d811dcfc2c5ce5357f3dc44d4.tar.bz2 emacs-861cf3a5c9d2081d811dcfc2c5ce5357f3dc44d4.zip |
(RE_SETUP_SYNTAX_TABLE_FOR_OBJECT): Simplify
It turns out all calls to this function pass the same value
for the `count` argument, and they're all in `regexp.c`.
* src/syntax.c (RE_SETUP_SYNTAX_TABLE_FOR_OBJECT):
Rename from `SETUP_SYNTAX_TABLE_FOR_OBJECT`. Remove `count` argument.
Move call to `RE_SYNTAX_TABLE_BYTE_TO_CHAR` to where its result is
actually used.
* src/regex-emacs.c (re_search_2, re_match_2): Adjust accordingly.
* src/syntax.h (RE_SYNTAX_TABLE_BYTE_TO_CHAR): Rename from
`SYNTAX_TABLE_BYTE_TO_CHAR` to clarify that it takes a byteoffset as
used in the regexp engine and not a "bytepos". Adjust all callers.
Diffstat (limited to 'lisp/emacs-lisp/byte-opt.el')
0 files changed, 0 insertions, 0 deletions