diff options
author | Eli Zaretskii <[email protected]> | 2011-11-18 14:21:42 +0200 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2011-11-18 14:21:42 +0200 |
commit | 015137db608f0678112ae9a69a1a52889d56161d (patch) | |
tree | 08d432ad5df33dd7158a331d9dcebcebf0a11b88 /src/dispextern.h | |
parent | a2addb04643c0631c1c3a79116b5e54f9f302afc (diff) |
Fix another crash due to incorrect hash value of glyph rows, bug #10035.
src/dispnew.c (swap_glyph_pointers): Swap the used[] arrays and the
hash values of the two rows.
(copy_row_except_pointers): Preserve the used[] arrays and the
hash values of the two rows.
src/xdisp.c (row_hash): New function, body extracted from
compute_line_metrics.
(compute_line_metrics): Call row_hash, instead of computing the
hash code inline.
src/dispnew.c (verify_row_hash): Call row_hash for computing the
hash code of a row, instead of duplicating code from xdisp.c.
src/dispextern.h (row_hash): Add prototype.
Diffstat (limited to 'src/dispextern.h')
-rw-r--r-- | src/dispextern.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 5c60a5499d..486aa4f7a4 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -3126,6 +3126,9 @@ void compute_fringe_widths (struct frame *, int); void w32_init_fringe (struct redisplay_interface *); void w32_reset_fringes (void); #endif + +extern unsigned row_hash (struct glyph_row *); + /* Defined in image.c */ #ifdef HAVE_WINDOW_SYSTEM |