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

Diff for /OpenXM_contrib2/asir2000/parse/glob.c between version 1.57 and 1.61

version 1.57, 2005/07/12 02:37:32 version 1.61, 2006/02/03 03:55:18
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/glob.c,v 1.56 2005/03/24 23:40:50 takayama Exp $   * $OpenXM: OpenXM_contrib2/asir2000/parse/glob.c,v 1.60 2005/10/26 07:33:03 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "al.h"  #include "al.h"
Line 126  struct oVL oVLIST[52];
Line 126  struct oVL oVLIST[52];
 VL CO = oVLIST;  VL CO = oVLIST;
 VL ALG;  VL ALG;
   
 struct oVS oGPVS,oAPVS,oEPVS;  struct oVS oGPVS,oAPVS,oEPVS,oPPVS;
 VS GPVS = &oGPVS;  VS GPVS = &oGPVS;
 VS APVS = &oAPVS;  VS APVS = &oAPVS;
 VS EPVS = &oEPVS;  VS EPVS = &oEPVS;
   VS PPVS = &oPPVS;
 VS CPVS,MPVS;  VS CPVS,MPVS;
   
 NODE MODULE_LIST;  NODE MODULE_LIST;
Line 165  void glob_init() {
Line 166  void glob_init() {
         VR(&oVLIST[i]) = &oVAR[i]; NEXT(&oVLIST[i]) = 0;          VR(&oVLIST[i]) = &oVAR[i]; NEXT(&oVLIST[i]) = 0;
         reallocarray((char **)&GPVS->va,(int *)&GPVS->asize,(int *)&GPVS->n,(int)sizeof(struct oPV));          reallocarray((char **)&GPVS->va,(int *)&GPVS->asize,(int *)&GPVS->n,(int)sizeof(struct oPV));
         reallocarray((char **)&APVS->va,(int *)&APVS->asize,(int *)&APVS->n,(int)sizeof(struct oPV));          reallocarray((char **)&APVS->va,(int *)&APVS->asize,(int *)&APVS->n,(int)sizeof(struct oPV));
           reallocarray((char **)&PPVS->va,(int *)&PPVS->asize,(int *)&PPVS->n,(int)sizeof(struct oPV));
         CPVS = GPVS;          CPVS = GPVS;
         MKNODE(ONENODE,mkfnode(1,I_FORMULA,ONE),0);          MKNODE(ONENODE,mkfnode(1,I_FORMULA,ONE),0);
         OID(F_TRUE)=O_F; FOP(F_TRUE)=AL_TRUE; F_TRUE->arg.dummy = 0;          OID(F_TRUE)=O_F; FOP(F_TRUE)=AL_TRUE; F_TRUE->arg.dummy = 0;
Line 194  int do_asirrc;
Line 196  int do_asirrc;
 int do_file;  int do_file;
 char *do_filename;  char *do_filename;
 int do_message;  int do_message;
   int do_terse;
 int do_fep;  int do_fep;
 int read_exec_file;  int read_exec_file;
 int asir_setenv;  int asir_setenv;
Line 227  void asir_terminate(int status)
Line 230  void asir_terminate(int status)
                         LONGJMP(exec_env,status);                          LONGJMP(exec_env,status);
         } else {          } else {
                 if ( user_quit_handler ) {                  if ( user_quit_handler ) {
                         fprintf(stderr,"Calling the registered quit callbacks...");                          if ( !do_terse )
                                   fprintf(stderr,"Calling the registered quit callbacks...");
                         for ( n = user_quit_handler; n; n = NEXT(n) )                          for ( n = user_quit_handler; n; n = NEXT(n) )
                                 bevalf((FUNC)BDY(n),0);                                  bevalf((FUNC)BDY(n),0);
                         fprintf(stderr, "done.\n");                          if ( !do_terse )
                                   fprintf(stderr, "done.\n");
                 }                  }
                 tty_reset();                  tty_reset();
 #if defined(MPI)  #if defined(MPI)
Line 474  void resetenv(char *s)
Line 479  void resetenv(char *s)
 #if !defined(VISUAL)  #if !defined(VISUAL)
         reset_timer();          reset_timer();
 #endif  #endif
         LONGJMP(main_env,1);          if ( read_exec_file <= 1 ) {
                   read_exec_file = 0;
                   LONGJMP(main_env,1);
           } else {
                   read_exec_file = 0;
                   LONGJMP(exec_env,1);
           }
 }  }
   
 void fatal(int n)  void fatal(int n)
