version 1.17, 2001/12/28 06:44:48 |
version 1.23, 2003/12/23 06:30:14 |
|
|
* 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/main.c,v 1.16 2001/12/28 06:18:10 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/parse/main.c,v 1.22 2003/10/19 02:54:41 ohara Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
|
|
#if PARI |
#if defined(PARI) |
#include "genpari.h" |
#include "genpari.h" |
|
|
/* XXX : environment is defined in libpari.a */ |
/* XXX : environment is defined in libpari.a */ |
Line 102 main(int argc,char *argv[]) |
|
Line 102 main(int argc,char *argv[]) |
|
#endif |
#endif |
|
|
StackBottom = &tmp; |
StackBottom = &tmp; |
#if MPI |
#if defined(MPI) |
mpi_init(); |
mpi_init(); |
if ( mpi_myid ) { |
if ( mpi_myid ) { |
int slave_argc; |
int slave_argc; |
Line 130 main(int argc,char *argv[]) |
|
Line 130 main(int argc,char *argv[]) |
|
/* never return */ |
/* never return */ |
ox_main(argc,argv); |
ox_main(argc,argv); |
exit(0); |
exit(0); |
#if DO_PLOT |
#if defined(DO_PLOT) |
} else if ( !strncmp(binname,"ox_plot",strlen("ox_plot")) ) { |
} else if ( !strncmp(binname,"ox_plot",strlen("ox_plot")) ) { |
/* never return */ |
/* never return */ |
ox_plot_main(argc,argv); |
ox_plot_main(argc,argv); |
Line 150 main(int argc,char *argv[]) |
|
Line 150 main(int argc,char *argv[]) |
|
env_init(); |
env_init(); |
endian_init(); |
endian_init(); |
GC_init(); |
GC_init(); |
|
cppname_init(); |
process_args(--argc,++argv); |
process_args(--argc,++argv); |
#if PARI |
#if defined(PARI) |
risa_pari_init(); |
risa_pari_init(); |
#endif |
#endif |
copyright(); |
if (!do_quiet) { |
|
copyright(); |
|
} |
output_init(); |
output_init(); |
arf_init(); |
arf_init(); |
nglob_init(); |
nglob_init(); |
Line 202 main(int argc,char *argv[]) |
|
Line 205 main(int argc,char *argv[]) |
|
input_init(stdin,"stdin"); |
input_init(stdin,"stdin"); |
prompt(); |
prompt(); |
while ( 1 ) { |
while ( 1 ) { |
#if PARI |
#if defined(PARI) |
recover(0); |
recover(0); |
/* XXX environement is defined in libpari.a */ |
/* XXX environement is defined in libpari.a */ |
if ( setjmp(environnement) ) { |
if ( setjmp(environnement) ) { |
Line 212 main(int argc,char *argv[]) |
|
Line 215 main(int argc,char *argv[]) |
|
#endif |
#endif |
if ( SETJMP(main_env) ) |
if ( SETJMP(main_env) ) |
prompt(); |
prompt(); |
|
restore_handler(); |
read_eval_loop(); |
read_eval_loop(); |
} |
} |
} |
} |