=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/parse/asir_sm.c,v retrieving revision 1.4 retrieving revision 1.6 diff -u -p -r1.4 -r1.6 --- OpenXM_contrib2/asir2000/parse/asir_sm.c 2000/11/14 08:38:40 1.4 +++ OpenXM_contrib2/asir2000/parse/asir_sm.c 2004/02/13 05:48:36 1.6 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/parse/asir_sm.c,v 1.3 2000/08/22 05:04:25 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/parse/asir_sm.c,v 1.5 2003/02/14 22:29:17 ohara Exp $ */ #include "ca.h" #include "parse.h" @@ -53,10 +53,11 @@ #include #endif -#if PARI +#if defined(PARI) #include "genpari.h" - +# if !(PARI_VERSION_CODE > 131588) extern jmp_buf environnement; +# endif #endif extern jmp_buf env; @@ -145,17 +146,19 @@ char *s; { SNODE snode; pointer val; -#if PARI +#if defined(PARI) static long tloc,listloc; extern long avloc; Asir_Start(); asir_set_handler(); avloc = avma; tloc = tglobal; listloc = marklist(); +# if !(PARI_VERSION_CODE > 131588) if ( setjmp(environnement) ) { avma = avloc; tglobal = tloc; recover(listloc); resetenv(""); } +# endif #endif if ( setjmp(env) ) { asir_reset_handler();