* search.c (scan_buffer): Calculate end byte position just once.
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 8 Feb 2013 14:44:53 +0000 (18:44 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 8 Feb 2013 14:44:53 +0000 (18:44 +0400)
commit8ca30920525154d5eef67899b04dde77f4176169
tree21370d2a80e1698b9fcd835527ee3dda5f8324fa
parent6130b96ae7ed9632e7623fb86eac695edc401098
* search.c (scan_buffer): Calculate end byte position just once.
(scan_newline): Do not recalculate start_byte.
(search_command): Use eassert.
* syntax.c (struct lisp_parse_state): New member location_byte.
(scan_sexps_forward): Record from_byte and avoid redundant
character to byte position calculation ...
(Fparse_partial_sexp): ... here.  Break too long line.
src/ChangeLog
src/search.c
src/syntax.c