]> git.eshelyaron.com Git - emacs.git/commitdiff
If eof is encounterd while processing the
authorKenichi Handa <handa@m17n.org>
Tue, 18 Aug 1998 13:15:18 +0000 (13:15 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 18 Aug 1998 13:15:18 +0000 (13:15 +0000)
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.

src/ccl.c

index a0a69d30f5bc15535490f13ec1a407f7e4b112b2..b3d61f7863fe5806bc4d554d28ab872d70f39291 100644 (file)
--- 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)