[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.9 and 1.12

version 1.9, 2008/09/04 01:42:26 version 1.12, 2018/03/28 05:27:22
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.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 <ctype.h>  #include <ctype.h>
 #include "ca.h"  #include "ca.h"
Line 141  int exprparse_create_var(FUNC f,char *str,SNODE *statp
Line 141  int exprparse_create_var(FUNC f,char *str,SNODE *statp
 }  }
   
 extern FUNC user_print_function;  extern FUNC user_print_function;
   extern f_break,f_continue,f_return;
   
 void read_eval_loop() {  void read_eval_loop() {
         struct oEGT egt0,egt1;          struct oEGT egt0,egt1;
Line 157  void read_eval_loop() {
Line 158  void read_eval_loop() {
                 get_eg(&egt0);                  get_eg(&egt0);
                 r0 = get_rtime();                  r0 = get_rtime();
                 LastVal = evalstat(snode);                  LastVal = evalstat(snode);
                   f_break = f_continue = f_return = 0;
                 storeans(LastVal);                  storeans(LastVal);
                 get_eg(&egt1);                  get_eg(&egt1);
                 r1 = get_rtime();                  r1 = get_rtime();
Line 164  void read_eval_loop() {
Line 166  void read_eval_loop() {
                         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));
   #if !defined(__MINGW32__)
                                         fflush(asir_out);                                          fflush(asir_out);
   #endif
                                 } else                                  } else
                                         printexpr(CO,LastVal);                                          printexpr(CO,LastVal);
                                 if ( outputstyle == 1 ) {                                  if ( outputstyle == 1 ) {
                                         putc(';',asir_out);                                          putc(';',asir_out);
                                 }                                  }
                                 putc('\n',asir_out);                                  putc('\n',asir_out);
   #if !defined(__MINGW32__)
                                 fflush(asir_out);                                  fflush(asir_out);
   #endif
                         }                          }
                         if ( prtime ) {                          if ( prtime ) {
                                 printtime(&egt0,&egt1,r1-r0);                                  printtime(&egt0,&egt1,r1-r0);
                         }                          }
   #if defined(__MINGW32__)
                           fflush(asir_out);
                           fflush(stderr);
   #endif
                         prompt();                          prompt();
                 }                  }
         }          }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.12

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