diff options
| author | Eli Zaretskii | 2010-09-24 13:48:10 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2010-09-24 13:48:10 -0400 |
| commit | ace1712c7feb83cc6b03d31b7a8b0439b83b7212 (patch) | |
| tree | 8fb7f4713b4b14fc09f71d7f0c49274c4492a511 /src/cmds.c | |
| parent | 4f3a2f8d41f3a1e2be27921e8271c5fdb78e6d98 (diff) | |
| download | emacs-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/cmds.c')
| -rw-r--r-- | src/cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
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. */ |
| 38 | Lisp_Object Qoverwrite_mode_binary; | 38 | Lisp_Object Qoverwrite_mode_binary; |
| 39 | 39 | ||
| 40 | static int internal_self_insert (int, int); | 40 | static int internal_self_insert (int, EMACS_INT); |
| 41 | 41 | ||
| 42 | DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0, | 42 | DEFUN ("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; | |||
| 323 | static Lisp_Object Qpost_self_insert_hook, Vpost_self_insert_hook; | 323 | static Lisp_Object Qpost_self_insert_hook, Vpost_self_insert_hook; |
| 324 | 324 | ||
| 325 | static int | 325 | static int |
| 326 | internal_self_insert (int c, int n) | 326 | internal_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; |