diff options
| author | Dave Love | 2002-07-16 15:10:13 +0000 |
|---|---|---|
| committer | Dave Love | 2002-07-16 15:10:13 +0000 |
| commit | c197f19176afbe41be47d9667ef921c16d891b7c (patch) | |
| tree | a55324eb6915018bf9495bd2d11002947ae84f8c /src/coding.c | |
| parent | 16fed1fc8696eebc0d61a792691fa915e51db866 (diff) | |
| download | emacs-c197f19176afbe41be47d9667ef921c16d891b7c.tar.gz emacs-c197f19176afbe41be47d9667ef921c16d891b7c.zip | |
(ENCODE_DESIGNATION, decode_eol)
(make_conversion_work_buffer, code_conversion_restore)
(Fdefine_coding_system_internal): Convert Lisp types.
(code_conversion_restore): Use EQ, not ==.
(Fencode_coding_string): Fix code_convert_string call.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/coding.c b/src/coding.c index be8bff4fedb..f9dd3f87742 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -3124,7 +3124,7 @@ decode_coding_iso_2022 (coding) | |||
| 3124 | int c; \ | 3124 | int c; \ |
| 3125 | \ | 3125 | \ |
| 3126 | if (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_REVISION) \ | 3126 | if (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_REVISION) \ |
| 3127 | revision = XINT (CHARSET_ISO_REVISION (charset)); \ | 3127 | revision = CHARSET_ISO_REVISION (charset); \ |
| 3128 | \ | 3128 | \ |
| 3129 | if (revision >= 0) \ | 3129 | if (revision >= 0) \ |
| 3130 | { \ | 3130 | { \ |
| @@ -5128,7 +5128,7 @@ decode_eol (coding) | |||
| 5128 | coding->dst_pos_byte + coding->produced); | 5128 | coding->dst_pos_byte + coding->produced); |
| 5129 | undo_list = current_buffer->undo_list; | 5129 | undo_list = current_buffer->undo_list; |
| 5130 | current_buffer->undo_list = Qt; | 5130 | current_buffer->undo_list = Qt; |
| 5131 | del_range_2 (coding->dst_pos, coding->dst_pos_byte, GPT, GPT_BYTE, Qnil); | 5131 | del_range_2 (coding->dst_pos, coding->dst_pos_byte, GPT, GPT_BYTE, 0); |
| 5132 | current_buffer->undo_list = undo_list; | 5132 | current_buffer->undo_list = undo_list; |
| 5133 | pbeg = GPT_ADDR; | 5133 | pbeg = GPT_ADDR; |
| 5134 | pend = pbeg + coding->produced; | 5134 | pend = pbeg + coding->produced; |
| @@ -5783,7 +5783,7 @@ make_conversion_work_buffer (multibytep) | |||
| 5783 | } | 5783 | } |
| 5784 | else | 5784 | else |
| 5785 | { | 5785 | { |
| 5786 | int depth = Flength (Vcode_conversion_work_buf_list); | 5786 | int depth = XINT (Flength (Vcode_conversion_work_buf_list)); |
| 5787 | char str[128]; | 5787 | char str[128]; |
| 5788 | 5788 | ||
| 5789 | sprintf (str, " *code-conversion-work*<%d>", depth); | 5789 | sprintf (str, " *code-conversion-work*<%d>", depth); |
| @@ -5807,7 +5807,7 @@ Lisp_Object | |||
| 5807 | code_conversion_restore (info) | 5807 | code_conversion_restore (info) |
| 5808 | Lisp_Object info; | 5808 | Lisp_Object info; |
| 5809 | { | 5809 | { |
| 5810 | int depth = Flength (Vcode_conversion_work_buf_list); | 5810 | int depth = XINT (Flength (Vcode_conversion_work_buf_list)); |
| 5811 | Lisp_Object buf; | 5811 | Lisp_Object buf; |
| 5812 | 5812 | ||
| 5813 | if (depth > 0) | 5813 | if (depth > 0) |
| @@ -5818,7 +5818,7 @@ code_conversion_restore (info) | |||
| 5818 | Fkill_buffer (buf); | 5818 | Fkill_buffer (buf); |
| 5819 | } | 5819 | } |
| 5820 | 5820 | ||
| 5821 | if (saved_coding->dst_object == Qt | 5821 | if (EQ (saved_coding->dst_object, Qt) |
| 5822 | && saved_coding->destination) | 5822 | && saved_coding->destination) |
| 5823 | xfree (saved_coding->destination); | 5823 | xfree (saved_coding->destination); |
| 5824 | 5824 | ||
| @@ -6878,7 +6878,7 @@ not fully specified.) */) | |||
| 6878 | Lisp_Object string, coding_system, nocopy, buffer; | 6878 | Lisp_Object string, coding_system, nocopy, buffer; |
| 6879 | { | 6879 | { |
| 6880 | return code_convert_string (string, coding_system, buffer, | 6880 | return code_convert_string (string, coding_system, buffer, |
| 6881 | nocopy, ! NILP (nocopy), 1); | 6881 | 1, ! NILP (nocopy), 1); |
| 6882 | } | 6882 | } |
| 6883 | 6883 | ||
| 6884 | 6884 | ||
| @@ -7493,7 +7493,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 7493 | { | 7493 | { |
| 7494 | val = Fcar (tail); | 7494 | val = Fcar (tail); |
| 7495 | if (INTEGERP (val)) | 7495 | if (INTEGERP (val)) |
| 7496 | ASET (valids, XINT (val), 1); | 7496 | ASET (valids, XINT (val), make_number (1)); |
| 7497 | else | 7497 | else |
| 7498 | { | 7498 | { |
| 7499 | int from, to; | 7499 | int from, to; |
| @@ -7504,7 +7504,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 7504 | from = XINT (XCAR (val)); | 7504 | from = XINT (XCAR (val)); |
| 7505 | to = XINT (XCDR (val)); | 7505 | to = XINT (XCDR (val)); |
| 7506 | for (i = from; i <= to; i++) | 7506 | for (i = from; i <= to; i++) |
| 7507 | ASET (valids, i, 1); | 7507 | ASET (valids, i, make_number (1)); |
| 7508 | } | 7508 | } |
| 7509 | } | 7509 | } |
| 7510 | ASET (attrs, coding_attr_ccl_valids, valids); | 7510 | ASET (attrs, coding_attr_ccl_valids, valids); |