=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/parse/parser.c,v retrieving revision 1.5 retrieving revision 1.8 diff -u -p -r1.5 -r1.8 --- OpenXM_contrib2/asir2000/parse/parser.c 2002/12/09 00:42:15 1.5 +++ OpenXM_contrib2/asir2000/parse/parser.c 2004/12/17 03:09:08 1.8 @@ -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.4 2001/09/04 03:12:20 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/parse/parser.c,v 1.7 2004/02/27 09:13:04 noro Exp $ */ #include #include "ca.h" @@ -55,6 +55,7 @@ extern int main_parser, allow_create_var; extern char *parse_strp; extern SNODE parse_snode; extern FUNC parse_targetf; +extern int outputstyle; int mainparse(snodep) SNODE *snodep; @@ -159,10 +160,14 @@ void read_eval_loop() { r1 = get_rtime(); if ( !ox_do_copy ) { if ( prresult ) { - if ( user_print_function ) + if ( user_print_function ) { bevalf(user_print_function,mknode(1,LastVal)); - else + fflush(asir_out); + } else printexpr(CO,LastVal); + if ( outputstyle == 1 ) { + putc(';',asir_out); + } putc('\n',asir_out); fflush(asir_out); }