diff options
author | Eli Zaretskii <eliz@gnu.org> | 2010-09-23 10:32:38 -0400 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2010-09-23 10:32:38 -0400 |
commit | 60c47f0cb2ffeb11983580a1195a6a57cf63f4bb (patch) | |
tree | daea085c15285960996531e0daa132b15f1d03fc /src/editfns.c | |
parent | a32f5cba20fe1829624e052196cf6adc597467f7 (diff) | |
download | emacs-60c47f0cb2ffeb11983580a1195a6a57cf63f4bb.tar.gz |
Fix more uses of int instead of EMACS_INT.
xdisp.c (check_point_in_composition, reconsider_clip_changes):
Use EMACS_INT for buffer position variables and arguments.
composite.c (get_composition_id, find_composition)
(run_composition_function, compose_text)
(composition_gstring_width, autocmp_chars)
(composition_update_it, Ffind_composition_internal): Use EMACS_INT
for buffer positions and string length variables and arguments.
composite.h (get_composition_id, find_composition, compose_text)
(composition_gstring_width): Adjust prototypes.
editfns.c (Fformat): Use EMACS_INT for string size variables.
xdisp.c (store_mode_line_noprop, display_mode_element): Use
EMACS_INT for string positions.
intervals.c (get_property_and_range): Use EMACS_INT for buffer
position arguments.
intervals.h (get_property_and_range): Adjust prototype.
character.c (parse_str_as_multibyte, str_as_multibyte)
(parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
(string_count_byte8, string_escape_byte8, c_string_width)
(strwidth, lisp_string_width, multibyte_chars_in_text): Use
EMACS_INT for string length variables and arguments.
(string_escape_byte8): Protect against too long strings.
character.h (parse_str_as_multibyte, str_as_multibyte)
(parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
(c_string_width, strwidth, lisp_string_width): Adjust
prototypes.
lisp.h (check_point_in_composition): Adjust prototype.
Diffstat (limited to 'src/editfns.c')
-rw-r--r-- | src/editfns.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c index 8822dec5101..33bd793a17d 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3609,7 +3609,7 @@ usage: (format STRING &rest OBJECTS) */) if (*format++ == '%') { int thissize = 0; - int actual_width = 0; + EMACS_INT actual_width = 0; unsigned char *this_format_start = format - 1; int field_width = 0; @@ -3851,8 +3851,8 @@ usage: (format STRING &rest OBJECTS) */) /* handle case (precision[n] >= 0) */ int width, padding; - int nbytes, start, end; - int nchars_string; + EMACS_INT nbytes, start, end; + EMACS_INT nchars_string; /* lisp_string_width ignores a precision of 0, but GNU libc functions print 0 characters when the precision @@ -3863,7 +3863,8 @@ usage: (format STRING &rest OBJECTS) */) if (precision[n] == 0) width = nchars_string = nbytes = 0; else if (precision[n] > 0) - width = lisp_string_width (args[n], precision[n], &nchars_string, &nbytes); + width = lisp_string_width (args[n], precision[n], + &nchars_string, &nbytes); else { /* no precision spec given for this argument */ width = lisp_string_width (args[n], -1, NULL, NULL); |