Ilya Zakharevich on Tue, 15 Oct 2002 22:00:30 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PATCH CVS] compile


The functions below conflict with stdlib.h functions on this system.

With this patch the compile succeeds on EMX.

Ilya

P.S.  I see that the docs advertise using %R in the prompt.  However,
      the EMX documentation suggests that %R is not supported by C90's
      timefmt() (sp?).  At least it does not work on EMX - which
      supports C90...

      Is it possible to replace %R by an equivalent combination of
      other switches?

--- ./src/basemath/arith2.c-pre	Tue Oct 15 17:33:50 2002
+++ ./src/basemath/arith2.c	Tue Oct 15 20:16:04 2002
@@ -1056,7 +1056,7 @@ divisors(GEN n)
 }
 
 static GEN
-_core(GEN n, int all)
+do_core(GEN n, int all)
 {
   pari_sp av = avma;
   long i;
@@ -1071,7 +1071,7 @@ _core(GEN n, int all)
 }
 
 static GEN
-_core2(GEN n, int all)
+do_core2(GEN n, int all)
 {
   pari_sp av = avma;
   long i;
@@ -1091,10 +1091,10 @@ _core2(GEN n, int all)
   y[2] = (long)f; return gerepilecopy(av, y);
 }
 
-GEN core(GEN n)        { return _core(n,1); }
-GEN corepartial(GEN n) { return _core(n,0); }
-GEN core2(GEN n)       { return _core2(n,1); }
-GEN core2partial(GEN n){ return _core2(n,0); }
+GEN core(GEN n)        { return do_core(n,1); }
+GEN corepartial(GEN n) { return do_core(n,0); }
+GEN core2(GEN n)       { return do_core2(n,1); }
+GEN core2partial(GEN n){ return do_core2(n,0); }
 
 GEN
 core0(GEN n,long flag) { return flag? core2(n): core(n); }