diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ccl.c | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -2167,13 +2167,15 @@ usage: (ccl-execute-on-string CCL-PROGRAM STATUS STRING &optional CONTINUE UNIBY | |||
| 2167 | break; | 2167 | break; |
| 2168 | } | 2168 | } |
| 2169 | 2169 | ||
| 2170 | if (ccl.status != CCL_STAT_SUSPEND_BY_SRC) | 2170 | if (ccl.status != CCL_STAT_SUSPEND_BY_SRC |
| 2171 | || str_chars == consumed_chars) | ||
| 2171 | break; | 2172 | break; |
| 2172 | } | 2173 | } |
| 2173 | 2174 | ||
| 2174 | if (ccl.status != CCL_STAT_SUCCESS | 2175 | if (ccl.status == CCL_STAT_INVALID_CMD) |
| 2175 | && ccl.status != CCL_STAT_SUSPEND_BY_SRC) | ||
| 2176 | error ("Error in CCL program at %dth code", ccl.ic); | 2176 | error ("Error in CCL program at %dth code", ccl.ic); |
| 2177 | if (ccl.status == CCL_STAT_QUIT) | ||
| 2178 | error ("CCL program interrupted at %dth code", ccl.ic); | ||
| 2177 | 2179 | ||
| 2178 | for (i = 0; i < 8; i++) | 2180 | for (i = 0; i < 8; i++) |
| 2179 | ASET (status, i, make_number (ccl.reg[i])); | 2181 | ASET (status, i, make_number (ccl.reg[i])); |