version 1.59, 2006/02/08 02:11:19 |
version 1.62, 2006/02/25 06:33:31 |
|
|
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* 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/io/ox_asir.c,v 1.58 2005/07/26 00:58:50 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/io/ox_asir.c,v 1.61 2006/02/13 10:07:19 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
Line 703 int asir_executeString() |
|
Line 703 int asir_executeString() |
|
#else |
#else |
parse_strp = cmd; |
parse_strp = cmd; |
#endif |
#endif |
|
asir_infile->ln = 1; |
if ( mainparse(&snode) ) { |
if ( mainparse(&snode) ) { |
return -1; |
return -1; |
} |
} |
Line 858 void ox_asir_init(int argc,char **argv,char *servernam |
|
Line 859 void ox_asir_init(int argc,char **argv,char *servernam |
|
FILE *ifp; |
FILE *ifp; |
char *homedir; |
char *homedir; |
char *ptr; |
char *ptr; |
|
int do_server_sav; |
#if !defined(VISUAL) |
#if !defined(VISUAL) |
int tmp; |
int tmp; |
#endif |
#endif |
Line 916 void ox_asir_init(int argc,char **argv,char *servernam |
|
Line 918 void ox_asir_init(int argc,char **argv,char *servernam |
|
|
|
if ( do_asirrc && (ifp = fopen(ifname,"r")) ) { |
if ( do_asirrc && (ifp = fopen(ifname,"r")) ) { |
fclose(ifp); |
fclose(ifp); |
execasirfile(ifname); |
do_server_sav = do_server_in_X11; |
|
do_server_in_X11 = 0; |
|
if ( !SETJMP(main_env) ) |
|
execasirfile(ifname); |
|
do_server_in_X11 = do_server_sav; |
} |
} |
|
|
/* XXX Windows compatibility */ |
/* XXX Windows compatibility */ |
Line 1179 int asir_ox_init(int byteorder) |
|
Line 1185 int asir_ox_init(int byteorder) |
|
#if defined(UINIT) |
#if defined(UINIT) |
reg_sysf(); |
reg_sysf(); |
#endif |
#endif |
|
input_init(0,"string"); |
sprintf(ifname,"%s/.asirrc",getenv("HOME")); |
sprintf(ifname,"%s/.asirrc",getenv("HOME")); |
if ( do_asirrc && (ifp = fopen(ifname,"r")) ) { |
if ( do_asirrc && (ifp = fopen(ifname,"r")) ) { |
input_init(ifp,ifname); |
|
if ( !SETJMP(asir_infile->jmpbuf) ) { |
|
asir_infile->ready_for_longjmp; |
|
read_eval_loop(); |
|
} |
|
fclose(ifp); |
fclose(ifp); |
|
if ( !SETJMP(main_env) ) |
|
execasirfile(ifname); |
} |
} |
input_init(0,"string"); |
|
|
|
asir_OperandStackSize = BUFSIZ; |
asir_OperandStackSize = BUFSIZ; |
asir_OperandStack = (Obj *)CALLOC(asir_OperandStackSize,sizeof(Obj)); |
asir_OperandStack = (Obj *)CALLOC(asir_OperandStackSize,sizeof(Obj)); |