| version 1.7, 2004/02/27 09:13:04 |
version 1.8, 2004/12/17 03:09:08 |
|
|
| * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
| * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
| * |
* |
| * $OpenXM: OpenXM_contrib2/asir2000/parse/parser.c,v 1.6 2003/06/07 16:40:26 saito Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/parse/parser.c,v 1.7 2004/02/27 09:13:04 noro Exp $ |
| */ |
*/ |
| #include <ctype.h> |
#include <ctype.h> |
| #include "ca.h" |
#include "ca.h" |
| Line 147 void read_eval_loop() { |
|
| Line 147 void read_eval_loop() { |
|
| double r0,r1; |
double r0,r1; |
| double get_rtime(); |
double get_rtime(); |
| extern Obj LastVal; |
extern Obj LastVal; |
| extern int asir_texmacs; |
|
| |
|
| LastVal = 0; |
LastVal = 0; |
| while ( 1 ) { |
while ( 1 ) { |
| Line 166 void read_eval_loop() { |
|
| Line 165 void read_eval_loop() { |
|
| fflush(asir_out); |
fflush(asir_out); |
| } else |
} else |
| printexpr(CO,LastVal); |
printexpr(CO,LastVal); |
| if ( asir_texmacs ) printf("\2verbatim:"); |
|
| if ( outputstyle == 1 ) { |
if ( outputstyle == 1 ) { |
| putc(';',asir_out); |
putc(';',asir_out); |
| } |
} |
| putc('\n',asir_out); |
putc('\n',asir_out); |
| fflush(asir_out); |
fflush(asir_out); |
| if ( asir_texmacs ) { putchar('\5'); fflush(stdout); } |
|
| } |
} |
| if ( prtime ) { |
if ( prtime ) { |
| if ( asir_texmacs ) printf("\2verbatim:"); |
|
| printtime(&egt0,&egt1,r1-r0); |
printtime(&egt0,&egt1,r1-r0); |
| if ( asir_texmacs ) { putchar('\5'); fflush(stdout); } |
|
| } |
} |
| prompt(); |
prompt(); |
| } |
} |