=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/io/ox_asir.c,v retrieving revision 1.49 retrieving revision 1.52 diff -u -p -r1.49 -r1.52 --- OpenXM_contrib2/asir2000/io/ox_asir.c 2003/12/12 09:01:11 1.49 +++ OpenXM_contrib2/asir2000/io/ox_asir.c 2004/02/26 06:37:09 1.52 @@ -44,7 +44,7 @@ * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. - * $OpenXM: OpenXM_contrib2/asir2000/io/ox_asir.c,v 1.48 2003/12/12 04:59:59 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/io/ox_asir.c,v 1.51 2004/02/13 05:48:36 saito Exp $ */ #include "ca.h" #include "parse.h" @@ -59,7 +59,9 @@ void ox_usr1_handler(); int asir_ox_init(); /* environement is defined in libpari.a */ +# if !( PARI_VERSION_CODE > 131588) extern jmp_buf environnement; +# endif extern int myrank_102,nserver_102; extern int do_message; @@ -479,7 +481,7 @@ void asir_reset_102(unsigned int serial) do { ox_recv_102(i,&id,&obj); } while ( id != OX_SYNC_BALL ); - for ( i = myrank_102; i < nserver_102; i++ ) + for ( i = myrank_102+1; i < nserver_102; i++ ) ox_send_sync_102(i); } @@ -603,11 +605,13 @@ void asir_popString() buf = (char *)ALLOCA(l+1); soutput_init(buf); sprintexpr(CO,val); +#if 0 l = strlen(buf); obuf = (char *)MALLOC(l+1); strcpy(obuf,buf); +#endif } - MKSTR(str,obuf); + MKSTR(str,buf); ox_send_data(0,str); } @@ -670,10 +674,12 @@ int asir_executeString() #if defined(PARI) recover(0); /* environement is defined in libpari.a */ +# if !(PARI_VERSION_CODE > 131588 ) if ( setjmp(environnement) ) { avma = top; recover(1); resetenv(""); } +# endif #endif cmd = ((STRING)asir_pop_one())->body; parse_strp = cmd;