consumed_chars = consumed_bytes = 0;
produced_chars = 0;
- while (consumed_bytes < str_bytes)
+ while (1)
{
const unsigned char *p = SDATA (str) + consumed_bytes;
const unsigned char *endp = SDATA (str) + str_bytes;
{
ccl_driver (&ccl, src, destination, src_size, CCL_EXECUTE_BUF_SIZE,
Qnil);
- if (ccl.status != CCL_STAT_SUSPEND_BY_DST)
- break;
produced_chars += ccl.produced;
if (NILP (unibyte_p))
{
}
src += ccl.consumed;
src_size -= ccl.consumed;
+ if (ccl.status != CCL_STAT_SUSPEND_BY_DST)
+ break;
}
if (ccl.status != CCL_STAT_SUSPEND_BY_SRC)