aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2013-02-11 15:37:18 -0800
committerPaul Eggert2013-02-11 15:37:18 -0800
commita84b7c5334e232913111b840f2283d0138a6f5fb (patch)
tree8ee4e55f7059d1eb918fb5966cd81ee3f84153bc /src/ChangeLog
parent71d4202f204ea5fad93eb34406f0ef671630f271 (diff)
downloademacs-a84b7c5334e232913111b840f2283d0138a6f5fb.tar.gz
emacs-a84b7c5334e232913111b840f2283d0138a6f5fb.zip
Tune by using memchr and memrchr.
* .bzrignore: Add string.h. * admin/merge-gnulib (GNULIB_MODULES): Add memrchr. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * lib/memrchr.c, lib/string.in.h, m4/memrchr.m4, m4/string_h.m4: New files, from gnulib. * src/doc.c (Fsnarf_documentation): * src/fileio.c (Fsubstitute_in_file_name): * src/search.c (find_newline, scan_newline): * src/xdisp.c (pos_visible_p, display_count_lines): Use memchr and memrchr rather than scanning byte-by-byte. * src/search.c (find_newline): Rename from scan_buffer. Omit first arg TARGET, as it's always '\n'. All callers changed.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b3d3958853b..30470f5730a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,14 @@
12013-02-11 Paul Eggert <eggert@cs.ucla.edu> 12013-02-11 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Tune by using memchr and memrchr.
4 * doc.c (Fsnarf_documentation):
5 * fileio.c (Fsubstitute_in_file_name):
6 * search.c (find_newline, scan_newline):
7 * xdisp.c (pos_visible_p, display_count_lines):
8 Use memchr and memrchr rather than scanning byte-by-byte.
9 * search.c (find_newline): Rename from scan_buffer.
10 Omit first arg TARGET, as it's always '\n'. All callers changed.
11
3 Clean up read_key_sequence a tiny bit more. 12 Clean up read_key_sequence a tiny bit more.
4 * keyboard.c (read_char_x_menu_prompt) [HAVE_MENUS]: 13 * keyboard.c (read_char_x_menu_prompt) [HAVE_MENUS]:
5 (read_key_sequence): Remove unused locals. 14 (read_key_sequence): Remove unused locals.