version 1.8, 2004/06/15 00:56:52 |
version 1.9, 2006/02/08 02:11:19 |
|
|
* 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/asir_lib.c,v 1.7 2004/02/13 05:48:36 saito Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/parse/asir_lib.c,v 1.8 2004/06/15 00:56:52 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
Line 72 void Init_Asir(int argc,char **argv) |
|
Line 72 void Init_Asir(int argc,char **argv) |
|
FILE *ifp; |
FILE *ifp; |
char ifname[BUFSIZ]; |
char ifname[BUFSIZ]; |
extern int GC_dont_gc; |
extern int GC_dont_gc; |
extern int read_exec_file; |
|
extern int do_asirrc; |
extern int do_asirrc; |
char *getenv(); |
char *getenv(); |
static asirlib_initialized=0; |
static asirlib_initialized=0; |
Line 119 void Init_Asir(int argc,char **argv) |
|
Line 118 void Init_Asir(int argc,char **argv) |
|
#endif |
#endif |
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(asir_infile->jmpbuf) ) |
read_exec_file = 1; |
|
read_eval_loop(); |
read_eval_loop(); |
read_exec_file = 0; |
|
} |
|
fclose(ifp); |
fclose(ifp); |
} else |
} else |
error(".asirrc not found"); |
error(".asirrc not found"); |