aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2010-09-24 13:48:10 -0400
committerEli Zaretskii2010-09-24 13:48:10 -0400
commitace1712c7feb83cc6b03d31b7a8b0439b83b7212 (patch)
tree8fb7f4713b4b14fc09f71d7f0c49274c4492a511 /src
parent4f3a2f8d41f3a1e2be27921e8271c5fdb78e6d98 (diff)
downloademacs-ace1712c7feb83cc6b03d31b7a8b0439b83b7212.tar.gz
emacs-ace1712c7feb83cc6b03d31b7a8b0439b83b7212.zip
Fix int/EMACS_INT use in ccl.c, cmds.c, data.c, dispnew.c.
keyboard.c (make_lispy_position): Use EMACS_INT for buffer positions. xdisp.c (redisplay_internal, try_window_id) (set_cursor_from_row, find_first_unchanged_at_end_row): Use EMACS_INT for buffer positions. dispextern.h (set_cursor_from_row, mode_line_string) (marginal_area_string): Adjust prototypes. dispnew.c (increment_matrix_positions) (increment_row_positions, copy_glyph_row_contents) (mode_line_string, marginal_area_string): Use EMACS_INT for buffer positions. dispextern.h (mode_line_string, marginal_area_string) (increment_matrix_positions, increment_row_positions): Adjust prototypes. data.c (Faref, Faset): Use EMACS_INT for string length and positions. cmds.c (internal_self_insert): Use EMACS_INT for the count of characters to insert. ccl.c (Fccl_execute_on_string): Use EMACS_INT for string position and size.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog28
-rw-r--r--src/ccl.c8
-rw-r--r--src/cmds.c6
-rw-r--r--src/data.c11
-rw-r--r--src/dispextern.h11
-rw-r--r--src/dispnew.c17
-rw-r--r--src/keyboard.c7
-rw-r--r--src/xdisp.c22
8 files changed, 76 insertions, 34 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7c13fab36b9..49267dc405f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,33 @@
12010-09-24 Eli Zaretskii <eliz@gnu.org> 12010-09-24 Eli Zaretskii <eliz@gnu.org>
2 2
3 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4 positions.
5
6 * xdisp.c (redisplay_internal, try_window_id)
7 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
8 EMACS_INT for buffer positions.
9
10 * dispextern.h (set_cursor_from_row, mode_line_string)
11 (marginal_area_string): Adjust prototypes.
12
13 * dispnew.c (increment_matrix_positions)
14 (increment_row_positions, copy_glyph_row_contents)
15 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
16 positions.
17
18 * dispextern.h (mode_line_string, marginal_area_string)
19 (increment_matrix_positions, increment_row_positions): Adjust
20 prototypes.
21
22 * data.c (Faref, Faset): Use EMACS_INT for string length and
23 positions.
24
25 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
26 characters to insert.
27
28 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
29 position and size.
30
3 * syntax.c (scan_words, update_syntax_table) 31 * syntax.c (scan_words, update_syntax_table)
4 (prev_char_comend_first, back_comment, skip_chars) 32 (prev_char_comend_first, back_comment, skip_chars)
5 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use 33 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
diff --git a/src/ccl.c b/src/ccl.c
index f418c65b01e..f98897b51fa 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -2061,10 +2061,10 @@ usage: (ccl-execute-on-string CCL-PROGRAM STATUS STRING &optional CONTINUE UNIBY
2061 int i; 2061 int i;
2062 int outbufsize; 2062 int outbufsize;
2063 unsigned char *outbuf, *outp; 2063 unsigned char *outbuf, *outp;
2064 int str_chars, str_bytes; 2064 EMACS_INT str_chars, str_bytes;
2065#define CCL_EXECUTE_BUF_SIZE 1024 2065#define CCL_EXECUTE_BUF_SIZE 1024
2066 int source[CCL_EXECUTE_BUF_SIZE], destination[CCL_EXECUTE_BUF_SIZE]; 2066 int source[CCL_EXECUTE_BUF_SIZE], destination[CCL_EXECUTE_BUF_SIZE];
2067 int consumed_chars, consumed_bytes, produced_chars; 2067 EMACS_INT consumed_chars, consumed_bytes, produced_chars;
2068 2068
2069 if (setup_ccl_program (&ccl, ccl_prog) < 0) 2069 if (setup_ccl_program (&ccl, ccl_prog) < 0)
2070 error ("Invalid CCL program"); 2070 error ("Invalid CCL program");
@@ -2128,7 +2128,7 @@ usage: (ccl-execute-on-string CCL-PROGRAM STATUS STRING &optional CONTINUE UNIBY
2128 if (outp - outbuf + MAX_MULTIBYTE_LENGTH * ccl.produced 2128 if (outp - outbuf + MAX_MULTIBYTE_LENGTH * ccl.produced
2129 > outbufsize) 2129 > outbufsize)
2130 { 2130 {
2131 int offset = outp - outbuf; 2131 EMACS_INT offset = outp - outbuf;
2132 outbufsize += MAX_MULTIBYTE_LENGTH * ccl.produced; 2132 outbufsize += MAX_MULTIBYTE_LENGTH * ccl.produced;
2133 outbuf = (unsigned char *) xrealloc (outbuf, outbufsize); 2133 outbuf = (unsigned char *) xrealloc (outbuf, outbufsize);
2134 outp = outbuf + offset; 2134 outp = outbuf + offset;
@@ -2140,7 +2140,7 @@ usage: (ccl-execute-on-string CCL-PROGRAM STATUS STRING &optional CONTINUE UNIBY
2140 { 2140 {
2141 if (outp - outbuf + ccl.produced > outbufsize) 2141 if (outp - outbuf + ccl.produced > outbufsize)
2142 { 2142 {
2143 int offset = outp - outbuf; 2143 EMACS_INT offset = outp - outbuf;
2144 outbufsize += ccl.produced; 2144 outbufsize += ccl.produced;
2145 outbuf = (unsigned char *) xrealloc (outbuf, outbufsize); 2145 outbuf = (unsigned char *) xrealloc (outbuf, outbufsize);
2146 outp = outbuf + offset; 2146 outp = outbuf + offset;
diff --git a/src/cmds.c b/src/cmds.c
index 0647810a42c..e12d7c370d9 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -37,7 +37,7 @@ Lisp_Object Qkill_forward_chars, Qkill_backward_chars;
37/* A possible value for a buffer's overwrite-mode variable. */ 37/* A possible value for a buffer's overwrite-mode variable. */
38Lisp_Object Qoverwrite_mode_binary; 38Lisp_Object Qoverwrite_mode_binary;
39 39
40static int internal_self_insert (int, int); 40static int internal_self_insert (int, EMACS_INT);
41 41
42DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0, 42DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0,
43 doc: /* Return buffer position N characters after (before if N negative) point. */) 43 doc: /* Return buffer position N characters after (before if N negative) point. */)
@@ -304,7 +304,7 @@ After insertion, the value of `auto-fill-function' is called if the
304 { 304 {
305 int character = translate_char (Vtranslation_table_for_input, 305 int character = translate_char (Vtranslation_table_for_input,
306 (int) XINT (last_command_event)); 306 (int) XINT (last_command_event));
307 int val = internal_self_insert (character, (int) XFASTINT (n)); 307 int val = internal_self_insert (character, XFASTINT (n));
308 if (val == 2) 308 if (val == 2)
309 nonundocount = 0; 309 nonundocount = 0;
310 frame_make_pointer_invisible (); 310 frame_make_pointer_invisible ();
@@ -323,7 +323,7 @@ static Lisp_Object Qexpand_abbrev;
323static Lisp_Object Qpost_self_insert_hook, Vpost_self_insert_hook; 323static Lisp_Object Qpost_self_insert_hook, Vpost_self_insert_hook;
324 324
325static int 325static int
326internal_self_insert (int c, int n) 326internal_self_insert (int c, EMACS_INT n)
327{ 327{
328 int hairy = 0; 328 int hairy = 0;
329 Lisp_Object tem; 329 Lisp_Object tem;
diff --git a/src/data.c b/src/data.c
index 630d341a20e..c28dc9b4bae 100644
--- a/src/data.c
+++ b/src/data.c
@@ -2082,13 +2082,14 @@ ARRAY may be a vector, a string, a char-table, a bool-vector,
2082or a byte-code object. IDX starts at 0. */) 2082or a byte-code object. IDX starts at 0. */)
2083 (register Lisp_Object array, Lisp_Object idx) 2083 (register Lisp_Object array, Lisp_Object idx)
2084{ 2084{
2085 register int idxval; 2085 register EMACS_INT idxval;
2086 2086
2087 CHECK_NUMBER (idx); 2087 CHECK_NUMBER (idx);
2088 idxval = XINT (idx); 2088 idxval = XINT (idx);
2089 if (STRINGP (array)) 2089 if (STRINGP (array))
2090 { 2090 {
2091 int c, idxval_byte; 2091 int c;
2092 EMACS_INT idxval_byte;
2092 2093
2093 if (idxval < 0 || idxval >= SCHARS (array)) 2094 if (idxval < 0 || idxval >= SCHARS (array))
2094 args_out_of_range (array, idx); 2095 args_out_of_range (array, idx);
@@ -2136,7 +2137,7 @@ Return NEWELT. ARRAY may be a vector, a string, a char-table or a
2136bool-vector. IDX starts at 0. */) 2137bool-vector. IDX starts at 0. */)
2137 (register Lisp_Object array, Lisp_Object idx, Lisp_Object newelt) 2138 (register Lisp_Object array, Lisp_Object idx, Lisp_Object newelt)
2138{ 2139{
2139 register int idxval; 2140 register EMACS_INT idxval;
2140 2141
2141 CHECK_NUMBER (idx); 2142 CHECK_NUMBER (idx);
2142 idxval = XINT (idx); 2143 idxval = XINT (idx);
@@ -2171,7 +2172,7 @@ bool-vector. IDX starts at 0. */)
2171 } 2172 }
2172 else if (STRING_MULTIBYTE (array)) 2173 else if (STRING_MULTIBYTE (array))
2173 { 2174 {
2174 int idxval_byte, prev_bytes, new_bytes, nbytes; 2175 EMACS_INT idxval_byte, prev_bytes, new_bytes, nbytes;
2175 unsigned char workbuf[MAX_MULTIBYTE_LENGTH], *p0 = workbuf, *p1; 2176 unsigned char workbuf[MAX_MULTIBYTE_LENGTH], *p0 = workbuf, *p1;
2176 2177
2177 if (idxval < 0 || idxval >= SCHARS (array)) 2178 if (idxval < 0 || idxval >= SCHARS (array))
@@ -2187,7 +2188,7 @@ bool-vector. IDX starts at 0. */)
2187 if (prev_bytes != new_bytes) 2188 if (prev_bytes != new_bytes)
2188 { 2189 {
2189 /* We must relocate the string data. */ 2190 /* We must relocate the string data. */
2190 int nchars = SCHARS (array); 2191 EMACS_INT nchars = SCHARS (array);
2191 unsigned char *str; 2192 unsigned char *str;
2192 USE_SAFE_ALLOCA; 2193 USE_SAFE_ALLOCA;
2193 2194
diff --git a/src/dispextern.h b/src/dispextern.h
index e4c13b58ce4..c23c1b673ad 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -2929,7 +2929,8 @@ void remember_mouse_glyph (struct frame *, int, int, NativeRectangle *);
2929void mark_window_display_accurate (Lisp_Object, int); 2929void mark_window_display_accurate (Lisp_Object, int);
2930void redisplay_preserve_echo_area (int); 2930void redisplay_preserve_echo_area (int);
2931int set_cursor_from_row (struct window *, struct glyph_row *, 2931int set_cursor_from_row (struct window *, struct glyph_row *,
2932 struct glyph_matrix *, int, int, int, int); 2932 struct glyph_matrix *, EMACS_INT, EMACS_INT,
2933 int, int);
2933void init_iterator (struct it *, struct window *, EMACS_INT, 2934void init_iterator (struct it *, struct window *, EMACS_INT,
2934 EMACS_INT, struct glyph_row *, enum face_id); 2935 EMACS_INT, struct glyph_row *, enum face_id);
2935void init_iterator_to_row_start (struct it *, struct window *, 2936void init_iterator_to_row_start (struct it *, struct window *,
@@ -3209,11 +3210,11 @@ extern Lisp_Object buffer_posn_from_coords (struct window *,
3209 Lisp_Object *, 3210 Lisp_Object *,
3210 int *, int *, int *, int *); 3211 int *, int *, int *, int *);
3211extern Lisp_Object mode_line_string (struct window *, enum window_part, 3212extern Lisp_Object mode_line_string (struct window *, enum window_part,
3212 int *, int *, int *, 3213 int *, int *, EMACS_INT *,
3213 Lisp_Object *, 3214 Lisp_Object *,
3214 int *, int *, int *, int *); 3215 int *, int *, int *, int *);
3215extern Lisp_Object marginal_area_string (struct window *, enum window_part, 3216extern Lisp_Object marginal_area_string (struct window *, enum window_part,
3216 int *, int *, int *, 3217 int *, int *, EMACS_INT *,
3217 Lisp_Object *, 3218 Lisp_Object *,
3218 int *, int *, int *, int *); 3219 int *, int *, int *, int *);
3219extern void redraw_frame (struct frame *); 3220extern void redraw_frame (struct frame *);
@@ -3236,9 +3237,9 @@ void shift_glyph_matrix (struct window *, struct glyph_matrix *,
3236 int, int, int); 3237 int, int, int);
3237void rotate_matrix (struct glyph_matrix *, int, int, int); 3238void rotate_matrix (struct glyph_matrix *, int, int, int);
3238void increment_matrix_positions (struct glyph_matrix *, 3239void increment_matrix_positions (struct glyph_matrix *,
3239 int, int, int, int); 3240 int, int, EMACS_INT, EMACS_INT);
3240void blank_row (struct window *, struct glyph_row *, int); 3241void blank_row (struct window *, struct glyph_row *, int);
3241void increment_row_positions (struct glyph_row *, int, int); 3242void increment_row_positions (struct glyph_row *, EMACS_INT, EMACS_INT);
3242void enable_glyph_matrix_rows (struct glyph_matrix *, int, int, int); 3243void enable_glyph_matrix_rows (struct glyph_matrix *, int, int, int);
3243void clear_glyph_row (struct glyph_row *); 3244void clear_glyph_row (struct glyph_row *);
3244void prepare_desired_row (struct glyph_row *); 3245void prepare_desired_row (struct glyph_row *);
diff --git a/src/dispnew.c b/src/dispnew.c
index 0869526c01d..a2152944d24 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -849,7 +849,8 @@ rotate_matrix (struct glyph_matrix *matrix, int first, int last, int by)
849 DELTA_BYTES. */ 849 DELTA_BYTES. */
850 850
851void 851void
852increment_matrix_positions (struct glyph_matrix *matrix, int start, int end, int delta, int delta_bytes) 852increment_matrix_positions (struct glyph_matrix *matrix, int start, int end,
853 EMACS_INT delta, EMACS_INT delta_bytes)
853{ 854{
854 /* Check that START and END are reasonable values. */ 855 /* Check that START and END are reasonable values. */
855 xassert (start >= 0 && start <= matrix->nrows); 856 xassert (start >= 0 && start <= matrix->nrows);
@@ -1088,7 +1089,8 @@ blank_row (struct window *w, struct glyph_row *row, int y)
1088 ends. */ 1089 ends. */
1089 1090
1090void 1091void
1091increment_row_positions (struct glyph_row *row, int delta, int delta_bytes) 1092increment_row_positions (struct glyph_row *row,
1093 EMACS_INT delta, EMACS_INT delta_bytes)
1092{ 1094{
1093 int area, i; 1095 int area, i;
1094 1096
@@ -1200,7 +1202,8 @@ copy_row_except_pointers (struct glyph_row *to, struct glyph_row *from)
1200 positions in row TO by DELTA/ DELTA_BYTES. */ 1202 positions in row TO by DELTA/ DELTA_BYTES. */
1201 1203
1202void 1204void
1203copy_glyph_row_contents (struct glyph_row *to, struct glyph_row *from, int delta, int delta_bytes) 1205copy_glyph_row_contents (struct glyph_row *to, struct glyph_row *from,
1206 EMACS_INT delta, EMACS_INT delta_bytes)
1204{ 1207{
1205 int area; 1208 int area;
1206 1209
@@ -5498,7 +5501,9 @@ buffer_posn_from_coords (struct window *w, int *x, int *y, struct display_pos *p
5498 *CHARPOS is set to the position in the string returned. */ 5501 *CHARPOS is set to the position in the string returned. */
5499 5502
5500Lisp_Object 5503Lisp_Object
5501mode_line_string (struct window *w, enum window_part part, int *x, int *y, int *charpos, Lisp_Object *object, int *dx, int *dy, int *width, int *height) 5504mode_line_string (struct window *w, enum window_part part,
5505 int *x, int *y, EMACS_INT *charpos, Lisp_Object *object,
5506 int *dx, int *dy, int *width, int *height)
5502{ 5507{
5503 struct glyph_row *row; 5508 struct glyph_row *row;
5504 struct glyph *glyph, *end; 5509 struct glyph *glyph, *end;
@@ -5565,7 +5570,9 @@ mode_line_string (struct window *w, enum window_part part, int *x, int *y, int *
5565 the string returned. */ 5570 the string returned. */
5566 5571
5567Lisp_Object 5572Lisp_Object
5568marginal_area_string (struct window *w, enum window_part part, int *x, int *y, int *charpos, Lisp_Object *object, int *dx, int *dy, int *width, int *height) 5573marginal_area_string (struct window *w, enum window_part part,
5574 int *x, int *y, EMACS_INT *charpos, Lisp_Object *object,
5575 int *dx, int *dy, int *width, int *height)
5569{ 5576{
5570 struct glyph_row *row = w->current_matrix->rows; 5577 struct glyph_row *row = w->current_matrix->rows;
5571 struct glyph *glyph, *end; 5578 struct glyph *glyph, *end;
diff --git a/src/keyboard.c b/src/keyboard.c
index 4785036eda8..0c58552c013 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -5281,7 +5281,8 @@ make_lispy_position (struct frame *f, Lisp_Object *x, Lisp_Object *y,
5281 /* It's a click in window window at frame coordinates (x,y) */ 5281 /* It's a click in window window at frame coordinates (x,y) */
5282 struct window *w = XWINDOW (window); 5282 struct window *w = XWINDOW (window);
5283 Lisp_Object string_info = Qnil; 5283 Lisp_Object string_info = Qnil;
5284 int textpos = -1, rx = -1, ry = -1; 5284 EMACS_INT textpos = -1;
5285 int rx = -1, ry = -1;
5285 int dx = -1, dy = -1; 5286 int dx = -1, dy = -1;
5286 int width = -1, height = -1; 5287 int width = -1, height = -1;
5287 Lisp_Object object = Qnil; 5288 Lisp_Object object = Qnil;
@@ -5300,7 +5301,7 @@ make_lispy_position (struct frame *f, Lisp_Object *x, Lisp_Object *y,
5300 /* Mode line or header line. Look for a string under 5301 /* Mode line or header line. Look for a string under
5301 the mouse that may have a `local-map' property. */ 5302 the mouse that may have a `local-map' property. */
5302 Lisp_Object string; 5303 Lisp_Object string;
5303 int charpos; 5304 EMACS_INT charpos;
5304 5305
5305 posn = part == ON_MODE_LINE ? Qmode_line : Qheader_line; 5306 posn = part == ON_MODE_LINE ? Qmode_line : Qheader_line;
5306 rx = wx, ry = wy; 5307 rx = wx, ry = wy;
@@ -5324,7 +5325,7 @@ make_lispy_position (struct frame *f, Lisp_Object *x, Lisp_Object *y,
5324 else if (part == ON_LEFT_MARGIN || part == ON_RIGHT_MARGIN) 5325 else if (part == ON_LEFT_MARGIN || part == ON_RIGHT_MARGIN)
5325 { 5326 {
5326 Lisp_Object string; 5327 Lisp_Object string;
5327 int charpos; 5328 EMACS_INT charpos;
5328 5329
5329 posn = (part == ON_LEFT_MARGIN) ? Qleft_margin : Qright_margin; 5330 posn = (part == ON_LEFT_MARGIN) ? Qleft_margin : Qright_margin;
5330 rx = wx, ry = wy; 5331 rx = wx, ry = wy;
diff --git a/src/xdisp.c b/src/xdisp.c
index 51217e3106d..7163a2c98b2 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -11103,7 +11103,7 @@ int debug_dvpos, debug_dy;
11103 11103
11104/* Delta in characters and bytes for try_window_id. */ 11104/* Delta in characters and bytes for try_window_id. */
11105 11105
11106int debug_delta, debug_delta_bytes; 11106EMACS_INT debug_delta, debug_delta_bytes;
11107 11107
11108/* Values of window_end_pos and window_end_vpos at the end of 11108/* Values of window_end_pos and window_end_vpos at the end of
11109 try_window_id. */ 11109 try_window_id. */
@@ -11834,7 +11834,7 @@ redisplay_internal (int preserve_echo_area)
11834 { 11834 {
11835 struct glyph_row *row 11835 struct glyph_row *row
11836 = MATRIX_ROW (w->current_matrix, this_line_vpos + 1); 11836 = MATRIX_ROW (w->current_matrix, this_line_vpos + 1);
11837 int delta, delta_bytes; 11837 EMACS_INT delta, delta_bytes;
11838 11838
11839 /* We used to distinguish between two cases here, 11839 /* We used to distinguish between two cases here,
11840 conditioned by Z - CHARPOS (tlendpos) == ZV, for 11840 conditioned by Z - CHARPOS (tlendpos) == ZV, for
@@ -12463,7 +12463,8 @@ redisplay_window_1 (Lisp_Object window)
12463 12463
12464int 12464int
12465set_cursor_from_row (struct window *w, struct glyph_row *row, 12465set_cursor_from_row (struct window *w, struct glyph_row *row,
12466 struct glyph_matrix *matrix, int delta, int delta_bytes, 12466 struct glyph_matrix *matrix,
12467 EMACS_INT delta, EMACS_INT delta_bytes,
12467 int dy, int dvpos) 12468 int dy, int dvpos)
12468{ 12469{
12469 struct glyph *glyph = row->glyphs[TEXT_AREA]; 12470 struct glyph *glyph = row->glyphs[TEXT_AREA];
@@ -15056,7 +15057,7 @@ try_window_reusing_current_matrix (struct window *w)
15056 15057
15057static struct glyph_row *find_last_unchanged_at_beg_row (struct window *); 15058static struct glyph_row *find_last_unchanged_at_beg_row (struct window *);
15058static struct glyph_row *find_first_unchanged_at_end_row (struct window *, 15059static struct glyph_row *find_first_unchanged_at_end_row (struct window *,
15059 int *, int *); 15060 EMACS_INT *, EMACS_INT *);
15060static struct glyph_row * 15061static struct glyph_row *
15061find_last_row_displaying_text (struct glyph_matrix *, struct it *, 15062find_last_row_displaying_text (struct glyph_matrix *, struct it *,
15062 struct glyph_row *); 15063 struct glyph_row *);
@@ -15151,7 +15152,8 @@ find_last_unchanged_at_beg_row (struct window *w)
15151 changes. */ 15152 changes. */
15152 15153
15153static struct glyph_row * 15154static struct glyph_row *
15154find_first_unchanged_at_end_row (struct window *w, int *delta, int *delta_bytes) 15155find_first_unchanged_at_end_row (struct window *w,
15156 EMACS_INT *delta, EMACS_INT *delta_bytes)
15155{ 15157{
15156 struct glyph_row *row; 15158 struct glyph_row *row;
15157 struct glyph_row *row_found = NULL; 15159 struct glyph_row *row_found = NULL;
@@ -15382,13 +15384,14 @@ try_window_id (struct window *w)
15382 struct glyph_row *bottom_row; 15384 struct glyph_row *bottom_row;
15383 int bottom_vpos; 15385 int bottom_vpos;
15384 struct it it; 15386 struct it it;
15385 int delta = 0, delta_bytes = 0, stop_pos, dvpos, dy; 15387 EMACS_INT delta = 0, delta_bytes = 0, stop_pos;
15388 int dvpos, dy;
15386 struct text_pos start_pos; 15389 struct text_pos start_pos;
15387 struct run run; 15390 struct run run;
15388 int first_unchanged_at_end_vpos = 0; 15391 int first_unchanged_at_end_vpos = 0;
15389 struct glyph_row *last_text_row, *last_text_row_at_end; 15392 struct glyph_row *last_text_row, *last_text_row_at_end;
15390 struct text_pos start; 15393 struct text_pos start;
15391 int first_changed_charpos, last_changed_charpos; 15394 EMACS_INT first_changed_charpos, last_changed_charpos;
15392 15395
15393#if GLYPH_DEBUG 15396#if GLYPH_DEBUG
15394 if (inhibit_try_window_id) 15397 if (inhibit_try_window_id)
@@ -15515,7 +15518,7 @@ try_window_id (struct window *w)
15515 || (last_changed_charpos < CHARPOS (start) - 1 15518 || (last_changed_charpos < CHARPOS (start) - 1
15516 && FETCH_BYTE (BYTEPOS (start) - 1) == '\n'))) 15519 && FETCH_BYTE (BYTEPOS (start) - 1) == '\n')))
15517 { 15520 {
15518 int Z_old, delta, Z_BYTE_old, delta_bytes; 15521 EMACS_INT Z_old, delta, Z_BYTE_old, delta_bytes;
15519 struct glyph_row *r0; 15522 struct glyph_row *r0;
15520 15523
15521 /* Compute how many chars/bytes have been added to or removed 15524 /* Compute how many chars/bytes have been added to or removed
@@ -24167,7 +24170,8 @@ note_mode_line_or_margin_highlight (Lisp_Object window, int x, int y,
24167 Display_Info *dpyinfo = FRAME_X_DISPLAY_INFO (f); 24170 Display_Info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
24168 Cursor cursor = FRAME_X_OUTPUT (f)->nontext_cursor; 24171 Cursor cursor = FRAME_X_OUTPUT (f)->nontext_cursor;
24169 Lisp_Object pointer = Qnil; 24172 Lisp_Object pointer = Qnil;
24170 int charpos, dx, dy, width, height; 24173 int dx, dy, width, height;
24174 EMACS_INT charpos;
24171 Lisp_Object string, object = Qnil; 24175 Lisp_Object string, object = Qnil;
24172 Lisp_Object pos, help; 24176 Lisp_Object pos, help;
24173 24177