[BACK]Return to parser.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / parse

Diff for /OpenXM_contrib2/asir2000/parse/parser.c between version 1.6 and 1.7

version 1.6, 2003/06/07 16:40:26 version 1.7, 2004/02/27 09:13:04
Line 45 
Line 45 
  * 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.5 2002/12/09 00:42:15 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/parse/parser.c,v 1.6 2003/06/07 16:40:26 saito 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 160  void read_eval_loop() {
Line 161  void read_eval_loop() {
                 r1 = get_rtime();                  r1 = get_rtime();
                 if ( !ox_do_copy ) {                  if ( !ox_do_copy ) {
                         if ( prresult ) {                          if ( prresult ) {
                                 if ( user_print_function )                                  if ( user_print_function ) {
                                         bevalf(user_print_function,mknode(1,LastVal));                                          bevalf(user_print_function,mknode(1,LastVal));
                                 else                                          fflush(asir_out);
                                   } 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();
                 }                  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>