version 1.9, 2000/12/22 10:03:32 |
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.8 2000/12/05 01:24:57 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) |
#if defined(INTERVAL) |
#ifndef ASIRRCNAME |
#ifndef ASIRRCNAME |
|
|
|
|
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(); |
} |
} |