diff options
| author | Dave Love | 2003-02-13 22:23:01 +0000 |
|---|---|---|
| committer | Dave Love | 2003-02-13 22:23:01 +0000 |
| commit | e1c23804883fb7651f46c51379637e48187849ad (patch) | |
| tree | 9fe4f72295f59227895160dab697107b7a3efbe1 /src/coding.c | |
| parent | d69d25917677bc720864dd02203df1738c71bde1 (diff) | |
| download | emacs-e1c23804883fb7651f46c51379637e48187849ad.tar.gz emacs-e1c23804883fb7651f46c51379637e48187849ad.zip | |
(Fcheck_coding_systems_region): Fix type errors.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/coding.c b/src/coding.c index cd44b246981..88f7c3f386f 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -5440,7 +5440,7 @@ produce_chars (coding) | |||
| 5440 | produced_chars++; | 5440 | produced_chars++; |
| 5441 | } | 5441 | } |
| 5442 | else | 5442 | else |
| 5443 | /* This is an annotation data. */ | 5443 | /* This is an annotation datum. */ |
| 5444 | buf -= c + 1; | 5444 | buf -= c + 1; |
| 5445 | } | 5445 | } |
| 5446 | } | 5446 | } |
| @@ -5816,7 +5816,7 @@ decode_coding (coding) | |||
| 5816 | } | 5816 | } |
| 5817 | 5817 | ||
| 5818 | 5818 | ||
| 5819 | /* Extract an annotation data from a composition starting at POS and | 5819 | /* Extract an annotation datum from a composition starting at POS and |
| 5820 | ending before LIMIT of CODING->src_object (buffer or string), store | 5820 | ending before LIMIT of CODING->src_object (buffer or string), store |
| 5821 | the data in BUF, set *STOP to a starting position of the next | 5821 | the data in BUF, set *STOP to a starting position of the next |
| 5822 | composition (if any) or to LIMIT, and return the address of the | 5822 | composition (if any) or to LIMIT, and return the address of the |
| @@ -5902,7 +5902,7 @@ handle_composition_annotation (pos, limit, coding, buf, stop) | |||
| 5902 | } | 5902 | } |
| 5903 | 5903 | ||
| 5904 | 5904 | ||
| 5905 | /* Extract an annotation data from a text property `charset' at POS of | 5905 | /* Extract an annotation datum from a text property `charset' at POS of |
| 5906 | CODING->src_object (buffer of string), store the data in BUF, set | 5906 | CODING->src_object (buffer of string), store the data in BUF, set |
| 5907 | *STOP to the position where the value of `charset' property changes | 5907 | *STOP to the position where the value of `charset' property changes |
| 5908 | (limiting by LIMIT), and return the address of the next element of | 5908 | (limiting by LIMIT), and return the address of the next element of |
| @@ -6900,12 +6900,12 @@ DEFUN ("find-coding-systems-region-internal", | |||
| 6900 | if (XINT (end) - XINT (start) == end_byte - start_byte) | 6900 | if (XINT (end) - XINT (start) == end_byte - start_byte) |
| 6901 | return Qt; | 6901 | return Qt; |
| 6902 | 6902 | ||
| 6903 | if (start < GPT && end > GPT) | 6903 | if (XINT (start) < GPT && XINT (end) > GPT) |
| 6904 | { | 6904 | { |
| 6905 | if ((GPT - start) < (end - GPT)) | 6905 | if ((GPT - XINT (start)) < (XINT (end) - GPT)) |
| 6906 | move_gap_both (start, start_byte); | 6906 | move_gap_both (XINT (start), start_byte); |
| 6907 | else | 6907 | else |
| 6908 | move_gap_both (end, end_byte); | 6908 | move_gap_both (XINT (end), end_byte); |
| 6909 | } | 6909 | } |
| 6910 | } | 6910 | } |
| 6911 | 6911 | ||
| @@ -7031,14 +7031,14 @@ buffer positions. END is ignored. */) | |||
| 7031 | if (XINT (end) - XINT (start) == end_byte - start_byte) | 7031 | if (XINT (end) - XINT (start) == end_byte - start_byte) |
| 7032 | return Qt; | 7032 | return Qt; |
| 7033 | 7033 | ||
| 7034 | if (start < GPT && end > GPT) | 7034 | if (XINT (start) < GPT && XINT (end) > GPT) |
| 7035 | { | 7035 | { |
| 7036 | if ((GPT - start) < (end - GPT)) | 7036 | if ((GPT - XINT (start)) < (XINT (end) - GPT)) |
| 7037 | move_gap_both (start, start_byte); | 7037 | move_gap_both (XINT (start), start_byte); |
| 7038 | else | 7038 | else |
| 7039 | move_gap_both (end, end_byte); | 7039 | move_gap_both (XINT (end), end_byte); |
| 7040 | } | 7040 | } |
| 7041 | pos = start; | 7041 | pos = XINT (start); |
| 7042 | } | 7042 | } |
| 7043 | 7043 | ||
| 7044 | list = Qnil; | 7044 | list = Qnil; |
| @@ -8187,7 +8187,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 8187 | } | 8187 | } |
| 8188 | 8188 | ||
| 8189 | /* Fixme: should this record the alias relationships for | 8189 | /* Fixme: should this record the alias relationships for |
| 8190 | diagnostics? */ | 8190 | diagnostics? Should it update coding-system-list? */ |
| 8191 | DEFUN ("define-coding-system-alias", Fdefine_coding_system_alias, | 8191 | DEFUN ("define-coding-system-alias", Fdefine_coding_system_alias, |
| 8192 | Sdefine_coding_system_alias, 2, 2, 0, | 8192 | Sdefine_coding_system_alias, 2, 2, 0, |
| 8193 | doc: /* Define ALIAS as an alias for CODING-SYSTEM. */) | 8193 | doc: /* Define ALIAS as an alias for CODING-SYSTEM. */) |