version 1.81, 2012/05/09 06:17:13 |
version 1.87, 2015/08/04 06:20: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.80 2011/06/16 08:17:15 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/parse/glob.c,v 1.86 2015/03/16 00:08:32 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "al.h" |
#include "al.h" |
#include "parse.h" |
#include "parse.h" |
#include "ox.h" |
#include "ox.h" |
#if defined(PARI) |
|
#include "genpari.h" |
|
#endif |
|
#if !defined(VISUAL) && !defined(_PA_RISC1_1) && !defined(linux) && !defined(SYSV) && !defined(__CYGWIN__) && !defined(__INTERIX) && !defined(__FreeBSD__) |
#if !defined(VISUAL) && !defined(_PA_RISC1_1) && !defined(linux) && !defined(SYSV) && !defined(__CYGWIN__) && !defined(__INTERIX) && !defined(__FreeBSD__) |
#include <sgtty.h> |
#include <sgtty.h> |
#endif |
#endif |
Line 84 JMP_BUF main_env,debug_env,timer_env,exec_env; |
|
Line 81 JMP_BUF main_env,debug_env,timer_env,exec_env; |
|
int little_endian,debug_mode,no_debug_on_error; |
int little_endian,debug_mode,no_debug_on_error; |
char *asir_libdir; |
char *asir_libdir; |
char *asir_contrib_dir; |
char *asir_contrib_dir; |
|
char *asir_private_dir; |
char *asir_pager; |
char *asir_pager; |
|
|
NODE usrf,sysf,noargsysf,ubinf,parif; |
NODE usrf,sysf,noargsysf,ubinf,parif; |
Line 399 void process_args(int ac,char **av) |
|
Line 397 void process_args(int ac,char **av) |
|
} else if ( !strcmp(*av,"-fep") ) { |
} else if ( !strcmp(*av,"-fep") ) { |
do_fep = 1; av++; ac--; |
do_fep = 1; av++; ac--; |
#endif |
#endif |
#if defined(PARI) |
|
} else if ( !strcmp(*av,"-paristack") ) { |
|
extern int paristack; |
|
|
|
paristack = atoi(*(av+1)); av += 2; ac -= 2; |
|
#endif |
|
} else { |
} else { |
fprintf(stderr,"%s : unknown option.\n",*av); |
fprintf(stderr,"%s : unknown option.\n",*av); |
asir_terminate(1); |
asir_terminate(1); |
Line 485 void resetenv(char *s) |
|
Line 477 void resetenv(char *s) |
|
w_noflush_stderr(0); |
w_noflush_stderr(0); |
#endif |
#endif |
asir_out = stdout; |
asir_out = stdout; |
#if defined(PARI) |
|
pari_outfile = stdout; |
|
#endif |
|
/* restore states */ |
/* restore states */ |
reset_engine(); |
reset_engine(); |
reset_io(); |
reset_io(); |
Line 503 void fatal(int n) |
|
Line 492 void fatal(int n) |
|
} |
} |
|
|
extern int ox_int_received, critical_when_signal; |
extern int ox_int_received, critical_when_signal; |
|
extern int in_gc, caught_intr; |
|
|
void int_handler(int sig) |
void int_handler(int sig) |
{ |
{ |
Line 517 void int_handler(int sig) |
|
Line 507 void int_handler(int sig) |
|
ox_int_received = 1; |
ox_int_received = 1; |
return; |
return; |
} |
} |
|
if ( in_gc ) { |
|
caught_intr = 1; |
|
return; |
|
} |
#if defined(VISUAL) |
#if defined(VISUAL) |
suspend_timer(); |
suspend_timer(); |
#endif |
#endif |
Line 736 void error(char *s) |
|
Line 730 void error(char *s) |
|
resetenv("return to toplevel"); |
resetenv("return to toplevel"); |
} |
} |
|
|
void toplevel(char *s) |
void goto_toplevel(char *s) |
{ |
{ |
SNODE *snp=0; |
SNODE *snp=0; |
|
|
Line 790 char *get_asir_distribution(); |
|
Line 784 char *get_asir_distribution(); |
|
|
|
char *get_gcversion() |
char *get_gcversion() |
{ |
{ |
#if defined(GC7) |
return "GC 7.2 copyright 1988-2012, H-J. Boehm, A. J. Demers, Xerox, SGI, HP.\n"; |
return "GC 7.2 alpha6 copyright 1988-2011, H-J. Boehm, A. J. Demers, Xerox, SGI, HP.\n"; |
|
#else |
|
return "GC 6.8 copyright 1988-2006, H-J. Boehm, A. J. Demers, Xerox, SGI, HP.\n"; |
|
#endif |
|
} |
} |
|
|
char *get_pariversion() |
char *get_pariversion() |
{ |
{ |
#if PARI |
|
#if 0 |
|
return PARIVERSION", Copyright (C) 2000-2005 The PARI Group.\n"; |
|
#else |
|
return "PARI 2.0.17, copyright 1989-1999, C. Batut, K. Belabas, D. Bernardi,\n H. Cohen and M. Olivier.\n"; |
|
#endif |
|
#endif |
|
return ""; |
return ""; |
} |
} |
|
|
Line 842 char *scopyright() |
|
Line 825 char *scopyright() |
|
} |
} |
return notice; |
return notice; |
} |
} |
|
|
|
#if defined(VISUAL) |
|
void check_intr() |
|
{ |
|
extern int recv_intr; |
|
if ( recv_intr ) { |
|
if ( recv_intr == 1 ) { |
|
recv_intr = 0; |
|
int_handler(0); |
|
} else { |
|
recv_intr = 0; |
|
ox_usr1_handler(0); |
|
} |
|
} |
|
} |
|
#endif |