Mercurial > emacs
comparison src/coding.c @ 92406:c36bda0a03cc
(decode_coding_big5, produce_chars): Fix typos in last
change.
| author | Andreas Schwab <schwab@suse.de> |
|---|---|
| date | Sun, 02 Mar 2008 19:56:45 +0000 |
| parents | fbc07b3a6baf |
| children | 5f5f07a5c076 |
comparison
equal
deleted
inserted
replaced
| 92405:39695256e402 | 92406:c36bda0a03cc |
|---|---|
| 4262 | 4262 |
| 4263 if (charbuf >= charbuf_end) | 4263 if (charbuf >= charbuf_end) |
| 4264 break; | 4264 break; |
| 4265 | 4265 |
| 4266 if (byte_after_cr >= 0) | 4266 if (byte_after_cr >= 0) |
| 4267 c1 = byte_after_cr, byte_after_cr = -1; | 4267 c = byte_after_cr, byte_after_cr = -1; |
| 4268 else | 4268 else |
| 4269 ONE_MORE_BYTE (c); | 4269 ONE_MORE_BYTE (c); |
| 4270 | 4270 |
| 4271 if (c < 0) | 4271 if (c < 0) |
| 4272 goto invalid_code; | 4272 goto invalid_code; |
| 4273 if (c < 0x80) | 4273 if (c < 0x80) |
| 4274 { | 4274 { |
| 4275 if (eol_crlf && c1 == '\r') | 4275 if (eol_crlf && c == '\r') |
| 4276 ONE_MORE_BYTE (byte_after_cr); | 4276 ONE_MORE_BYTE (byte_after_cr); |
| 4277 charset = charset_roman; | 4277 charset = charset_roman; |
| 4278 } | 4278 } |
| 4279 else | 4279 else |
| 4280 { | 4280 { |
| 6106 src_end = coding->source + coding->src_bytes; | 6106 src_end = coding->source + coding->src_bytes; |
| 6107 } | 6107 } |
| 6108 } | 6108 } |
| 6109 produced_chars = coding->consumed_char; | 6109 produced_chars = coding->consumed_char; |
| 6110 while (src < src_end) | 6110 while (src < src_end) |
| 6111 *dst += *src++; | 6111 *dst++ = *src++; |
| 6112 } | 6112 } |
| 6113 } | 6113 } |
| 6114 | 6114 |
| 6115 produced = dst - (coding->destination + coding->produced); | 6115 produced = dst - (coding->destination + coding->produced); |
| 6116 if (BUFFERP (coding->dst_object) && produced_chars > 0) | 6116 if (BUFFERP (coding->dst_object) && produced_chars > 0) |
