diff options
| author | Kenichi Handa | 2002-03-05 00:08:50 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-03-05 00:08:50 +0000 |
| commit | 0be8721c15d288d1977291469fa3f12cdd527cc0 (patch) | |
| tree | c09549091527735d81c2e7857378bfbf0cda9866 /src/coding.c | |
| parent | 22d49f94bde4da2f582a3ad77e2f70fb4d6370da (diff) | |
| download | emacs-0be8721c15d288d1977291469fa3f12cdd527cc0.tar.gz emacs-0be8721c15d288d1977291469fa3f12cdd527cc0.zip | |
* coding.c: Delete unused variables.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/coding.c b/src/coding.c index a5104c5909c..1c6a84d6f8d 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -1271,7 +1271,7 @@ decode_coding_utf_16 (coding) | |||
| 1271 | { | 1271 | { |
| 1272 | unsigned char *src = coding->source + coding->consumed; | 1272 | unsigned char *src = coding->source + coding->consumed; |
| 1273 | unsigned char *src_end = coding->source + coding->src_bytes; | 1273 | unsigned char *src_end = coding->source + coding->src_bytes; |
| 1274 | unsigned char *src_base, *surrogate_high_base; | 1274 | unsigned char *src_base; |
| 1275 | int *charbuf = coding->charbuf; | 1275 | int *charbuf = coding->charbuf; |
| 1276 | int *charbuf_end = charbuf + coding->charbuf_size; | 1276 | int *charbuf_end = charbuf + coding->charbuf_size; |
| 1277 | int consumed_chars = 0, consumed_chars_base; | 1277 | int consumed_chars = 0, consumed_chars_base; |
| @@ -1943,7 +1943,6 @@ encode_coding_emacs_mule (coding) | |||
| 1943 | unsigned char *dst = coding->destination + coding->produced; | 1943 | unsigned char *dst = coding->destination + coding->produced; |
| 1944 | unsigned char *dst_end = coding->destination + coding->dst_bytes; | 1944 | unsigned char *dst_end = coding->destination + coding->dst_bytes; |
| 1945 | int safe_room = 8; | 1945 | int safe_room = 8; |
| 1946 | unsigned char *adjusted_dst_end =dst_end - 8; | ||
| 1947 | int produced_chars = 0; | 1946 | int produced_chars = 0; |
| 1948 | Lisp_Object attrs, eol_type, charset_list; | 1947 | Lisp_Object attrs, eol_type, charset_list; |
| 1949 | int c; | 1948 | int c; |
| @@ -4413,7 +4412,6 @@ setup_coding_system (coding_system, coding) | |||
| 4413 | Lisp_Object coding_system; | 4412 | Lisp_Object coding_system; |
| 4414 | struct coding_system *coding; | 4413 | struct coding_system *coding; |
| 4415 | { | 4414 | { |
| 4416 | int id; | ||
| 4417 | Lisp_Object attrs; | 4415 | Lisp_Object attrs; |
| 4418 | Lisp_Object eol_type; | 4416 | Lisp_Object eol_type; |
| 4419 | Lisp_Object coding_type; | 4417 | Lisp_Object coding_type; |
| @@ -4581,7 +4579,7 @@ Lisp_Object | |||
| 4581 | raw_text_coding_system (coding_system) | 4579 | raw_text_coding_system (coding_system) |
| 4582 | Lisp_Object coding_system; | 4580 | Lisp_Object coding_system; |
| 4583 | { | 4581 | { |
| 4584 | Lisp_Object spec, attrs, coding_type; | 4582 | Lisp_Object spec, attrs; |
| 4585 | Lisp_Object eol_type, raw_text_eol_type; | 4583 | Lisp_Object eol_type, raw_text_eol_type; |
| 4586 | 4584 | ||
| 4587 | spec = CODING_SYSTEM_SPEC (coding_system); | 4585 | spec = CODING_SYSTEM_SPEC (coding_system); |
| @@ -4616,7 +4614,6 @@ coding_inherit_eol_type (coding_system, parent) | |||
| 4616 | if (VECTORP (eol_type)) | 4614 | if (VECTORP (eol_type)) |
| 4617 | { | 4615 | { |
| 4618 | Lisp_Object parent_spec; | 4616 | Lisp_Object parent_spec; |
| 4619 | Lisp_Object parent_attrs; | ||
| 4620 | Lisp_Object parent_eol_type; | 4617 | Lisp_Object parent_eol_type; |
| 4621 | 4618 | ||
| 4622 | parent_spec | 4619 | parent_spec |
| @@ -4763,7 +4760,6 @@ detect_eol (coding, source, src_bytes) | |||
| 4763 | unsigned char c; | 4760 | unsigned char c; |
| 4764 | int total = 0; | 4761 | int total = 0; |
| 4765 | int eol_seen = EOL_SEEN_NONE; | 4762 | int eol_seen = EOL_SEEN_NONE; |
| 4766 | int first_eol_seen; | ||
| 4767 | 4763 | ||
| 4768 | attrs = CODING_ID_ATTRS (coding->id); | 4764 | attrs = CODING_ID_ATTRS (coding->id); |
| 4769 | coding_type = CODING_ATTR_TYPE (attrs); | 4765 | coding_type = CODING_ATTR_TYPE (attrs); |
| @@ -4845,7 +4841,7 @@ adjust_coding_eol_type (coding, eol_seen) | |||
| 4845 | struct coding_system *coding; | 4841 | struct coding_system *coding; |
| 4846 | int eol_seen; | 4842 | int eol_seen; |
| 4847 | { | 4843 | { |
| 4848 | Lisp_Object eol_type, coding_system; | 4844 | Lisp_Object eol_type; |
| 4849 | 4845 | ||
| 4850 | eol_type = CODING_ID_EOL_TYPE (coding->id); | 4846 | eol_type = CODING_ID_EOL_TYPE (coding->id); |
| 4851 | if (eol_seen & EOL_SEEN_LF) | 4847 | if (eol_seen & EOL_SEEN_LF) |
| @@ -5576,7 +5572,6 @@ static int | |||
| 5576 | encode_coding (coding) | 5572 | encode_coding (coding) |
| 5577 | struct coding_system *coding; | 5573 | struct coding_system *coding; |
| 5578 | { | 5574 | { |
| 5579 | int error = 0; | ||
| 5580 | Lisp_Object attrs; | 5575 | Lisp_Object attrs; |
| 5581 | 5576 | ||
| 5582 | attrs = CODING_ID_ATTRS (coding->id); | 5577 | attrs = CODING_ID_ATTRS (coding->id); |
| @@ -6286,7 +6281,6 @@ char_encodable_p (c, attrs) | |||
| 6286 | Lisp_Object attrs; | 6281 | Lisp_Object attrs; |
| 6287 | { | 6282 | { |
| 6288 | Lisp_Object tail; | 6283 | Lisp_Object tail; |
| 6289 | int id; | ||
| 6290 | struct charset *charset; | 6284 | struct charset *charset; |
| 6291 | 6285 | ||
| 6292 | for (tail = CODING_ATTR_CHARSET_LIST (attrs); | 6286 | for (tail = CODING_ATTR_CHARSET_LIST (attrs); |
| @@ -6693,7 +6687,7 @@ code_convert_string_norecord (string, coding_system, encodep) | |||
| 6693 | Lisp_Object string, coding_system; | 6687 | Lisp_Object string, coding_system; |
| 6694 | int encodep; | 6688 | int encodep; |
| 6695 | { | 6689 | { |
| 6696 | code_convert_string (string, coding_system, Qt, encodep, 0, 1); | 6690 | return code_convert_string (string, coding_system, Qt, encodep, 0, 1); |
| 6697 | } | 6691 | } |
| 6698 | 6692 | ||
| 6699 | 6693 | ||
| @@ -7349,7 +7343,7 @@ DEFUN ("define-coding-system-internal", Fdefine_coding_system_internal, | |||
| 7349 | { | 7343 | { |
| 7350 | Lisp_Object initial, reg_usage, request, flags; | 7344 | Lisp_Object initial, reg_usage, request, flags; |
| 7351 | struct charset *charset; | 7345 | struct charset *charset; |
| 7352 | int i, id, max_id = -1; | 7346 | int i, id; |
| 7353 | 7347 | ||
| 7354 | if (nargs < coding_arg_iso2022_max) | 7348 | if (nargs < coding_arg_iso2022_max) |
| 7355 | goto short_args; | 7349 | goto short_args; |