version 1.8, 2000/12/05 01:24:57 |
version 1.10, 2001/08/20 09:03:28 |
|
|
* 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.7 2000/12/01 08:48:01 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/parse/main.c,v 1.9 2000/12/22 10:03:32 saito Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
|
|
extern jmp_buf environnement; |
extern jmp_buf environnement; |
#endif |
#endif |
|
|
extern jmp_buf env; |
extern jmp_buf main_env; |
|
|
|
#if defined(INTERVAL) |
|
#ifndef ASIRRCNAME |
|
#define ASIRRCNAME "int_asirrc" |
|
#endif |
|
#else |
|
#ifndef ASIRRCNAME |
|
#define ASIRRCNAME "asirrc" |
|
#endif |
|
#endif |
|
|
|
|
double get_current_time(); |
double get_current_time(); |
extern int mpi_nprocs,mpi_myid; |
extern int mpi_nprocs,mpi_myid; |
|
|
|
|
get_rootdir(rootname,sizeof(rootname)); |
get_rootdir(rootname,sizeof(rootname)); |
homedir = rootname; |
homedir = rootname; |
} |
} |
sprintf(ifname,"%s/.asirrc",homedir); |
sprintf(ifname,"%s/." ASIRRCNAME,homedir); |
} |
} |
|
|
if ( do_asirrc && (ifp = fopen(ifname,"r")) ) { |
if ( do_asirrc && (ifp = fopen(ifname,"r")) ) { |
input_init(ifp,ifname); |
input_init(ifp,ifname); |
if ( !setjmp(env) ) { |
if ( !setjmp(main_env) ) { |
read_exec_file = 1; |
read_exec_file = 1; |
read_eval_loop(); |
read_eval_loop(); |
read_exec_file = 0; |
read_exec_file = 0; |
|
|
resetenv(""); |
resetenv(""); |
} |
} |
#endif |
#endif |
if ( setjmp(env) ) |
if ( setjmp(main_env) ) |
prompt(); |
prompt(); |
read_eval_loop(); |
read_eval_loop(); |
} |
} |