=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/engine/pari.c,v retrieving revision 1.3 retrieving revision 1.7 diff -u -p -r1.3 -r1.7 --- OpenXM_contrib2/asir2000/engine/pari.c 2000/08/22 05:04:06 1.3 +++ OpenXM_contrib2/asir2000/engine/pari.c 2005/10/10 15:16:38 1.7 @@ -45,33 +45,23 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/engine/pari.c,v 1.2 2000/08/21 08:31:28 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/engine/pari.c,v 1.6 2003/02/14 22:29:09 ohara Exp $ */ #include "ca.h" -#if PARI +#if defined(PARI) #include "base.h" #include #include "genpari.h" -#if defined(THINK_C) void patori(GEN,Obj *); void patori_i(GEN,N *); void ritopa(Obj,GEN *); void ritopa_i(N,int,GEN *); -#else -void patori(); -void patori_i(); -void ritopa(); -void ritopa_i(); -#endif extern long prec; extern int paristack; void risa_pari_init() { - char buf[BUFSIZ]; - int i; - pari_init(paristack,2); prec = 4; } @@ -86,7 +76,11 @@ int index; if ( index > max_varn ) { for ( i = max_varn+1; i <= index; i++ ) { sprintf(name,"x%d",i); +#if (PARI_VERSION_CODE < 131594) fetch_named_var(name,0); +#else + fetch_named_var(name); +#endif } max_varn = index; }