diff options
| author | Eli Zaretskii | 2011-04-09 19:35:19 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2011-04-09 19:35:19 +0300 |
| commit | a53e2e898b96c8024de5a1a413826a6a59dd6b54 (patch) | |
| tree | 560e6e4b0f16937e8883ac8811e6628c731e9a6f /src | |
| parent | 04f33f1ed9cdfed6a3e44a55d333cd19d58424ca (diff) | |
| download | emacs-a53e2e898b96c8024de5a1a413826a6a59dd6b54.tar.gz emacs-a53e2e898b96c8024de5a1a413826a6a59dd6b54.zip | |
Replace some uses of `int' with EMACS_INT.
src/search.c (string_match_1, fast_string_match)
(fast_c_string_match_ignore_case, fast_string_match_ignore_case)
(scan_buffer, find_next_newline_no_quit)
(find_before_next_newline, search_command, Freplace_match)
(Fmatch_data): Make some `int' variables be EMACS_INT.
src/xdisp.c (display_count_lines): 3rd argument and return value now
EMACS_INT. All callers changed.
(pint2hrstr): Last argument is now EMACS_INT.
src/coding.c (detect_coding_utf_8, detect_coding_emacs_mule)
(detect_coding_iso_2022, detect_coding_sjis, detect_coding_big5)
(detect_coding_ccl, detect_coding_charset, decode_coding_utf_8)
(decode_coding_utf_16, decode_coding_emacs_mule)
(decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
(decode_coding_ccl, decode_coding_charset)
<consumed_chars, consumed_chars_base>: Declare EMACS_INT.
(decode_coding_iso_2022, decode_coding_emacs_mule)
(decode_coding_sjis, decode_coding_big5, decode_coding_charset)
<char_offset, last_offset>: Declare EMACS_INT.
(encode_coding_utf_8, encode_coding_utf_16)
(encode_coding_emacs_mule, encode_invocation_designation)
(encode_designation_at_bol, encode_coding_iso_2022)
(encode_coding_sjis, encode_coding_big5, encode_coding_ccl)
(encode_coding_raw_text, encode_coding_charset) <produced_chars>:
Declare EMACS_INT.
(ASSURE_DESTINATION): Declare more_bytes EMACS_INT.
(encode_invocation_designation): Last argument P_NCHARS is now
EMACS_INT.
(decode_eol): Declare pos_byte, pos, and pos_end EMACS_INT.
(produce_chars): from_nchars and to_nchars are now EMACS_INT.
src/coding.h (struct coding_system) <head_ascii>: Declare EMACS_INT.
All users changed.
src/ccl.c (Fccl_execute_on_string): Declare some variables
EMACS_INT.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 41 | ||||
| -rw-r--r-- | src/ccl.c | 2 | ||||
| -rw-r--r-- | src/coding.c | 95 | ||||
| -rw-r--r-- | src/coding.h | 2 | ||||
| -rw-r--r-- | src/editfns.c | 2 | ||||
| -rw-r--r-- | src/fileio.c | 2 | ||||
| -rw-r--r-- | src/lisp.h | 10 | ||||
| -rw-r--r-- | src/search.c | 28 | ||||
| -rw-r--r-- | src/xdisp.c | 22 |
9 files changed, 125 insertions, 79 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index efacbbc4583..64aaf22f781 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,44 @@ | |||
| 1 | 2011-04-09 Eli Zaretskii <eliz@emacstest.gnu.org> | ||
| 2 | |||
| 3 | Fix some uses of `int' instead of EMACS_INT. | ||
| 4 | * search.c (string_match_1, fast_string_match) | ||
| 5 | (fast_c_string_match_ignore_case, fast_string_match_ignore_case) | ||
| 6 | (scan_buffer, find_next_newline_no_quit) | ||
| 7 | (find_before_next_newline, search_command, Freplace_match) | ||
| 8 | (Fmatch_data): Make some `int' variables be EMACS_INT. | ||
| 9 | |||
| 10 | * xdisp.c (display_count_lines): 3rd argument and return value now | ||
| 11 | EMACS_INT. All callers changed. | ||
| 12 | (pint2hrstr): Last argument is now EMACS_INT. | ||
| 13 | |||
| 14 | * coding.c (detect_coding_utf_8, detect_coding_emacs_mule) | ||
| 15 | (detect_coding_iso_2022, detect_coding_sjis, detect_coding_big5) | ||
| 16 | (detect_coding_ccl, detect_coding_charset, decode_coding_utf_8) | ||
| 17 | (decode_coding_utf_16, decode_coding_emacs_mule) | ||
| 18 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) | ||
| 19 | (decode_coding_ccl, decode_coding_charset) | ||
| 20 | <consumed_chars, consumed_chars_base>: Declare EMACS_INT. | ||
| 21 | (decode_coding_iso_2022, decode_coding_emacs_mule) | ||
| 22 | (decode_coding_sjis, decode_coding_big5, decode_coding_charset) | ||
| 23 | <char_offset, last_offset>: Declare EMACS_INT. | ||
| 24 | (encode_coding_utf_8, encode_coding_utf_16) | ||
| 25 | (encode_coding_emacs_mule, encode_invocation_designation) | ||
| 26 | (encode_designation_at_bol, encode_coding_iso_2022) | ||
| 27 | (encode_coding_sjis, encode_coding_big5, encode_coding_ccl) | ||
| 28 | (encode_coding_raw_text, encode_coding_charset) <produced_chars>: | ||
| 29 | Declare EMACS_INT. | ||
| 30 | (ASSURE_DESTINATION): Declare more_bytes EMACS_INT. | ||
| 31 | (encode_invocation_designation): Last argument P_NCHARS is now | ||
| 32 | EMACS_INT. | ||
| 33 | (decode_eol): Declare pos_byte, pos, and pos_end EMACS_INT. | ||
| 34 | (produce_chars): from_nchars and to_nchars are now EMACS_INT. | ||
| 35 | |||
| 36 | * coding.h (struct coding_system) <head_ascii>: Declare EMACS_INT. | ||
| 37 | All users changed. | ||
| 38 | |||
| 39 | * ccl.c (Fccl_execute_on_string): Declare some variables | ||
| 40 | EMACS_INT. | ||
| 41 | |||
| 1 | 2011-04-08 Svante Signell <svante.signell@telia.com> (tiny change) | 42 | 2011-04-08 Svante Signell <svante.signell@telia.com> (tiny change) |
| 2 | 43 | ||
| 3 | * term.c (init_tty): Fix incorrect ifdef placement (Bug#8450). | 44 | * term.c (init_tty): Fix incorrect ifdef placement (Bug#8450). |
| @@ -2049,7 +2049,7 @@ usage: (ccl-execute-on-string CCL-PROGRAM STATUS STRING &optional CONTINUE UNIBY | |||
| 2049 | Lisp_Object val; | 2049 | Lisp_Object val; |
| 2050 | struct ccl_program ccl; | 2050 | struct ccl_program ccl; |
| 2051 | int i; | 2051 | int i; |
| 2052 | int outbufsize; | 2052 | EMACS_INT outbufsize; |
| 2053 | unsigned char *outbuf, *outp; | 2053 | unsigned char *outbuf, *outp; |
| 2054 | EMACS_INT str_chars, str_bytes; | 2054 | EMACS_INT str_chars, str_bytes; |
| 2055 | #define CCL_EXECUTE_BUF_SIZE 1024 | 2055 | #define CCL_EXECUTE_BUF_SIZE 1024 |
diff --git a/src/coding.c b/src/coding.c index 555c29cbdf3..a2e90e631d1 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -159,7 +159,7 @@ detect_coding_XXX (struct coding_system *coding, | |||
| 159 | const unsigned char *src = coding->source; | 159 | const unsigned char *src = coding->source; |
| 160 | const unsigned char *src_end = coding->source + coding->src_bytes; | 160 | const unsigned char *src_end = coding->source + coding->src_bytes; |
| 161 | int multibytep = coding->src_multibyte; | 161 | int multibytep = coding->src_multibyte; |
| 162 | int consumed_chars = 0; | 162 | EMACS_INT consumed_chars = 0; |
| 163 | int found = 0; | 163 | int found = 0; |
| 164 | ...; | 164 | ...; |
| 165 | 165 | ||
| @@ -266,7 +266,7 @@ encode_coding_XXX (struct coding_system *coding) | |||
| 266 | unsigned char *dst = coding->destination + coding->produced; | 266 | unsigned char *dst = coding->destination + coding->produced; |
| 267 | unsigned char *dst_end = coding->destination + coding->dst_bytes; | 267 | unsigned char *dst_end = coding->destination + coding->dst_bytes; |
| 268 | unsigned char *adjusted_dst_end = dst_end - _MAX_BYTES_PRODUCED_IN_LOOP_; | 268 | unsigned char *adjusted_dst_end = dst_end - _MAX_BYTES_PRODUCED_IN_LOOP_; |
| 269 | int produced_chars = 0; | 269 | EMACS_INT produced_chars = 0; |
| 270 | 270 | ||
| 271 | for (; charbuf < charbuf_end && dst < adjusted_dst_end; charbuf++) | 271 | for (; charbuf < charbuf_end && dst < adjusted_dst_end; charbuf++) |
| 272 | { | 272 | { |
| @@ -943,7 +943,7 @@ record_conversion_result (struct coding_system *coding, | |||
| 943 | do { \ | 943 | do { \ |
| 944 | if (dst + (bytes) >= dst_end) \ | 944 | if (dst + (bytes) >= dst_end) \ |
| 945 | { \ | 945 | { \ |
| 946 | int more_bytes = charbuf_end - charbuf + (bytes); \ | 946 | EMACS_INT more_bytes = charbuf_end - charbuf + (bytes); \ |
| 947 | \ | 947 | \ |
| 948 | dst = alloc_destination (coding, more_bytes, dst); \ | 948 | dst = alloc_destination (coding, more_bytes, dst); \ |
| 949 | dst_end = coding->destination + coding->dst_bytes; \ | 949 | dst_end = coding->destination + coding->dst_bytes; \ |
| @@ -1208,7 +1208,7 @@ detect_coding_utf_8 (struct coding_system *coding, | |||
| 1208 | const unsigned char *src = coding->source, *src_base; | 1208 | const unsigned char *src = coding->source, *src_base; |
| 1209 | const unsigned char *src_end = coding->source + coding->src_bytes; | 1209 | const unsigned char *src_end = coding->source + coding->src_bytes; |
| 1210 | int multibytep = coding->src_multibyte; | 1210 | int multibytep = coding->src_multibyte; |
| 1211 | int consumed_chars = 0; | 1211 | EMACS_INT consumed_chars = 0; |
| 1212 | int bom_found = 0; | 1212 | int bom_found = 0; |
| 1213 | int found = 0; | 1213 | int found = 0; |
| 1214 | 1214 | ||
| @@ -1293,7 +1293,7 @@ decode_coding_utf_8 (struct coding_system *coding) | |||
| 1293 | const unsigned char *src_base; | 1293 | const unsigned char *src_base; |
| 1294 | int *charbuf = coding->charbuf + coding->charbuf_used; | 1294 | int *charbuf = coding->charbuf + coding->charbuf_used; |
| 1295 | int *charbuf_end = coding->charbuf + coding->charbuf_size; | 1295 | int *charbuf_end = coding->charbuf + coding->charbuf_size; |
| 1296 | int consumed_chars = 0, consumed_chars_base = 0; | 1296 | EMACS_INT consumed_chars = 0, consumed_chars_base = 0; |
| 1297 | int multibytep = coding->src_multibyte; | 1297 | int multibytep = coding->src_multibyte; |
| 1298 | enum utf_bom_type bom = CODING_UTF_8_BOM (coding); | 1298 | enum utf_bom_type bom = CODING_UTF_8_BOM (coding); |
| 1299 | int eol_dos = | 1299 | int eol_dos = |
| @@ -1444,7 +1444,7 @@ encode_coding_utf_8 (struct coding_system *coding) | |||
| 1444 | int *charbuf_end = charbuf + coding->charbuf_used; | 1444 | int *charbuf_end = charbuf + coding->charbuf_used; |
| 1445 | unsigned char *dst = coding->destination + coding->produced; | 1445 | unsigned char *dst = coding->destination + coding->produced; |
| 1446 | unsigned char *dst_end = coding->destination + coding->dst_bytes; | 1446 | unsigned char *dst_end = coding->destination + coding->dst_bytes; |
| 1447 | int produced_chars = 0; | 1447 | EMACS_INT produced_chars = 0; |
| 1448 | int c; | 1448 | int c; |
| 1449 | 1449 | ||
| 1450 | if (CODING_UTF_8_BOM (coding) == utf_with_bom) | 1450 | if (CODING_UTF_8_BOM (coding) == utf_with_bom) |
| @@ -1602,7 +1602,7 @@ decode_coding_utf_16 (struct coding_system *coding) | |||
| 1602 | int *charbuf = coding->charbuf + coding->charbuf_used; | 1602 | int *charbuf = coding->charbuf + coding->charbuf_used; |
| 1603 | /* We may produces at most 3 chars in one loop. */ | 1603 | /* We may produces at most 3 chars in one loop. */ |
| 1604 | int *charbuf_end = coding->charbuf + coding->charbuf_size - 2; | 1604 | int *charbuf_end = coding->charbuf + coding->charbuf_size - 2; |
| 1605 | int consumed_chars = 0, consumed_chars_base = 0; | 1605 | EMACS_INT consumed_chars = 0, consumed_chars_base = 0; |
| 1606 | int multibytep = coding->src_multibyte; | 1606 | int multibytep = coding->src_multibyte; |
| 1607 | enum utf_bom_type bom = CODING_UTF_16_BOM (coding); | 1607 | enum utf_bom_type bom = CODING_UTF_16_BOM (coding); |
| 1608 | enum utf_16_endian_type endian = CODING_UTF_16_ENDIAN (coding); | 1608 | enum utf_16_endian_type endian = CODING_UTF_16_ENDIAN (coding); |
| @@ -1729,7 +1729,7 @@ encode_coding_utf_16 (struct coding_system *coding) | |||
| 1729 | int safe_room = 8; | 1729 | int safe_room = 8; |
| 1730 | enum utf_bom_type bom = CODING_UTF_16_BOM (coding); | 1730 | enum utf_bom_type bom = CODING_UTF_16_BOM (coding); |
| 1731 | int big_endian = CODING_UTF_16_ENDIAN (coding) == utf_16_big_endian; | 1731 | int big_endian = CODING_UTF_16_ENDIAN (coding) == utf_16_big_endian; |
| 1732 | int produced_chars = 0; | 1732 | EMACS_INT produced_chars = 0; |
| 1733 | int c; | 1733 | int c; |
| 1734 | 1734 | ||
| 1735 | if (bom != utf_without_bom) | 1735 | if (bom != utf_without_bom) |
| @@ -1863,7 +1863,7 @@ detect_coding_emacs_mule (struct coding_system *coding, | |||
| 1863 | const unsigned char *src = coding->source, *src_base; | 1863 | const unsigned char *src = coding->source, *src_base; |
| 1864 | const unsigned char *src_end = coding->source + coding->src_bytes; | 1864 | const unsigned char *src_end = coding->source + coding->src_bytes; |
| 1865 | int multibytep = coding->src_multibyte; | 1865 | int multibytep = coding->src_multibyte; |
| 1866 | int consumed_chars = 0; | 1866 | EMACS_INT consumed_chars = 0; |
| 1867 | int c; | 1867 | int c; |
| 1868 | int found = 0; | 1868 | int found = 0; |
| 1869 | 1869 | ||
| @@ -2331,10 +2331,10 @@ decode_coding_emacs_mule (struct coding_system *coding) | |||
| 2331 | loop and one more charset annotation at the end. */ | 2331 | loop and one more charset annotation at the end. */ |
| 2332 | int *charbuf_end | 2332 | int *charbuf_end |
| 2333 | = coding->charbuf + coding->charbuf_size - (MAX_ANNOTATION_LENGTH * 3); | 2333 | = coding->charbuf + coding->charbuf_size - (MAX_ANNOTATION_LENGTH * 3); |
| 2334 | int consumed_chars = 0, consumed_chars_base; | 2334 | EMACS_INT consumed_chars = 0, consumed_chars_base; |
| 2335 | int multibytep = coding->src_multibyte; | 2335 | int multibytep = coding->src_multibyte; |
| 2336 | int char_offset = coding->produced_char; | 2336 | EMACS_INT char_offset = coding->produced_char; |
| 2337 | int last_offset = char_offset; | 2337 | EMACS_INT last_offset = char_offset; |
| 2338 | int last_id = charset_ascii; | 2338 | int last_id = charset_ascii; |
| 2339 | int eol_dos = | 2339 | int eol_dos = |
| 2340 | !inhibit_eol_conversion && EQ (CODING_ID_EOL_TYPE (coding->id), Qdos); | 2340 | !inhibit_eol_conversion && EQ (CODING_ID_EOL_TYPE (coding->id), Qdos); |
| @@ -2585,7 +2585,7 @@ encode_coding_emacs_mule (struct coding_system *coding) | |||
| 2585 | unsigned char *dst = coding->destination + coding->produced; | 2585 | unsigned char *dst = coding->destination + coding->produced; |
| 2586 | unsigned char *dst_end = coding->destination + coding->dst_bytes; | 2586 | unsigned char *dst_end = coding->destination + coding->dst_bytes; |
| 2587 | int safe_room = 8; | 2587 | int safe_room = 8; |
| 2588 | int produced_chars = 0; | 2588 | EMACS_INT produced_chars = 0; |
| 2589 | Lisp_Object attrs, charset_list; | 2589 | Lisp_Object attrs, charset_list; |
| 2590 | int c; | 2590 | int c; |
| 2591 | int preferred_charset_id = -1; | 2591 | int preferred_charset_id = -1; |
| @@ -2943,7 +2943,7 @@ detect_coding_iso_2022 (struct coding_system *coding, | |||
| 2943 | int single_shifting = 0; | 2943 | int single_shifting = 0; |
| 2944 | int id; | 2944 | int id; |
| 2945 | int c, c1; | 2945 | int c, c1; |
| 2946 | int consumed_chars = 0; | 2946 | EMACS_INT consumed_chars = 0; |
| 2947 | int i; | 2947 | int i; |
| 2948 | int rejected = 0; | 2948 | int rejected = 0; |
| 2949 | int found = 0; | 2949 | int found = 0; |
| @@ -3453,7 +3453,7 @@ decode_coding_iso_2022 (struct coding_system *coding) | |||
| 3453 | loop and one more charset annotation at the end. */ | 3453 | loop and one more charset annotation at the end. */ |
| 3454 | int *charbuf_end | 3454 | int *charbuf_end |
| 3455 | = coding->charbuf + coding->charbuf_size - (MAX_ANNOTATION_LENGTH * 3); | 3455 | = coding->charbuf + coding->charbuf_size - (MAX_ANNOTATION_LENGTH * 3); |
| 3456 | int consumed_chars = 0, consumed_chars_base; | 3456 | EMACS_INT consumed_chars = 0, consumed_chars_base; |
| 3457 | int multibytep = coding->src_multibyte; | 3457 | int multibytep = coding->src_multibyte; |
| 3458 | /* Charsets invoked to graphic plane 0 and 1 respectively. */ | 3458 | /* Charsets invoked to graphic plane 0 and 1 respectively. */ |
| 3459 | int charset_id_0 = CODING_ISO_INVOKED_CHARSET (coding, 0); | 3459 | int charset_id_0 = CODING_ISO_INVOKED_CHARSET (coding, 0); |
| @@ -3463,8 +3463,8 @@ decode_coding_iso_2022 (struct coding_system *coding) | |||
| 3463 | int c; | 3463 | int c; |
| 3464 | struct composition_status *cmp_status = CODING_ISO_CMP_STATUS (coding); | 3464 | struct composition_status *cmp_status = CODING_ISO_CMP_STATUS (coding); |
| 3465 | Lisp_Object attrs = CODING_ID_ATTRS (coding->id); | 3465 | Lisp_Object attrs = CODING_ID_ATTRS (coding->id); |
| 3466 | int char_offset = coding->produced_char; | 3466 | EMACS_INT char_offset = coding->produced_char; |
| 3467 | int last_offset = char_offset; | 3467 | EMACS_INT last_offset = char_offset; |
| 3468 | int last_id = charset_ascii; | 3468 | int last_id = charset_ascii; |
| 3469 | int eol_dos = | 3469 | int eol_dos = |
| 3470 | !inhibit_eol_conversion && EQ (CODING_ID_EOL_TYPE (coding->id), Qdos); | 3470 | !inhibit_eol_conversion && EQ (CODING_ID_EOL_TYPE (coding->id), Qdos); |
| @@ -4190,10 +4190,10 @@ decode_coding_iso_2022 (struct coding_system *coding) | |||
| 4190 | static unsigned char * | 4190 | static unsigned char * |
| 4191 | encode_invocation_designation (struct charset *charset, | 4191 | encode_invocation_designation (struct charset *charset, |
| 4192 | struct coding_system *coding, | 4192 | struct coding_system *coding, |
| 4193 | unsigned char *dst, int *p_nchars) | 4193 | unsigned char *dst, EMACS_INT *p_nchars) |
| 4194 | { | 4194 | { |
| 4195 | int multibytep = coding->dst_multibyte; | 4195 | int multibytep = coding->dst_multibyte; |
| 4196 | int produced_chars = *p_nchars; | 4196 | EMACS_INT produced_chars = *p_nchars; |
| 4197 | int reg; /* graphic register number */ | 4197 | int reg; /* graphic register number */ |
| 4198 | int id = CHARSET_ID (charset); | 4198 | int id = CHARSET_ID (charset); |
| 4199 | 4199 | ||
| @@ -4285,7 +4285,7 @@ encode_designation_at_bol (struct coding_system *coding, int *charbuf, | |||
| 4285 | /* Table of charsets to be designated to each graphic register. */ | 4285 | /* Table of charsets to be designated to each graphic register. */ |
| 4286 | int r[4]; | 4286 | int r[4]; |
| 4287 | int c, found = 0, reg; | 4287 | int c, found = 0, reg; |
| 4288 | int produced_chars = 0; | 4288 | EMACS_INT produced_chars = 0; |
| 4289 | int multibytep = coding->dst_multibyte; | 4289 | int multibytep = coding->dst_multibyte; |
| 4290 | Lisp_Object attrs; | 4290 | Lisp_Object attrs; |
| 4291 | Lisp_Object charset_list; | 4291 | Lisp_Object charset_list; |
| @@ -4340,7 +4340,7 @@ encode_coding_iso_2022 (struct coding_system *coding) | |||
| 4340 | int bol_designation | 4340 | int bol_designation |
| 4341 | = (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_DESIGNATE_AT_BOL | 4341 | = (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_DESIGNATE_AT_BOL |
| 4342 | && CODING_ISO_BOL (coding)); | 4342 | && CODING_ISO_BOL (coding)); |
| 4343 | int produced_chars = 0; | 4343 | EMACS_INT produced_chars = 0; |
| 4344 | Lisp_Object attrs, eol_type, charset_list; | 4344 | Lisp_Object attrs, eol_type, charset_list; |
| 4345 | int ascii_compatible; | 4345 | int ascii_compatible; |
| 4346 | int c; | 4346 | int c; |
| @@ -4528,7 +4528,7 @@ detect_coding_sjis (struct coding_system *coding, | |||
| 4528 | const unsigned char *src = coding->source, *src_base; | 4528 | const unsigned char *src = coding->source, *src_base; |
| 4529 | const unsigned char *src_end = coding->source + coding->src_bytes; | 4529 | const unsigned char *src_end = coding->source + coding->src_bytes; |
| 4530 | int multibytep = coding->src_multibyte; | 4530 | int multibytep = coding->src_multibyte; |
| 4531 | int consumed_chars = 0; | 4531 | EMACS_INT consumed_chars = 0; |
| 4532 | int found = 0; | 4532 | int found = 0; |
| 4533 | int c; | 4533 | int c; |
| 4534 | Lisp_Object attrs, charset_list; | 4534 | Lisp_Object attrs, charset_list; |
| @@ -4585,7 +4585,7 @@ detect_coding_big5 (struct coding_system *coding, | |||
| 4585 | const unsigned char *src = coding->source, *src_base; | 4585 | const unsigned char *src = coding->source, *src_base; |
| 4586 | const unsigned char *src_end = coding->source + coding->src_bytes; | 4586 | const unsigned char *src_end = coding->source + coding->src_bytes; |
| 4587 | int multibytep = coding->src_multibyte; | 4587 | int multibytep = coding->src_multibyte; |
| 4588 | int consumed_chars = 0; | 4588 | EMACS_INT consumed_chars = 0; |
| 4589 | int found = 0; | 4589 | int found = 0; |
| 4590 | int c; | 4590 | int c; |
| 4591 | 4591 | ||
| @@ -4636,13 +4636,13 @@ decode_coding_sjis (struct coding_system *coding) | |||
| 4636 | the end. */ | 4636 | the end. */ |
| 4637 | int *charbuf_end | 4637 | int *charbuf_end |
| 4638 | = coding->charbuf + coding->charbuf_size - (MAX_ANNOTATION_LENGTH * 2); | 4638 | = coding->charbuf + coding->charbuf_size - (MAX_ANNOTATION_LENGTH * 2); |
| 4639 | int consumed_chars = 0, consumed_chars_base; | 4639 | EMACS_INT consumed_chars = 0, consumed_chars_base; |
| 4640 | int multibytep = coding->src_multibyte; | 4640 | int multibytep = coding->src_multibyte; |
| 4641 | struct charset *charset_roman, *charset_kanji, *charset_kana; | 4641 | struct charset *charset_roman, *charset_kanji, *charset_kana; |
| 4642 | struct charset *charset_kanji2; | 4642 | struct charset *charset_kanji2; |
| 4643 | Lisp_Object attrs, charset_list, val; | 4643 | Lisp_Object attrs, charset_list, val; |
| 4644 | int char_offset = coding->produced_char; | 4644 | EMACS_INT char_offset = coding->produced_char; |
| 4645 | int last_offset = char_offset; | 4645 | EMACS_INT last_offset = char_offset; |
| 4646 | int last_id = charset_ascii; | 4646 | int last_id = charset_ascii; |
| 4647 | int eol_dos = | 4647 | int eol_dos = |
| 4648 | !inhibit_eol_conversion && EQ (CODING_ID_EOL_TYPE (coding->id), Qdos); | 4648 | !inhibit_eol_conversion && EQ (CODING_ID_EOL_TYPE (coding->id), Qdos); |
| @@ -4754,12 +4754,12 @@ decode_coding_big5 (struct coding_system *coding) | |||
| 4754 | the end. */ | 4754 | the end. */ |
| 4755 | int *charbuf_end | 4755 | int *charbuf_end |
| 4756 | = coding->charbuf + coding->charbuf_size - (MAX_ANNOTATION_LENGTH * 2); | 4756 | = coding->charbuf + coding->charbuf_size - (MAX_ANNOTATION_LENGTH * 2); |
| 4757 | int consumed_chars = 0, consumed_chars_base; | 4757 | EMACS_INT consumed_chars = 0, consumed_chars_base; |
| 4758 | int multibytep = coding->src_multibyte; | 4758 | int multibytep = coding->src_multibyte; |
| 4759 | struct charset *charset_roman, *charset_big5; | 4759 | struct charset *charset_roman, *charset_big5; |
| 4760 | Lisp_Object attrs, charset_list, val; | 4760 | Lisp_Object attrs, charset_list, val; |
| 4761 | int char_offset = coding->produced_char; | 4761 | EMACS_INT char_offset = coding->produced_char; |
| 4762 | int last_offset = char_offset; | 4762 | EMACS_INT last_offset = char_offset; |
| 4763 | int last_id = charset_ascii; | 4763 | int last_id = charset_ascii; |
| 4764 | int eol_dos = | 4764 | int eol_dos = |
| 4765 | !inhibit_eol_conversion && EQ (CODING_ID_EOL_TYPE (coding->id), Qdos); | 4765 | !inhibit_eol_conversion && EQ (CODING_ID_EOL_TYPE (coding->id), Qdos); |
| @@ -4856,7 +4856,7 @@ encode_coding_sjis (struct coding_system *coding) | |||
| 4856 | unsigned char *dst = coding->destination + coding->produced; | 4856 | unsigned char *dst = coding->destination + coding->produced; |
| 4857 | unsigned char *dst_end = coding->destination + coding->dst_bytes; | 4857 | unsigned char *dst_end = coding->destination + coding->dst_bytes; |
| 4858 | int safe_room = 4; | 4858 | int safe_room = 4; |
| 4859 | int produced_chars = 0; | 4859 | EMACS_INT produced_chars = 0; |
| 4860 | Lisp_Object attrs, charset_list, val; | 4860 | Lisp_Object attrs, charset_list, val; |
| 4861 | int ascii_compatible; | 4861 | int ascii_compatible; |
| 4862 | struct charset *charset_kanji, *charset_kana; | 4862 | struct charset *charset_kanji, *charset_kana; |
| @@ -4947,7 +4947,7 @@ encode_coding_big5 (struct coding_system *coding) | |||
| 4947 | unsigned char *dst = coding->destination + coding->produced; | 4947 | unsigned char *dst = coding->destination + coding->produced; |
| 4948 | unsigned char *dst_end = coding->destination + coding->dst_bytes; | 4948 | unsigned char *dst_end = coding->destination + coding->dst_bytes; |
| 4949 | int safe_room = 4; | 4949 | int safe_room = 4; |
| 4950 | int produced_chars = 0; | 4950 | EMACS_INT produced_chars = 0; |
| 4951 | Lisp_Object attrs, charset_list, val; | 4951 | Lisp_Object attrs, charset_list, val; |
| 4952 | int ascii_compatible; | 4952 | int ascii_compatible; |
| 4953 | struct charset *charset_big5; | 4953 | struct charset *charset_big5; |
| @@ -5022,10 +5022,10 @@ detect_coding_ccl (struct coding_system *coding, | |||
| 5022 | const unsigned char *src = coding->source, *src_base; | 5022 | const unsigned char *src = coding->source, *src_base; |
| 5023 | const unsigned char *src_end = coding->source + coding->src_bytes; | 5023 | const unsigned char *src_end = coding->source + coding->src_bytes; |
| 5024 | int multibytep = coding->src_multibyte; | 5024 | int multibytep = coding->src_multibyte; |
| 5025 | int consumed_chars = 0; | 5025 | EMACS_INT consumed_chars = 0; |
| 5026 | int found = 0; | 5026 | int found = 0; |
| 5027 | unsigned char *valids; | 5027 | unsigned char *valids; |
| 5028 | int head_ascii = coding->head_ascii; | 5028 | EMACS_INT head_ascii = coding->head_ascii; |
| 5029 | Lisp_Object attrs; | 5029 | Lisp_Object attrs; |
| 5030 | 5030 | ||
| 5031 | detect_info->checked |= CATEGORY_MASK_CCL; | 5031 | detect_info->checked |= CATEGORY_MASK_CCL; |
| @@ -5062,7 +5062,7 @@ decode_coding_ccl (struct coding_system *coding) | |||
| 5062 | const unsigned char *src_end = coding->source + coding->src_bytes; | 5062 | const unsigned char *src_end = coding->source + coding->src_bytes; |
| 5063 | int *charbuf = coding->charbuf + coding->charbuf_used; | 5063 | int *charbuf = coding->charbuf + coding->charbuf_used; |
| 5064 | int *charbuf_end = coding->charbuf + coding->charbuf_size; | 5064 | int *charbuf_end = coding->charbuf + coding->charbuf_size; |
| 5065 | int consumed_chars = 0; | 5065 | EMACS_INT consumed_chars = 0; |
| 5066 | int multibytep = coding->src_multibyte; | 5066 | int multibytep = coding->src_multibyte; |
| 5067 | struct ccl_program *ccl = &coding->spec.ccl->ccl; | 5067 | struct ccl_program *ccl = &coding->spec.ccl->ccl; |
| 5068 | int source_charbuf[1024]; | 5068 | int source_charbuf[1024]; |
| @@ -5134,7 +5134,8 @@ encode_coding_ccl (struct coding_system *coding) | |||
| 5134 | unsigned char *dst = coding->destination + coding->produced; | 5134 | unsigned char *dst = coding->destination + coding->produced; |
| 5135 | unsigned char *dst_end = coding->destination + coding->dst_bytes; | 5135 | unsigned char *dst_end = coding->destination + coding->dst_bytes; |
| 5136 | int destination_charbuf[1024]; | 5136 | int destination_charbuf[1024]; |
| 5137 | int i, produced_chars = 0; | 5137 | EMACS_INT produced_chars = 0; |
| 5138 | int i; | ||
| 5138 | Lisp_Object attrs, charset_list; | 5139 | Lisp_Object attrs, charset_list; |
| 5139 | 5140 | ||
| 5140 | CODING_GET_INFO (coding, attrs, charset_list); | 5141 | CODING_GET_INFO (coding, attrs, charset_list); |
| @@ -5220,7 +5221,7 @@ encode_coding_raw_text (struct coding_system *coding) | |||
| 5220 | int *charbuf_end = coding->charbuf + coding->charbuf_used; | 5221 | int *charbuf_end = coding->charbuf + coding->charbuf_used; |
| 5221 | unsigned char *dst = coding->destination + coding->produced; | 5222 | unsigned char *dst = coding->destination + coding->produced; |
| 5222 | unsigned char *dst_end = coding->destination + coding->dst_bytes; | 5223 | unsigned char *dst_end = coding->destination + coding->dst_bytes; |
| 5223 | int produced_chars = 0; | 5224 | EMACS_INT produced_chars = 0; |
| 5224 | int c; | 5225 | int c; |
| 5225 | 5226 | ||
| 5226 | if (multibytep) | 5227 | if (multibytep) |
| @@ -5303,10 +5304,10 @@ detect_coding_charset (struct coding_system *coding, | |||
| 5303 | const unsigned char *src = coding->source, *src_base; | 5304 | const unsigned char *src = coding->source, *src_base; |
| 5304 | const unsigned char *src_end = coding->source + coding->src_bytes; | 5305 | const unsigned char *src_end = coding->source + coding->src_bytes; |
| 5305 | int multibytep = coding->src_multibyte; | 5306 | int multibytep = coding->src_multibyte; |
| 5306 | int consumed_chars = 0; | 5307 | EMACS_INT consumed_chars = 0; |
| 5307 | Lisp_Object attrs, valids, name; | 5308 | Lisp_Object attrs, valids, name; |
| 5308 | int found = 0; | 5309 | int found = 0; |
| 5309 | int head_ascii = coding->head_ascii; | 5310 | EMACS_INT head_ascii = coding->head_ascii; |
| 5310 | int check_latin_extra = 0; | 5311 | int check_latin_extra = 0; |
| 5311 | 5312 | ||
| 5312 | detect_info->checked |= CATEGORY_MASK_CHARSET; | 5313 | detect_info->checked |= CATEGORY_MASK_CHARSET; |
| @@ -5410,12 +5411,12 @@ decode_coding_charset (struct coding_system *coding) | |||
| 5410 | the end. */ | 5411 | the end. */ |
| 5411 | int *charbuf_end | 5412 | int *charbuf_end |
| 5412 | = coding->charbuf + coding->charbuf_size - (MAX_ANNOTATION_LENGTH * 2); | 5413 | = coding->charbuf + coding->charbuf_size - (MAX_ANNOTATION_LENGTH * 2); |
| 5413 | int consumed_chars = 0, consumed_chars_base; | 5414 | EMACS_INT consumed_chars = 0, consumed_chars_base; |
| 5414 | int multibytep = coding->src_multibyte; | 5415 | int multibytep = coding->src_multibyte; |
| 5415 | Lisp_Object attrs = CODING_ID_ATTRS (coding->id); | 5416 | Lisp_Object attrs = CODING_ID_ATTRS (coding->id); |
| 5416 | Lisp_Object valids; | 5417 | Lisp_Object valids; |
| 5417 | int char_offset = coding->produced_char; | 5418 | EMACS_INT char_offset = coding->produced_char; |
| 5418 | int last_offset = char_offset; | 5419 | EMACS_INT last_offset = char_offset; |
| 5419 | int last_id = charset_ascii; | 5420 | int last_id = charset_ascii; |
| 5420 | int eol_dos = | 5421 | int eol_dos = |
| 5421 | !inhibit_eol_conversion && EQ (CODING_ID_EOL_TYPE (coding->id), Qdos); | 5422 | !inhibit_eol_conversion && EQ (CODING_ID_EOL_TYPE (coding->id), Qdos); |
| @@ -5536,7 +5537,7 @@ encode_coding_charset (struct coding_system *coding) | |||
| 5536 | unsigned char *dst = coding->destination + coding->produced; | 5537 | unsigned char *dst = coding->destination + coding->produced; |
| 5537 | unsigned char *dst_end = coding->destination + coding->dst_bytes; | 5538 | unsigned char *dst_end = coding->destination + coding->dst_bytes; |
| 5538 | int safe_room = MAX_MULTIBYTE_LENGTH; | 5539 | int safe_room = MAX_MULTIBYTE_LENGTH; |
| 5539 | int produced_chars = 0; | 5540 | EMACS_INT produced_chars = 0; |
| 5540 | Lisp_Object attrs, charset_list; | 5541 | Lisp_Object attrs, charset_list; |
| 5541 | int ascii_compatible; | 5542 | int ascii_compatible; |
| 5542 | int c; | 5543 | int c; |
| @@ -6444,7 +6445,7 @@ decode_eol (struct coding_system *coding) | |||
| 6444 | } | 6445 | } |
| 6445 | else if (EQ (eol_type, Qdos)) | 6446 | else if (EQ (eol_type, Qdos)) |
| 6446 | { | 6447 | { |
| 6447 | int n = 0; | 6448 | EMACS_INT n = 0; |
| 6448 | 6449 | ||
| 6449 | if (NILP (coding->dst_object)) | 6450 | if (NILP (coding->dst_object)) |
| 6450 | { | 6451 | { |
| @@ -6459,9 +6460,9 @@ decode_eol (struct coding_system *coding) | |||
| 6459 | } | 6460 | } |
| 6460 | else | 6461 | else |
| 6461 | { | 6462 | { |
| 6462 | int pos_byte = coding->dst_pos_byte; | 6463 | EMACS_INT pos_byte = coding->dst_pos_byte; |
| 6463 | int pos = coding->dst_pos; | 6464 | EMACS_INT pos = coding->dst_pos; |
| 6464 | int pos_end = pos + coding->produced_char - 1; | 6465 | EMACS_INT pos_end = pos + coding->produced_char - 1; |
| 6465 | 6466 | ||
| 6466 | while (pos < pos_end) | 6467 | while (pos < pos_end) |
| 6467 | { | 6468 | { |
| @@ -6646,7 +6647,7 @@ produce_chars (struct coding_system *coding, Lisp_Object translation_table, | |||
| 6646 | 6647 | ||
| 6647 | if (c >= 0) | 6648 | if (c >= 0) |
| 6648 | { | 6649 | { |
| 6649 | int from_nchars = 1, to_nchars = 1; | 6650 | EMACS_INT from_nchars = 1, to_nchars = 1; |
| 6650 | Lisp_Object trans = Qnil; | 6651 | Lisp_Object trans = Qnil; |
| 6651 | 6652 | ||
| 6652 | LOOKUP_TRANSLATION_TABLE (translation_table, c, trans); | 6653 | LOOKUP_TRANSLATION_TABLE (translation_table, c, trans); |
diff --git a/src/coding.h b/src/coding.h index 6238a708e76..8414a2fe133 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -449,7 +449,7 @@ struct coding_system | |||
| 449 | -1 in setup_coding_system, and updated by detect_coding. So, | 449 | -1 in setup_coding_system, and updated by detect_coding. So, |
| 450 | when this is equal to the byte length of the text being | 450 | when this is equal to the byte length of the text being |
| 451 | converted, we can skip the actual conversion process. */ | 451 | converted, we can skip the actual conversion process. */ |
| 452 | int head_ascii; | 452 | EMACS_INT head_ascii; |
| 453 | 453 | ||
| 454 | /* The following members are set by encoding/decoding routine. */ | 454 | /* The following members are set by encoding/decoding routine. */ |
| 455 | EMACS_INT produced, produced_char, consumed, consumed_char; | 455 | EMACS_INT produced, produced_char, consumed, consumed_char; |
diff --git a/src/editfns.c b/src/editfns.c index d0f1df694d5..cd424f277bf 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -750,7 +750,7 @@ Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil. */) | |||
| 750 | /* It is possible that NEW_POS is not within the same field as | 750 | /* It is possible that NEW_POS is not within the same field as |
| 751 | OLD_POS; try to move NEW_POS so that it is. */ | 751 | OLD_POS; try to move NEW_POS so that it is. */ |
| 752 | { | 752 | { |
| 753 | int shortage; | 753 | EMACS_INT shortage; |
| 754 | Lisp_Object field_bound; | 754 | Lisp_Object field_bound; |
| 755 | 755 | ||
| 756 | if (fwd) | 756 | if (fwd) |
diff --git a/src/fileio.c b/src/fileio.c index dec53968947..f9923c420a3 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -271,7 +271,7 @@ use the standard functions without calling themselves recursively. */) | |||
| 271 | if (CONSP (elt)) | 271 | if (CONSP (elt)) |
| 272 | { | 272 | { |
| 273 | Lisp_Object string = XCAR (elt); | 273 | Lisp_Object string = XCAR (elt); |
| 274 | int match_pos; | 274 | EMACS_INT match_pos; |
| 275 | Lisp_Object handler = XCDR (elt); | 275 | Lisp_Object handler = XCDR (elt); |
| 276 | Lisp_Object operations = Qnil; | 276 | Lisp_Object operations = Qnil; |
| 277 | 277 | ||
diff --git a/src/lisp.h b/src/lisp.h index 250c0d807ac..e538b5dc3b1 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2775,6 +2775,8 @@ extern Lisp_Object Qprint_escape_newlines; | |||
| 2775 | extern void write_string (const char *, int); | 2775 | extern void write_string (const char *, int); |
| 2776 | extern void print_error_message (Lisp_Object, Lisp_Object, const char *, | 2776 | extern void print_error_message (Lisp_Object, Lisp_Object, const char *, |
| 2777 | Lisp_Object); | 2777 | Lisp_Object); |
| 2778 | extern Lisp_Object internal_with_output_to_temp_buffer | ||
| 2779 | (const char *, Lisp_Object (*) (Lisp_Object), Lisp_Object); | ||
| 2778 | #define FLOAT_TO_STRING_BUFSIZE 350 | 2780 | #define FLOAT_TO_STRING_BUFSIZE 350 |
| 2779 | extern void float_to_string (char *, double); | 2781 | extern void float_to_string (char *, double); |
| 2780 | extern void syms_of_print (void); | 2782 | extern void syms_of_print (void); |
| @@ -3044,13 +3046,13 @@ struct re_registers; | |||
| 3044 | extern struct re_pattern_buffer *compile_pattern (Lisp_Object, | 3046 | extern struct re_pattern_buffer *compile_pattern (Lisp_Object, |
| 3045 | struct re_registers *, | 3047 | struct re_registers *, |
| 3046 | Lisp_Object, int, int); | 3048 | Lisp_Object, int, int); |
| 3047 | extern int fast_string_match (Lisp_Object, Lisp_Object); | 3049 | extern EMACS_INT fast_string_match (Lisp_Object, Lisp_Object); |
| 3048 | extern int fast_c_string_match_ignore_case (Lisp_Object, const char *); | 3050 | extern EMACS_INT fast_c_string_match_ignore_case (Lisp_Object, const char *); |
| 3049 | extern int fast_string_match_ignore_case (Lisp_Object, Lisp_Object); | 3051 | extern EMACS_INT fast_string_match_ignore_case (Lisp_Object, Lisp_Object); |
| 3050 | extern EMACS_INT fast_looking_at (Lisp_Object, EMACS_INT, EMACS_INT, | 3052 | extern EMACS_INT fast_looking_at (Lisp_Object, EMACS_INT, EMACS_INT, |
| 3051 | EMACS_INT, EMACS_INT, Lisp_Object); | 3053 | EMACS_INT, EMACS_INT, Lisp_Object); |
| 3052 | extern EMACS_INT scan_buffer (int, EMACS_INT, EMACS_INT, EMACS_INT, | 3054 | extern EMACS_INT scan_buffer (int, EMACS_INT, EMACS_INT, EMACS_INT, |
| 3053 | int *, int); | 3055 | EMACS_INT *, int); |
| 3054 | extern EMACS_INT scan_newline (EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT, | 3056 | extern EMACS_INT scan_newline (EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT, |
| 3055 | EMACS_INT, int); | 3057 | EMACS_INT, int); |
| 3056 | extern EMACS_INT find_next_newline (EMACS_INT, int); | 3058 | extern EMACS_INT find_next_newline (EMACS_INT, int); |
diff --git a/src/search.c b/src/search.c index fa44e1300d7..d9be8ca0105 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -368,7 +368,7 @@ data if you want to preserve them. */) | |||
| 368 | static Lisp_Object | 368 | static Lisp_Object |
| 369 | string_match_1 (Lisp_Object regexp, Lisp_Object string, Lisp_Object start, int posix) | 369 | string_match_1 (Lisp_Object regexp, Lisp_Object string, Lisp_Object start, int posix) |
| 370 | { | 370 | { |
| 371 | int val; | 371 | EMACS_INT val; |
| 372 | struct re_pattern_buffer *bufp; | 372 | struct re_pattern_buffer *bufp; |
| 373 | EMACS_INT pos, pos_byte; | 373 | EMACS_INT pos, pos_byte; |
| 374 | int i; | 374 | int i; |
| @@ -468,10 +468,10 @@ matched by parenthesis constructs in the pattern. */) | |||
| 468 | and return the index of the match, or negative on failure. | 468 | and return the index of the match, or negative on failure. |
| 469 | This does not clobber the match data. */ | 469 | This does not clobber the match data. */ |
| 470 | 470 | ||
| 471 | int | 471 | EMACS_INT |
| 472 | fast_string_match (Lisp_Object regexp, Lisp_Object string) | 472 | fast_string_match (Lisp_Object regexp, Lisp_Object string) |
| 473 | { | 473 | { |
| 474 | int val; | 474 | EMACS_INT val; |
| 475 | struct re_pattern_buffer *bufp; | 475 | struct re_pattern_buffer *bufp; |
| 476 | 476 | ||
| 477 | bufp = compile_pattern (regexp, 0, Qnil, | 477 | bufp = compile_pattern (regexp, 0, Qnil, |
| @@ -491,10 +491,10 @@ fast_string_match (Lisp_Object regexp, Lisp_Object string) | |||
| 491 | This does not clobber the match data. | 491 | This does not clobber the match data. |
| 492 | We assume that STRING contains single-byte characters. */ | 492 | We assume that STRING contains single-byte characters. */ |
| 493 | 493 | ||
| 494 | int | 494 | EMACS_INT |
| 495 | fast_c_string_match_ignore_case (Lisp_Object regexp, const char *string) | 495 | fast_c_string_match_ignore_case (Lisp_Object regexp, const char *string) |
| 496 | { | 496 | { |
| 497 | int val; | 497 | EMACS_INT val; |
| 498 | struct re_pattern_buffer *bufp; | 498 | struct re_pattern_buffer *bufp; |
| 499 | size_t len = strlen (string); | 499 | size_t len = strlen (string); |
| 500 | 500 | ||
| @@ -511,10 +511,10 @@ fast_c_string_match_ignore_case (Lisp_Object regexp, const char *string) | |||
| 511 | 511 | ||
| 512 | /* Like fast_string_match but ignore case. */ | 512 | /* Like fast_string_match but ignore case. */ |
| 513 | 513 | ||
| 514 | int | 514 | EMACS_INT |
| 515 | fast_string_match_ignore_case (Lisp_Object regexp, Lisp_Object string) | 515 | fast_string_match_ignore_case (Lisp_Object regexp, Lisp_Object string) |
| 516 | { | 516 | { |
| 517 | int val; | 517 | EMACS_INT val; |
| 518 | struct re_pattern_buffer *bufp; | 518 | struct re_pattern_buffer *bufp; |
| 519 | 519 | ||
| 520 | bufp = compile_pattern (regexp, 0, Vascii_canon_table, | 520 | bufp = compile_pattern (regexp, 0, Vascii_canon_table, |
| @@ -643,7 +643,7 @@ newline_cache_on_off (struct buffer *buf) | |||
| 643 | 643 | ||
| 644 | EMACS_INT | 644 | EMACS_INT |
| 645 | scan_buffer (register int target, EMACS_INT start, EMACS_INT end, | 645 | scan_buffer (register int target, EMACS_INT start, EMACS_INT end, |
| 646 | EMACS_INT count, int *shortage, int allow_quit) | 646 | EMACS_INT count, EMACS_INT *shortage, int allow_quit) |
| 647 | { | 647 | { |
| 648 | struct region_cache *newline_cache; | 648 | struct region_cache *newline_cache; |
| 649 | int direction; | 649 | int direction; |
| @@ -933,7 +933,7 @@ scan_newline (EMACS_INT start, EMACS_INT start_byte, | |||
| 933 | EMACS_INT | 933 | EMACS_INT |
| 934 | find_next_newline_no_quit (EMACS_INT from, EMACS_INT cnt) | 934 | find_next_newline_no_quit (EMACS_INT from, EMACS_INT cnt) |
| 935 | { | 935 | { |
| 936 | return scan_buffer ('\n', from, 0, cnt, (int *) 0, 0); | 936 | return scan_buffer ('\n', from, 0, cnt, (EMACS_INT *) 0, 0); |
| 937 | } | 937 | } |
| 938 | 938 | ||
| 939 | /* Like find_next_newline, but returns position before the newline, | 939 | /* Like find_next_newline, but returns position before the newline, |
| @@ -943,7 +943,7 @@ find_next_newline_no_quit (EMACS_INT from, EMACS_INT cnt) | |||
| 943 | EMACS_INT | 943 | EMACS_INT |
| 944 | find_before_next_newline (EMACS_INT from, EMACS_INT to, EMACS_INT cnt) | 944 | find_before_next_newline (EMACS_INT from, EMACS_INT to, EMACS_INT cnt) |
| 945 | { | 945 | { |
| 946 | int shortage; | 946 | EMACS_INT shortage; |
| 947 | EMACS_INT pos = scan_buffer ('\n', from, to, cnt, &shortage, 1); | 947 | EMACS_INT pos = scan_buffer ('\n', from, to, cnt, &shortage, 1); |
| 948 | 948 | ||
| 949 | if (shortage == 0) | 949 | if (shortage == 0) |
| @@ -958,9 +958,9 @@ static Lisp_Object | |||
| 958 | search_command (Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, | 958 | search_command (Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, |
| 959 | Lisp_Object count, int direction, int RE, int posix) | 959 | Lisp_Object count, int direction, int RE, int posix) |
| 960 | { | 960 | { |
| 961 | register int np; | 961 | register EMACS_INT np; |
| 962 | EMACS_INT lim, lim_byte; | 962 | EMACS_INT lim, lim_byte; |
| 963 | int n = direction; | 963 | EMACS_INT n = direction; |
| 964 | 964 | ||
| 965 | if (!NILP (count)) | 965 | if (!NILP (count)) |
| 966 | { | 966 | { |
| @@ -2524,7 +2524,7 @@ since only regular expressions have distinguished subexpressions. */) | |||
| 2524 | /* We build up the substituted string in ACCUM. */ | 2524 | /* We build up the substituted string in ACCUM. */ |
| 2525 | Lisp_Object accum; | 2525 | Lisp_Object accum; |
| 2526 | Lisp_Object middle; | 2526 | Lisp_Object middle; |
| 2527 | int length = SBYTES (newtext); | 2527 | EMACS_INT length = SBYTES (newtext); |
| 2528 | 2528 | ||
| 2529 | accum = Qnil; | 2529 | accum = Qnil; |
| 2530 | 2530 | ||
| @@ -2880,7 +2880,7 @@ Return value is undefined if the last search failed. */) | |||
| 2880 | len = 0; | 2880 | len = 0; |
| 2881 | for (i = 0; i < search_regs.num_regs; i++) | 2881 | for (i = 0; i < search_regs.num_regs; i++) |
| 2882 | { | 2882 | { |
| 2883 | int start = search_regs.start[i]; | 2883 | EMACS_INT start = search_regs.start[i]; |
| 2884 | if (start >= 0) | 2884 | if (start >= 0) |
| 2885 | { | 2885 | { |
| 2886 | if (EQ (last_thing_searched, Qt) | 2886 | if (EQ (last_thing_searched, Qt) |
diff --git a/src/xdisp.c b/src/xdisp.c index fbdd553aa51..827ff6d3133 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -763,7 +763,7 @@ static Lisp_Object get_it_property (struct it *it, Lisp_Object prop); | |||
| 763 | static void handle_line_prefix (struct it *); | 763 | static void handle_line_prefix (struct it *); |
| 764 | 764 | ||
| 765 | static void pint2str (char *, int, EMACS_INT); | 765 | static void pint2str (char *, int, EMACS_INT); |
| 766 | static void pint2hrstr (char *, int, int); | 766 | static void pint2hrstr (char *, int, EMACS_INT); |
| 767 | static struct text_pos run_window_scroll_functions (Lisp_Object, | 767 | static struct text_pos run_window_scroll_functions (Lisp_Object, |
| 768 | struct text_pos); | 768 | struct text_pos); |
| 769 | static void reconsider_clip_changes (struct window *, struct buffer *); | 769 | static void reconsider_clip_changes (struct window *, struct buffer *); |
| @@ -825,7 +825,8 @@ static int display_mode_element (struct it *, int, int, int, Lisp_Object, Lisp_O | |||
| 825 | static int store_mode_line_string (const char *, Lisp_Object, int, int, int, Lisp_Object); | 825 | static int store_mode_line_string (const char *, Lisp_Object, int, int, int, Lisp_Object); |
| 826 | static const char *decode_mode_spec (struct window *, int, int, Lisp_Object *); | 826 | static const char *decode_mode_spec (struct window *, int, int, Lisp_Object *); |
| 827 | static void display_menu_bar (struct window *); | 827 | static void display_menu_bar (struct window *); |
| 828 | static int display_count_lines (EMACS_INT, EMACS_INT, int, EMACS_INT *); | 828 | static EMACS_INT display_count_lines (EMACS_INT, EMACS_INT, EMACS_INT, |
| 829 | EMACS_INT *); | ||
| 829 | static int display_string (const char *, Lisp_Object, Lisp_Object, | 830 | static int display_string (const char *, Lisp_Object, Lisp_Object, |
| 830 | EMACS_INT, EMACS_INT, struct it *, int, int, int, int); | 831 | EMACS_INT, EMACS_INT, struct it *, int, int, int, int); |
| 831 | static void compute_line_metrics (struct it *); | 832 | static void compute_line_metrics (struct it *); |
| @@ -19107,11 +19108,11 @@ static const char power_letter[] = | |||
| 19107 | }; | 19108 | }; |
| 19108 | 19109 | ||
| 19109 | static void | 19110 | static void |
| 19110 | pint2hrstr (char *buf, int width, int d) | 19111 | pint2hrstr (char *buf, int width, EMACS_INT d) |
| 19111 | { | 19112 | { |
| 19112 | /* We aim to represent the nonnegative integer D as | 19113 | /* We aim to represent the nonnegative integer D as |
| 19113 | QUOTIENT.TENTHS * 10 ^ (3 * EXPONENT). */ | 19114 | QUOTIENT.TENTHS * 10 ^ (3 * EXPONENT). */ |
| 19114 | int quotient = d; | 19115 | EMACS_INT quotient = d; |
| 19115 | int remainder = 0; | 19116 | int remainder = 0; |
| 19116 | /* -1 means: do not use TENTHS. */ | 19117 | /* -1 means: do not use TENTHS. */ |
| 19117 | int tenths = -1; | 19118 | int tenths = -1; |
| @@ -19437,7 +19438,7 @@ decode_mode_spec (struct window *w, register int c, int field_width, | |||
| 19437 | case 'l': | 19438 | case 'l': |
| 19438 | { | 19439 | { |
| 19439 | EMACS_INT startpos, startpos_byte, line, linepos, linepos_byte; | 19440 | EMACS_INT startpos, startpos_byte, line, linepos, linepos_byte; |
| 19440 | int topline, nlines, height; | 19441 | EMACS_INT topline, nlines, height; |
| 19441 | EMACS_INT junk; | 19442 | EMACS_INT junk; |
| 19442 | 19443 | ||
| 19443 | /* %c and %l are ignored in `frame-title-format'. */ | 19444 | /* %c and %l are ignored in `frame-title-format'. */ |
| @@ -19502,7 +19503,8 @@ decode_mode_spec (struct window *w, register int c, int field_width, | |||
| 19502 | EMACS_INT limit = BUF_BEGV (b); | 19503 | EMACS_INT limit = BUF_BEGV (b); |
| 19503 | EMACS_INT limit_byte = BUF_BEGV_BYTE (b); | 19504 | EMACS_INT limit_byte = BUF_BEGV_BYTE (b); |
| 19504 | EMACS_INT position; | 19505 | EMACS_INT position; |
| 19505 | int distance = (height * 2 + 30) * line_number_display_limit_width; | 19506 | EMACS_INT distance = |
| 19507 | (height * 2 + 30) * line_number_display_limit_width; | ||
| 19506 | 19508 | ||
| 19507 | if (startpos - distance > limit) | 19509 | if (startpos - distance > limit) |
| 19508 | { | 19510 | { |
| @@ -19705,17 +19707,17 @@ decode_mode_spec (struct window *w, register int c, int field_width, | |||
| 19705 | 19707 | ||
| 19706 | Set *BYTE_POS_PTR to 1 if we found COUNT lines, 0 if we hit LIMIT. */ | 19708 | Set *BYTE_POS_PTR to 1 if we found COUNT lines, 0 if we hit LIMIT. */ |
| 19707 | 19709 | ||
| 19708 | static int | 19710 | static EMACS_INT |
| 19709 | display_count_lines (EMACS_INT start_byte, | 19711 | display_count_lines (EMACS_INT start_byte, |
| 19710 | EMACS_INT limit_byte, int count, | 19712 | EMACS_INT limit_byte, EMACS_INT count, |
| 19711 | EMACS_INT *byte_pos_ptr) | 19713 | EMACS_INT *byte_pos_ptr) |
| 19712 | { | 19714 | { |
| 19713 | register unsigned char *cursor; | 19715 | register unsigned char *cursor; |
| 19714 | unsigned char *base; | 19716 | unsigned char *base; |
| 19715 | 19717 | ||
| 19716 | register int ceiling; | 19718 | register EMACS_INT ceiling; |
| 19717 | register unsigned char *ceiling_addr; | 19719 | register unsigned char *ceiling_addr; |
| 19718 | int orig_count = count; | 19720 | EMACS_INT orig_count = count; |
| 19719 | 19721 | ||
| 19720 | /* If we are not in selective display mode, | 19722 | /* If we are not in selective display mode, |
| 19721 | check only for newlines. */ | 19723 | check only for newlines. */ |