diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-02-12 21:35:15 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-02-12 21:35:15 +0000 |
commit | 13818c30785d1253412c4e08c61417eb81a98c5b (patch) | |
tree | f5fa90cff90bb458801514d30546ba9538d3af0a /src/character.c | |
parent | 8b8bf8e68f19cdbe07521fa2d3c563265b27bd94 (diff) | |
download | emacs-13818c30785d1253412c4e08c61417eb81a98c5b.tar.gz |
* coding.c (coding_set_destination): Use BEG_BYTE rather than hardcoding 1.
(detect_coding_system):
* lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
(string_char_to_byte, string_byte_to_char, insert_from_gap):
* insdel.c (insert_from_gap):
* fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
(string_char_to_byte, string_byte_to_char, string_make_multibyte)
(string_to_multibyte):
* character.c (chars_in_text, multibyte_chars_in_text):
* fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
Diffstat (limited to 'src/character.c')
-rw-r--r-- | src/character.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/character.c b/src/character.c index 98256c9f9e2..9fa4dffc11f 100644 --- a/src/character.c +++ b/src/character.c @@ -568,10 +568,10 @@ The returned value is 0 for left-to-right and 1 for right-to-left. */) However, if the current buffer has enable-multibyte-characters = nil, we treat each byte as a character. */ -int +EMACS_INT chars_in_text (ptr, nbytes) const unsigned char *ptr; - int nbytes; + EMACS_INT nbytes; { /* current_buffer is null at early stages of Emacs initialization. */ if (current_buffer == 0 @@ -586,10 +586,10 @@ chars_in_text (ptr, nbytes) sequences while assuming that there's no invalid sequence. It ignores enable-multibyte-characters. */ -int +EMACS_INT multibyte_chars_in_text (ptr, nbytes) const unsigned char *ptr; - int nbytes; + EMACS_INT nbytes; { const unsigned char *endp = ptr + nbytes; int chars = 0; |