=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/parse/parser.c,v retrieving revision 1.10 retrieving revision 1.12 diff -u -p -r1.10 -r1.12 --- OpenXM_contrib2/asir2000/parse/parser.c 2015/08/09 11:46:43 1.10 +++ 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.9 2008/09/04 01:42:26 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,7 +166,7 @@ void read_eval_loop() { if ( prresult ) { if ( user_print_function ) { bevalf(user_print_function,mknode(1,LastVal)); -#if !defined(__MINGW32__) && !defined(__MINGW64__) +#if !defined(__MINGW32__) fflush(asir_out); #endif } else @@ -173,14 +175,14 @@ void read_eval_loop() { putc(';',asir_out); } putc('\n',asir_out); -#if !defined(__MINGW32__) && !defined(__MINGW64__) +#if !defined(__MINGW32__) fflush(asir_out); #endif } if ( prtime ) { printtime(&egt0,&egt1,r1-r0); } -#if defined(__MINGW32__) || defined(__MINGW64__) +#if defined(__MINGW32__) fflush(asir_out); fflush(stderr); #endif