xstdout now handles its own buffer. flush prompts before printing result expression.

This commit is contained in:
Yuichi Nishiwaki 2014-02-21 01:28:38 +09:00
parent b1ae0cb14d
commit 8f5569d505
2 changed files with 3 additions and 3 deletions

View File

@ -15,8 +15,8 @@ struct pic_cont {
struct pic_block *blk;
size_t stk_len;
pic_value *stk_pos, *stk_ptr;
size_t stk_len;
pic_value *st_ptr;
size_t sp_offset, st_len;

View File

@ -136,9 +136,9 @@ repl(pic_state *pic)
}
/* print */
printf("=> ");
printf("=> "); fflush(stdout);
pic_debug(pic, v);
printf("\n");
printf("\n"); fflush(stdout);
vs = pic_cdr(pic, vs);
}