From: Kenichi Handa Date: Tue, 18 Aug 1998 13:15:18 +0000 (+0000) Subject: If eof is encounterd while processing the X-Git-Tag: emacs-20.3~11 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4ccd0d4a7eaf395d0cc3da7199f062be4fb482f4;p=emacs.git If eof is encounterd while processing the last block, don't just finish but processes eol block of the current CCL program. (ccl_driver): Add a new jump label ccl_repeat for the above change. --- diff --git a/src/ccl.c b/src/ccl.c index a0a69d30f5b..b3d61f7863f 100644 --- a/src/ccl.c +++ b/src/ccl.c @@ -702,7 +702,7 @@ static tr_stack *mapping_stack_pointer; else if (ccl->last_block) \ { \ ic = ccl->eof_ic; \ - goto ccl_finish; \ + goto ccl_repeat; \ } \ else \ CCL_SUSPEND (CCL_STAT_SUSPEND_BY_SRC); \ @@ -757,6 +757,7 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed) for (;;) { + ccl_repeat: #ifdef CCL_DEBUG ccl_backtrace_table[ccl_backtrace_idx++] = ic; if (ccl_backtrace_idx >= CCL_DEBUG_BACKTRACE_LEN)