comparison src/coding.c @ 56595:40a0843be50a

(decode_coding_string): Adjust coding->consumed, and etc. with shrinked_bytes.
author Kenichi Handa <handa@m17n.org>
date Tue, 03 Aug 2004 05:12:00 +0000
parents 75f56340b4f9
children 9093a2e9c3fd 4a196c3bd2d8
comparison
equal deleted inserted replaced
56594:5b9242222549 56595:40a0843be50a
6236 STRING_COPYIN (newstr, from + produced, 6236 STRING_COPYIN (newstr, from + produced,
6237 SDATA (str) + to_byte, 6237 SDATA (str) + to_byte,
6238 shrinked_bytes - from); 6238 shrinked_bytes - from);
6239 free_conversion_buffer (&buf); 6239 free_conversion_buffer (&buf);
6240 6240
6241 coding->consumed += shrinked_bytes;
6242 coding->consumed_char += shrinked_bytes;
6243 coding->produced += shrinked_bytes;
6244 coding->produced_char += shrinked_bytes;
6245
6241 if (coding->cmp_data && coding->cmp_data->used) 6246 if (coding->cmp_data && coding->cmp_data->used)
6242 coding_restore_composition (coding, newstr); 6247 coding_restore_composition (coding, newstr);
6243 coding_free_composition_data (coding); 6248 coding_free_composition_data (coding);
6244 6249
6245 if (SYMBOLP (coding->post_read_conversion) 6250 if (SYMBOLP (coding->post_read_conversion)