Line 556  void int_handler(int sig)
Line 567  void int_handler(int sig)
                                 restore_handler();                                  restore_handler();
                                 if ( c == 'u' ) {                                  if ( c == 'u' ) {
                                         if ( user_int_handler ) {                                          if ( user_int_handler ) {
                                                 fprintf(stderr,                                                  if ( !do_terse )
                                                         "Calling the registered exception callbacks...");                                                          fprintf(stderr,
                                                                   "Calling the registered exception callbacks...");
                                                 for ( t = user_int_handler; t; t = NEXT(t) )                                                  for ( t = user_int_handler; t; t = NEXT(t) )
                                                         bevalf((FUNC)BDY(t),0);                                                          bevalf((FUNC)BDY(t),0);
                                                 fprintf(stderr, "done.\n");                                                  if ( !do_terse )
                                                           fprintf(stderr, "done.\n");
                                         }                                          }
                                 }                                  }
                                 if ( read_exec_file ) {                                  if ( read_exec_file )
                                         read_exec_file = 0;  
                                         resetenv("initialization aborted; return to toplevel");                                          resetenv("initialization aborted; return to toplevel");
                                 } else                                  else
                                         resetenv("return to toplevel");                                          resetenv("return to toplevel");
                                 break;                                  break;
                         case 'd':                          case 'd':
Line 700  void error(char *s)
Line 712  void error(char *s)
         if ( CPVS != GPVS )          if ( CPVS != GPVS )
                 if ( !no_debug_on_error && (do_server_in_X11 || isatty(0)) )                  if ( !no_debug_on_error && (do_server_in_X11 || isatty(0)) )
                         bp(error_snode);                          bp(error_snode);
         if ( read_exec_file )  
                 read_exec_file = 0;  
         resetenv("return to toplevel");          resetenv("return to toplevel");
 }  }
   
Line 721  void toplevel(char *s)
Line 731  void toplevel(char *s)
                 showpos_to_string(errbuf+strlen(errbuf));                  showpos_to_string(errbuf+strlen(errbuf));
                 ExitAsir();                  ExitAsir();
         }          }
         if ( read_exec_file )  
                 read_exec_file = 0;  
         resetenv("return to toplevel");          resetenv("return to toplevel");
 }  }
   
Line 763  char *get_pariversion() 
Line 771  char *get_pariversion() 
 {  {
 #if PARI  #if PARI
 #if 0  #if 0
         return "PARI 2.2.4, copyright (C) 2002 The PARI Group.\nPARI 2.0.17, copyright 1989-1999, C. Batut, K. Belabas, D. Bernardi,\n   H. Cohen and M. Olivier.\n";          return PARIVERSION", Copyright (C) 2000-2005 The PARI Group.\n";
 #endif  #else
         return "PARI 2.0.17, copyright 1989-1999, C. Batut, K. Belabas, D. Bernardi,\n   H. Cohen and M. Olivier.\n";          return "PARI 2.0.17, copyright 1989-1999, C. Batut, K. Belabas, D. Bernardi,\n   H. Cohen and M. Olivier.\n";
 #endif  #endif
   #endif
         return "";          return "";
 }  }
   
Line 781  char *get_intervalversion()
Line 790  char *get_intervalversion()
   
 void copyright()  void copyright()
 {  {
         char *format = "This is Risa/Asir%s, Version %d (%s Distribution).\nCopyright (C) 1994-2000, all rights reserved, FUJITSU LABORATORIES LIMITED.\nCopyright 2000-2005, Risa/Asir committers, http://www.openxm.org/.\nGC 6.5 copyright 1988-2005, H-J. Boehm, A. J. Demers, Xerox, SGI, HP.\n%s";          char *format = "This is Risa/Asir%s, Version %d (%s Distribution).\nCopyright (C) 1994-2000, all rights reserved, FUJITSU LABORATORIES LIMITED.\nCopyright 2000-2005, Risa/Asir committers, http://www.openxm.org/.\nGC 6.5 Copyright 1988-2005, H-J. Boehm, A. J. Demers, Xerox, SGI, HP.\n%s";
         printf(format, get_intervalversion(), get_asir_version(), get_asir_distribution(), get_pariversion());          printf(format, get_intervalversion(), get_asir_version(), get_asir_distribution(), get_pariversion());
 }  }
   

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.61

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