diff options
| author | Paul Eggert | 2011-06-22 11:15:23 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-22 11:15:23 -0700 |
| commit | 85fece3ec2ac88faec0ae3da5417d6e60b10cc63 (patch) | |
| tree | a6a72b462548f9f78a28d9508299582db361d87b /src/ChangeLog | |
| parent | 94a807ac4e785c6387ddac4380a924a7859ab3f2 (diff) | |
| download | emacs-85fece3ec2ac88faec0ae3da5417d6e60b10cc63.tar.gz emacs-85fece3ec2ac88faec0ae3da5417d6e60b10cc63.zip | |
GLYPH_DEBUG fixes
The following patches are for when GLYPH_DEBUG && !XASSERT.
* dispextern.h (trace_redisplay_p, dump_glyph_string):
* dispnew.c (flush_stdout):
* xdisp.c (dump_glyph_row, dump_glyph_matrix, dump_glyph):
Mark as externally visible.
* dispnew.c (check_window_matrix_pointers): Now static.
* dispnew.c (window_to_frame_vpos):
* xfns.c (unwind_create_frame):
* xterm.c (x_check_font): Remove unused local.
* scroll.c (CHECK_BOUNDS):
* xfaces.c (cache_fache): Rename local to avoid shadowing.
* xfns.c, w32fns.c (image_cache_refcount, dpyinfo_refcount): Now static.
* xdisp.c (check_window_end): Now a no-op if !XASSERTS.
(debug_first_unchanged_at_end_vpos, debug_last_unchanged_at_beg_vpos)
(debug_dvpos, debug_dy, debug_delta, debug_delta_bytes, debug_end_vpos):
Now static.
(debug_method_add): Use va_list and vsprintf rather than relying
on undefined behavior with wrong number of arguments.
(dump_glyph, dump_glyph_row, Fdump_glyph_matrix):
Don't assume ptrdiff_t and EMACS_INT are the same width as int.
In this code, it's OK to assume C99 behavior for ptrdiff_t formats
since we're not interested in debugging glyphs with old libraries.
* xfaces.c (cache_face): Move debugging code earlier; this pacifies
GCC 4.6.0's static checking.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 051bcef6cf9..bfed2816d75 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,33 @@ | |||
| 1 | 2011-06-22 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-06-22 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | GLYPH_DEBUG fixes | ||
| 4 | The following patches are for when GLYPH_DEBUG && !XASSERT. | ||
| 5 | * dispextern.h (trace_redisplay_p, dump_glyph_string): | ||
| 6 | * dispnew.c (flush_stdout): | ||
| 7 | * xdisp.c (dump_glyph_row, dump_glyph_matrix, dump_glyph): | ||
| 8 | Mark as externally visible. | ||
| 9 | * dispnew.c (check_window_matrix_pointers): Now static. | ||
| 10 | * dispnew.c (window_to_frame_vpos): | ||
| 11 | * xfns.c (unwind_create_frame): | ||
| 12 | * xterm.c (x_check_font): Remove unused local. | ||
| 13 | * scroll.c (CHECK_BOUNDS): | ||
| 14 | * xfaces.c (cache_fache): Rename local to avoid shadowing. | ||
| 15 | * xfns.c, w32fns.c (image_cache_refcount, dpyinfo_refcount): Now static. | ||
| 16 | * xdisp.c (check_window_end): Now a no-op if !XASSERTS. | ||
| 17 | (debug_first_unchanged_at_end_vpos, debug_last_unchanged_at_beg_vpos) | ||
| 18 | (debug_dvpos, debug_dy, debug_delta, debug_delta_bytes, debug_end_vpos): | ||
| 19 | Now static. | ||
| 20 | (debug_method_add): Use va_list and vsprintf rather than relying | ||
| 21 | on undefined behavior with wrong number of arguments. | ||
| 22 | (dump_glyph, dump_glyph_row, Fdump_glyph_matrix): | ||
| 23 | Don't assume ptrdiff_t and EMACS_INT are the same width as int. | ||
| 24 | In this code, it's OK to assume C99 behavior for ptrdiff_t formats | ||
| 25 | since we're not interested in debugging glyphs with old libraries. | ||
| 26 | * xfaces.c (cache_face): Move debugging code earlier; this pacifies | ||
| 27 | GCC 4.6.0's static checking. | ||
| 28 | |||
| 29 | 2011-06-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 30 | |||
| 3 | Integer overflow and signedness fixes (Bug#8873). | 31 | Integer overflow and signedness fixes (Bug#8873). |
| 4 | A few related buffer overrun fixes, too. | 32 | A few related buffer overrun fixes, too. |
| 5 | 33 | ||