add pic_apply function (and remove pic_run)

This commit is contained in:
Yuichi Nishiwaki
2013-10-28 17:45:13 +09:00
parent 67c13b841c
commit 4fa2bad5fa
5 changed files with 35 additions and 13 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ main(int argc, char *argv[], char **envp)
pic->errmsg = NULL;
goto next;
}
v = pic_run(pic, proc, pic_nil_value());
v = pic_apply(pic, proc, pic_nil_value());
if (pic_undef_p(v)) {
printf("runtime error: %s\n", pic->errmsg);
pic->errmsg = NULL;