diff options
| author | Lars Magne Ingebrigtsen | 2010-09-25 18:39:13 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2010-09-25 18:39:13 +0200 |
| commit | a952d5f301f9b8ca62d7f02a20a42f7386db46b7 (patch) | |
| tree | bec9a15c4c045a5dba38b7035618ea78c1091a48 /src | |
| parent | b7bdc47c6d4e2c6499bb0f532b9be9d95d818930 (diff) | |
| download | emacs-a952d5f301f9b8ca62d7f02a20a42f7386db46b7.tar.gz emacs-a952d5f301f9b8ca62d7f02a20a42f7386db46b7.zip | |
Fix up some EMACS_INT/int conversion errors related to xdisp.c.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/dispextern.h | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 24 |
3 files changed, 21 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a70d32788ab..38b24f8559b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup. | ||
| 4 | |||
| 5 | * dispextern.h: EMACS_INT/int fixup. | ||
| 6 | |||
| 7 | * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int | ||
| 8 | fixup. | ||
| 9 | |||
| 3 | * xrdb.c (magic_file_p): EMACS_INT/int fixup. | 10 | * xrdb.c (magic_file_p): EMACS_INT/int fixup. |
| 4 | 11 | ||
| 5 | 2010-09-25 Eli Zaretskii <eliz@gnu.org> | 12 | 2010-09-25 Eli Zaretskii <eliz@gnu.org> |
diff --git a/src/dispextern.h b/src/dispextern.h index 8c73117a4e7..d6e393f57ee 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -2938,7 +2938,7 @@ void init_iterator_to_row_start (struct it *, struct window *, | |||
| 2938 | int get_next_display_element (struct it *); | 2938 | int get_next_display_element (struct it *); |
| 2939 | void set_iterator_to_next (struct it *, int); | 2939 | void set_iterator_to_next (struct it *, int); |
| 2940 | void start_display (struct it *, struct window *, struct text_pos); | 2940 | void start_display (struct it *, struct window *, struct text_pos); |
| 2941 | void move_it_to (struct it *, int, int, int, int, int); | 2941 | void move_it_to (struct it *, EMACS_INT, int, int, int, int); |
| 2942 | void move_it_vertically (struct it *, int); | 2942 | void move_it_vertically (struct it *, int); |
| 2943 | void move_it_vertically_backward (struct it *, int); | 2943 | void move_it_vertically_backward (struct it *, int); |
| 2944 | void move_it_by_lines (struct it *, int, int); | 2944 | void move_it_by_lines (struct it *, int, int); |
diff --git a/src/xdisp.c b/src/xdisp.c index 942e8f9d22b..6ed7a945de5 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1052,8 +1052,8 @@ static int init_to_row_end (struct it *, struct window *, | |||
| 1052 | static void back_to_previous_line_start (struct it *); | 1052 | static void back_to_previous_line_start (struct it *); |
| 1053 | static int forward_to_next_line_start (struct it *, int *); | 1053 | static int forward_to_next_line_start (struct it *, int *); |
| 1054 | static struct text_pos string_pos_nchars_ahead (struct text_pos, | 1054 | static struct text_pos string_pos_nchars_ahead (struct text_pos, |
| 1055 | Lisp_Object, int); | 1055 | Lisp_Object, EMACS_INT); |
| 1056 | static struct text_pos string_pos (int, Lisp_Object); | 1056 | static struct text_pos string_pos (EMACS_INT, Lisp_Object); |
| 1057 | static struct text_pos c_string_pos (int, const unsigned char *, int); | 1057 | static struct text_pos c_string_pos (int, const unsigned char *, int); |
| 1058 | static int number_of_chars (const unsigned char *, int); | 1058 | static int number_of_chars (const unsigned char *, int); |
| 1059 | static void compute_stop_pos (struct it *); | 1059 | static void compute_stop_pos (struct it *); |
| @@ -1522,13 +1522,13 @@ string_char_and_length (const unsigned char *str, int *len) | |||
| 1522 | in STRING, return the position NCHARS ahead (NCHARS >= 0). */ | 1522 | in STRING, return the position NCHARS ahead (NCHARS >= 0). */ |
| 1523 | 1523 | ||
| 1524 | static struct text_pos | 1524 | static struct text_pos |
| 1525 | string_pos_nchars_ahead (struct text_pos pos, Lisp_Object string, int nchars) | 1525 | string_pos_nchars_ahead (struct text_pos pos, Lisp_Object string, EMACS_INT nchars) |
| 1526 | { | 1526 | { |
| 1527 | xassert (STRINGP (string) && nchars >= 0); | 1527 | xassert (STRINGP (string) && nchars >= 0); |
| 1528 | 1528 | ||
| 1529 | if (STRING_MULTIBYTE (string)) | 1529 | if (STRING_MULTIBYTE (string)) |
| 1530 | { | 1530 | { |
| 1531 | int rest = SBYTES (string) - BYTEPOS (pos); | 1531 | EMACS_INT rest = SBYTES (string) - BYTEPOS (pos); |
| 1532 | const unsigned char *p = SDATA (string) + BYTEPOS (pos); | 1532 | const unsigned char *p = SDATA (string) + BYTEPOS (pos); |
| 1533 | int len; | 1533 | int len; |
| 1534 | 1534 | ||
| @@ -1552,7 +1552,7 @@ string_pos_nchars_ahead (struct text_pos pos, Lisp_Object string, int nchars) | |||
| 1552 | for character position CHARPOS in STRING. */ | 1552 | for character position CHARPOS in STRING. */ |
| 1553 | 1553 | ||
| 1554 | static INLINE struct text_pos | 1554 | static INLINE struct text_pos |
| 1555 | string_pos (int charpos, Lisp_Object string) | 1555 | string_pos (EMACS_INT charpos, Lisp_Object string) |
| 1556 | { | 1556 | { |
| 1557 | struct text_pos pos; | 1557 | struct text_pos pos; |
| 1558 | xassert (STRINGP (string)); | 1558 | xassert (STRINGP (string)); |
| @@ -2653,7 +2653,7 @@ init_iterator (struct it *it, struct window *w, | |||
| 2653 | && WINDOWP (minibuf_selected_window) | 2653 | && WINDOWP (minibuf_selected_window) |
| 2654 | && w == XWINDOW (minibuf_selected_window)))) | 2654 | && w == XWINDOW (minibuf_selected_window)))) |
| 2655 | { | 2655 | { |
| 2656 | int charpos = marker_position (current_buffer->mark); | 2656 | EMACS_INT charpos = marker_position (current_buffer->mark); |
| 2657 | it->region_beg_charpos = min (PT, charpos); | 2657 | it->region_beg_charpos = min (PT, charpos); |
| 2658 | it->region_end_charpos = max (PT, charpos); | 2658 | it->region_end_charpos = max (PT, charpos); |
| 2659 | } | 2659 | } |
| @@ -2899,7 +2899,7 @@ in_ellipses_for_invisible_text_p (struct display_pos *pos, struct window *w) | |||
| 2899 | { | 2899 | { |
| 2900 | Lisp_Object prop, window; | 2900 | Lisp_Object prop, window; |
| 2901 | int ellipses_p = 0; | 2901 | int ellipses_p = 0; |
| 2902 | int charpos = CHARPOS (pos->pos); | 2902 | EMACS_INT charpos = CHARPOS (pos->pos); |
| 2903 | 2903 | ||
| 2904 | /* If POS specifies a position in a display vector, this might | 2904 | /* If POS specifies a position in a display vector, this might |
| 2905 | be for an ellipsis displayed for invisible text. We won't | 2905 | be for an ellipsis displayed for invisible text. We won't |
| @@ -3455,7 +3455,8 @@ handle_face_prop (struct it *it) | |||
| 3455 | } | 3455 | } |
| 3456 | else | 3456 | else |
| 3457 | { | 3457 | { |
| 3458 | int base_face_id, bufpos; | 3458 | int base_face_id; |
| 3459 | EMACS_INT bufpos; | ||
| 3459 | int i; | 3460 | int i; |
| 3460 | Lisp_Object from_overlay | 3461 | Lisp_Object from_overlay |
| 3461 | = (it->current.overlay_string_index >= 0 | 3462 | = (it->current.overlay_string_index >= 0 |
| @@ -3579,7 +3580,8 @@ face_before_or_after_it_pos (struct it *it, int before_p) | |||
| 3579 | 3580 | ||
| 3580 | if (STRINGP (it->string)) | 3581 | if (STRINGP (it->string)) |
| 3581 | { | 3582 | { |
| 3582 | int bufpos, base_face_id; | 3583 | EMACS_INT bufpos; |
| 3584 | int base_face_id; | ||
| 3583 | 3585 | ||
| 3584 | /* No face change past the end of the string (for the case | 3586 | /* No face change past the end of the string (for the case |
| 3585 | we are padding with spaces). No face change before the | 3587 | we are padding with spaces). No face change before the |
| @@ -3622,7 +3624,7 @@ face_before_or_after_it_pos (struct it *it, int before_p) | |||
| 3622 | if (STRING_MULTIBYTE (it->string)) | 3624 | if (STRING_MULTIBYTE (it->string)) |
| 3623 | { | 3625 | { |
| 3624 | const unsigned char *p = SDATA (it->string) + BYTEPOS (pos); | 3626 | const unsigned char *p = SDATA (it->string) + BYTEPOS (pos); |
| 3625 | int rest = SBYTES (it->string) - BYTEPOS (pos); | 3627 | EMACS_INT rest = SBYTES (it->string) - BYTEPOS (pos); |
| 3626 | int c, len; | 3628 | int c, len; |
| 3627 | struct face *face = FACE_FROM_ID (it->f, face_id); | 3629 | struct face *face = FACE_FROM_ID (it->f, face_id); |
| 3628 | 3630 | ||
| @@ -7411,7 +7413,7 @@ move_it_in_display_line (struct it *it, | |||
| 7411 | TO_CHARPOS. */ | 7413 | TO_CHARPOS. */ |
| 7412 | 7414 | ||
| 7413 | void | 7415 | void |
| 7414 | move_it_to (struct it *it, int to_charpos, int to_x, int to_y, int to_vpos, int op) | 7416 | move_it_to (struct it *it, EMACS_INT to_charpos, int to_x, int to_y, int to_vpos, int op) |
| 7415 | { | 7417 | { |
| 7416 | enum move_it_result skip, skip2 = MOVE_X_REACHED; | 7418 | enum move_it_result skip, skip2 = MOVE_X_REACHED; |
| 7417 | int line_height, line_start_x = 0, reached = 0; | 7419 | int line_height, line_start_x = 0, reached = 0; |