version 1.61, 2006/02/13 10:07:19 |
version 1.65, 2006/09/29 09:02:49 |
|
|
* 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.60 2006/02/11 09:10:16 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/io/ox_asir.c,v 1.64 2006/09/26 05:35:26 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
Line 191 void ox_main(int argc,char **argv) { |
|
Line 191 void ox_main(int argc,char **argv) { |
|
asir_push_one((Obj)err); |
asir_push_one((Obj)err); |
while ( NEXT(asir_infile) ) |
while ( NEXT(asir_infile) ) |
closecurrentinput(); |
closecurrentinput(); |
|
resetpvs(); |
} |
} |
break; |
break; |
} |
} |
Line 596 void asir_pushCMOtag(unsigned int serial) |
|
Line 597 void asir_pushCMOtag(unsigned int serial) |
|
} |
} |
} |
} |
|
|
|
void print_to_wfep(Obj obj) |
|
{ |
|
asir_push_one(obj); |
|
asir_popString(); |
|
} |
|
|
|
extern int wfep_mode; |
|
|
void asir_popString() |
void asir_popString() |
{ |
{ |
Obj val; |
Obj val; |
Line 606 void asir_popString() |
|
Line 615 void asir_popString() |
|
val = asir_pop_one(); |
val = asir_pop_one(); |
if ( !val ) |
if ( !val ) |
buf = "0"; |
buf = "0"; |
else { |
else if ( wfep_mode && OID(val) == O_ERR ) { |
|
/* XXX : for wfep */ |
|
ox_send_data(0,val); return; |
|
} else { |
l = estimate_length(CO,val); |
l = estimate_length(CO,val); |
buf = (char *)ALLOCA(l+1); |
buf = (char *)ALLOCA(l+1); |
soutput_init(buf); |
soutput_init(buf); |
Line 703 int asir_executeString() |
|
Line 715 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; |
} |
} |