=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/parse/parser.c,v retrieving revision 1.9 retrieving revision 1.12 diff -u -p -r1.9 -r1.12 --- OpenXM_contrib2/asir2000/parse/parser.c 2008/09/04 01:42:26 1.9 +++ OpenXM_contrib2/asir2000/parse/parser.c 2018/03/28 05:27:22 1.12 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/parse/parser.c,v 1.8 2004/12/17 03:09:08 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/parse/parser.c,v 1.11 2015/08/14 13:51:56 fujimoto Exp $ */ #include #include "ca.h" @@ -141,6 +141,7 @@ int exprparse_create_var(FUNC f,char *str,SNODE *statp } extern FUNC user_print_function; +extern f_break,f_continue,f_return; void read_eval_loop() { struct oEGT egt0,egt1; @@ -157,6 +158,7 @@ void read_eval_loop() { get_eg(&egt0); r0 = get_rtime(); LastVal = evalstat(snode); + f_break = f_continue = f_return = 0; storeans(LastVal); get_eg(&egt1); r1 = get_rtime(); @@ -164,18 +166,26 @@ void read_eval_loop() { if ( prresult ) { if ( user_print_function ) { bevalf(user_print_function,mknode(1,LastVal)); +#if !defined(__MINGW32__) fflush(asir_out); +#endif } else printexpr(CO,LastVal); if ( outputstyle == 1 ) { putc(';',asir_out); } putc('\n',asir_out); +#if !defined(__MINGW32__) fflush(asir_out); +#endif } if ( prtime ) { printtime(&egt0,&egt1,r1-r0); } +#if defined(__MINGW32__) + fflush(asir_out); + fflush(stderr); +#endif prompt(); } }