diff options
| author | Pavel Janík | 2001-11-09 08:02:08 +0000 |
|---|---|---|
| committer | Pavel Janík | 2001-11-09 08:02:08 +0000 |
| commit | fabf4a91cf08d2927b8eb3104d3c05da9ba0d771 (patch) | |
| tree | 0343a49620fdb10d0967cbe0d6516258bcf6e42f /src | |
| parent | a78e0303c9ff9a8a39700d9de91e54b9478a84af (diff) | |
| download | emacs-fabf4a91cf08d2927b8eb3104d3c05da9ba0d771.tar.gz emacs-fabf4a91cf08d2927b8eb3104d3c05da9ba0d771.zip | |
(encode_coding): Use precomputed value of `src'.
(encode_coding): Remove unused variable `src_end'.
(code_convert_region): Remove unused variables `count'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/coding.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5cee3a4b94b..4ac5ee52967 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -8,6 +8,10 @@ | |||
| 8 | 8 | ||
| 9 | * indent.c (current_column_1): Remove unused variable `prev_col'. | 9 | * indent.c (current_column_1): Remove unused variable `prev_col'. |
| 10 | 10 | ||
| 11 | * coding.c (encode_coding): Use precomputed value of `src'. | ||
| 12 | (encode_coding): Remove unused variable `src_end'. | ||
| 13 | (code_convert_region): Remove unused variables `count'. | ||
| 14 | |||
| 11 | 2001-11-07 Jason Rumney <jasonr@gnu.org> | 15 | 2001-11-07 Jason Rumney <jasonr@gnu.org> |
| 12 | 16 | ||
| 13 | * w32term.c (x_display_and_set_cursor): Do not move system caret | 17 | * w32term.c (x_display_and_set_cursor): Do not move system caret |
diff --git a/src/coding.c b/src/coding.c index f5122429553..6824df089a4 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -4827,7 +4827,6 @@ encode_coding (coding, source, destination, src_bytes, dst_bytes) | |||
| 4827 | && coding->result == CODING_FINISH_INSUFFICIENT_SRC) | 4827 | && coding->result == CODING_FINISH_INSUFFICIENT_SRC) |
| 4828 | { | 4828 | { |
| 4829 | unsigned char *src = source + coding->consumed; | 4829 | unsigned char *src = source + coding->consumed; |
| 4830 | unsigned char *src_end = src + src_bytes; | ||
| 4831 | unsigned char *dst = destination + coding->produced; | 4830 | unsigned char *dst = destination + coding->produced; |
| 4832 | 4831 | ||
| 4833 | if (coding->type == coding_type_iso2022) | 4832 | if (coding->type == coding_type_iso2022) |
| @@ -4838,7 +4837,7 @@ encode_coding (coding, source, destination, src_bytes, dst_bytes) | |||
| 4838 | { | 4837 | { |
| 4839 | int len = src_bytes - coding->consumed; | 4838 | int len = src_bytes - coding->consumed; |
| 4840 | 4839 | ||
| 4841 | BCOPY_SHORT (source + coding->consumed, dst, len); | 4840 | BCOPY_SHORT (src, dst, len); |
| 4842 | if (coding->src_multibyte) | 4841 | if (coding->src_multibyte) |
| 4843 | len = str_as_unibyte (dst, len); | 4842 | len = str_as_unibyte (dst, len); |
| 4844 | dst += len; | 4843 | dst += len; |
| @@ -5394,7 +5393,6 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace) | |||
| 5394 | new buffer. */ | 5393 | new buffer. */ |
| 5395 | struct buffer *prev = current_buffer; | 5394 | struct buffer *prev = current_buffer; |
| 5396 | Lisp_Object new; | 5395 | Lisp_Object new; |
| 5397 | int count = specpdl_ptr - specpdl; | ||
| 5398 | 5396 | ||
| 5399 | record_unwind_protect (code_convert_region_unwind, Qnil); | 5397 | record_unwind_protect (code_convert_region_unwind, Qnil); |
| 5400 | /* We should not call any more pre-write/post-read-conversion | 5398 | /* We should not call any more pre-write/post-read-conversion |
| @@ -5728,7 +5726,6 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace) | |||
| 5728 | && ! encodep && ! NILP (coding->post_read_conversion)) | 5726 | && ! encodep && ! NILP (coding->post_read_conversion)) |
| 5729 | { | 5727 | { |
| 5730 | Lisp_Object val; | 5728 | Lisp_Object val; |
| 5731 | int count = specpdl_ptr - specpdl; | ||
| 5732 | 5729 | ||
| 5733 | if (from != PT) | 5730 | if (from != PT) |
| 5734 | TEMP_SET_PT_BOTH (from, from_byte); | 5731 | TEMP_SET_PT_BOTH (from, from_byte); |