diff options
| author | Kenichi Handa | 2002-05-23 10:56:58 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-05-23 10:56:58 +0000 |
| commit | f9d71dcd0666e61a2277fb4de449528938429fbe (patch) | |
| tree | ed60eb89288a6b0e6cf47246478d6d80b27f6223 /src/coding.c | |
| parent | 7e4c04665ea748a8178cf9135c318e5a74c2b9d1 (diff) | |
| download | emacs-f9d71dcd0666e61a2277fb4de449528938429fbe.tar.gz emacs-f9d71dcd0666e61a2277fb4de449528938429fbe.zip | |
(Fdefine_coding_system_internal): Fix previous change.
(decode_coding_charset): Workaround for the bug of GCC 2.96.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/coding.c b/src/coding.c index a36f877d80c..c98e467369d 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -4346,10 +4346,11 @@ decode_coding_charset (coding) | |||
| 4346 | { | 4346 | { |
| 4347 | charset = CHARSET_FROM_ID (XFASTINT (val)); | 4347 | charset = CHARSET_FROM_ID (XFASTINT (val)); |
| 4348 | dim = CHARSET_DIMENSION (charset); | 4348 | dim = CHARSET_DIMENSION (charset); |
| 4349 | while (len++ < dim) | 4349 | while (len < dim) |
| 4350 | { | 4350 | { |
| 4351 | ONE_MORE_BYTE (c); | 4351 | ONE_MORE_BYTE (c); |
| 4352 | code = (code << 8) | c; | 4352 | code = (code << 8) | c; |
| 4353 | len++; | ||
| 4353 | } | 4354 | } |
| 4354 | CODING_DECODE_CHAR (coding, src, src_base, src_end, | 4355 | CODING_DECODE_CHAR (coding, src, src_base, src_end, |
| 4355 | charset, code, c); | 4356 | charset, code, c); |
| @@ -4363,10 +4364,11 @@ decode_coding_charset (coding) | |||
| 4363 | { | 4364 | { |
| 4364 | charset = CHARSET_FROM_ID (XFASTINT (XCAR (val))); | 4365 | charset = CHARSET_FROM_ID (XFASTINT (XCAR (val))); |
| 4365 | dim = CHARSET_DIMENSION (charset); | 4366 | dim = CHARSET_DIMENSION (charset); |
| 4366 | while (len++ < dim) | 4367 | while (len < dim) |
| 4367 | { | 4368 | { |
| 4368 | ONE_MORE_BYTE (c); | 4369 | ONE_MORE_BYTE (c); |
| 4369 | code = (code << 8) | c; | 4370 | code = (code << 8) | c; |
| 4371 | len++; | ||
| 4370 | } | 4372 | } |
| 4371 | CODING_DECODE_CHAR (coding, src, src_base, | 4373 | CODING_DECODE_CHAR (coding, src, src_base, |
| 4372 | src_end, charset, code, c); | 4374 | src_end, charset, code, c); |
| @@ -7420,9 +7422,9 @@ usage: (define-coding-system-internal ...) */) | |||
| 7420 | { | 7422 | { |
| 7421 | dim2 = CHARSET_DIMENSION (CHARSET_FROM_ID (XFASTINT (tmp))); | 7423 | dim2 = CHARSET_DIMENSION (CHARSET_FROM_ID (XFASTINT (tmp))); |
| 7422 | if (dim < dim2) | 7424 | if (dim < dim2) |
| 7423 | tmp = Fcons (tmp, Fcons (XCAR (tail), Qnil)); | ||
| 7424 | else | ||
| 7425 | tmp = Fcons (XCAR (tail), Fcons (tmp, Qnil)); | 7425 | tmp = Fcons (XCAR (tail), Fcons (tmp, Qnil)); |
| 7426 | else | ||
| 7427 | tmp = Fcons (tmp, Fcons (XCAR (tail), Qnil)); | ||
| 7426 | } | 7428 | } |
| 7427 | else | 7429 | else |
| 7428 | { | 7430 | { |