Checking for utf8 encoding exceptions in read/peek-char.

This commit is contained in:
Alex Shinn 2012-10-13 21:59:38 +09:00
parent fc1a1bd393
commit 60c96d76a4

2
vm.c
View file

@ -2022,6 +2022,7 @@ sexp sexp_apply (sexp ctx, sexp proc, sexp args) {
if (i == '\n') sexp_port_line(_ARG1)++;
_ARG1 = sexp_make_character(i);
}
sexp_check_exception();
break;
case SEXP_OP_PEEK_CHAR:
if (! sexp_iportp(_ARG1))
@ -2047,6 +2048,7 @@ sexp sexp_apply (sexp ctx, sexp proc, sexp args) {
sexp_push_char(ctx, i, _ARG1);
_ARG1 = sexp_make_character(i);
}
sexp_check_exception();
break;
case SEXP_OP_YIELD:
#if SEXP_USE_GREEN_THREADS