(looking_at_1): Use bytepos to call re_search_2.
authorRichard M. Stallman <rms@gnu.org>
Thu, 1 Jan 1998 02:52:20 +0000 (02:52 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 1 Jan 1998 02:52:20 +0000 (02:52 +0000)
commitfa8ed3e084fa8cda88229219e49622e0f897c2ac
tree928368fbd4f5c1f8edf365857455184f4554323f
parent4bbd5bc3149ecf8e5d50d88a9730d07fdb32d776
(looking_at_1): Use bytepos to call re_search_2.
Convert search regs to charpos, if search succeeded.
(search_buffer): Likewise.  Also convert charpos <-> bytepos
in non-regexp case.
(scan_buffer): Convert charpos <-> bytepos.
(scan_newline): New function.
(find_next_newline): Function deleted.
(set_search_regs): Args now in bytes; convert to charpos.
(Freplace_match): Convert charpos <-> bytepos when scanning case.
src/search.c