Mercurial > emacs
comparison src/ccl.c @ 107173:43af18bee02b
Fix the ccl decoder for the case that the output buffer is fullfilled.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 17 Feb 2010 15:52:12 +0900 |
parents | dfc03b454687 |
children | b465aa3255ed |
comparison
equal
deleted
inserted
replaced
107170:1f564d6c5e1d | 107173:43af18bee02b |
---|---|
880 /* Instruction counter of the current CCL code. */ | 880 /* Instruction counter of the current CCL code. */ |
881 int this_ic = 0; | 881 int this_ic = 0; |
882 struct charset *charset; | 882 struct charset *charset; |
883 int eof_ic = ccl->eof_ic; | 883 int eof_ic = ccl->eof_ic; |
884 int eof_hit = 0; | 884 int eof_hit = 0; |
885 | |
886 if (ic >= eof_ic) | |
887 ic = CCL_HEADER_MAIN; | |
888 | 885 |
889 if (ccl->buf_magnification == 0) /* We can't read/produce any bytes. */ | 886 if (ccl->buf_magnification == 0) /* We can't read/produce any bytes. */ |
890 dst = NULL; | 887 dst = NULL; |
891 | 888 |
892 /* Set mapping stack pointer. */ | 889 /* Set mapping stack pointer. */ |