Skip to content

Commit

Permalink
mrdb, mirb: Add fflush() so that a external program can read output i…
Browse files Browse the repository at this point in the history
…mmediately.
  • Loading branch information
sdottaka committed Dec 19, 2014
1 parent 2732879 commit 9a0fb6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c
Expand Up @@ -480,6 +480,7 @@ get_and_parse_command(mrb_state *mrb, mrdb_state *mrdb)
while (!cmd) {
for (p=NULL; !p || *p=='\0'; ) {
printf("(%s:%d) ", mrdb->dbg->prvfile, mrdb->dbg->prvline);
fflush(stdout);
p = get_command(mrb, mrdb);
}

Expand Down
1 change: 1 addition & 0 deletions mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
Expand Up @@ -281,6 +281,7 @@ print_cmdline(int code_block_open)
else {
printf("> ");
}
fflush(stdout);
}
#endif

Expand Down

0 comments on commit 9a0fb6f

Please sign in to comment.