diff options
| author | Paul Eggert | 2013-02-11 15:37:18 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-02-11 15:37:18 -0800 |
| commit | a84b7c5334e232913111b840f2283d0138a6f5fb (patch) | |
| tree | 8ee4e55f7059d1eb918fb5966cd81ee3f84153bc /src/ChangeLog | |
| parent | 71d4202f204ea5fad93eb34406f0ef671630f271 (diff) | |
| download | emacs-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/ChangeLog | 9 |
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 @@ | |||
| 1 | 2013-02-11 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2013-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. |