| version 1.57, 2005/07/12 02:37:32 |
version 1.60, 2005/10/26 07:33:03 |
|
|
| * 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.59 2005/10/10 15:16:38 saito 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; |
|
|
| 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 556 void int_handler(int sig) |
|
| Line 561 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 ) { |
| Line 763 char *get_pariversion() |
|
| Line 770 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 789 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()); |
| } |
} |
| |
|