[Gmp-commit] /var/hg/gmp: Get rid of varargs code and references.

mercurial at gmplib.org mercurial at gmplib.org
Mon Jan 20 10:09:38 UTC 2014


details:   /var/hg/gmp/rev/b882d1fe312c
changeset: 16239:b882d1fe312c
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Jan 20 11:09:31 2014 +0100
description:
Get rid of varargs code and references.

diffstat:

 ChangeLog          |   4 ++++
 demos/expr/exprf.c |  15 ---------------
 demos/expr/exprq.c |  15 ---------------
 demos/expr/exprz.c |  15 ---------------
 4 files changed, 4 insertions(+), 45 deletions(-)

diffs (104 lines):

diff -r d343ca803108 -r b882d1fe312c ChangeLog
--- a/ChangeLog	Mon Jan 20 01:55:34 2014 +0100
+++ b/ChangeLog	Mon Jan 20 11:09:31 2014 +0100
@@ -1,3 +1,7 @@
+2014-01-20  Torbjorn Granlund  <tege at gmplib.org>
+
+	* demos/expr: Get rid of varargs code and references.
+
 2014-01-19  Torbjorn Granlund  <tege at gmplib.org>
 
 	* config.guess: Add new AMD CPUs (piledriver, steamroller, excavator,
diff -r d343ca803108 -r b882d1fe312c demos/expr/exprf.c
--- a/demos/expr/exprf.c	Mon Jan 20 01:55:34 2014 +0100
+++ b/demos/expr/exprf.c	Mon Jan 20 11:09:31 2014 +0100
@@ -93,27 +93,12 @@
 
 
 int
-#if HAVE_STDARG
 mpf_expr (mpf_ptr res, int base, const char *e, ...)
-#else
-mpf_expr (va_alist)
-     va_dcl
-#endif
 {
   mpf_srcptr  var[MPEXPR_VARIABLES];
   va_list     ap;
   int         ret;
-#if HAVE_STDARG
   va_start (ap, e);
-#else
-  mpf_ptr     res;
-  int         base;
-  const char  *e;
-  va_start (ap);
-  res  = va_arg (ap, mpf_ptr);
-  base = va_arg (ap, int);
-  e    = va_arg (ap, const char *);
-#endif
 
   TRACE (printf ("mpf_expr(): base %d, %s\n", base, e));
   ret = mpexpr_va_to_var ((void **) var, ap);
diff -r d343ca803108 -r b882d1fe312c demos/expr/exprq.c
--- a/demos/expr/exprq.c	Mon Jan 20 01:55:34 2014 +0100
+++ b/demos/expr/exprq.c	Mon Jan 20 11:09:31 2014 +0100
@@ -126,27 +126,12 @@
 
 
 int
-#if HAVE_STDARG
 mpq_expr (mpq_ptr res, int base, const char *e, ...)
-#else
-mpq_expr (va_alist)
-     va_dcl
-#endif
 {
   mpq_srcptr  var[MPEXPR_VARIABLES];
   va_list     ap;
   int         ret;
-#if HAVE_STDARG
   va_start (ap, e);
-#else
-  mpq_ptr     res;
-  int         base;
-  const char  *e;
-  va_start (ap);
-  res  = va_arg (ap, mpq_ptr);
-  base = va_arg (ap, int);
-  e    = va_arg (ap, const char *);
-#endif
 
   TRACE (printf ("mpq_expr(): base %d, %s\n", base, e));
   ret = mpexpr_va_to_var ((void **) var, ap);
diff -r d343ca803108 -r b882d1fe312c demos/expr/exprz.c
--- a/demos/expr/exprz.c	Mon Jan 20 01:55:34 2014 +0100
+++ b/demos/expr/exprz.c	Mon Jan 20 11:09:31 2014 +0100
@@ -177,27 +177,12 @@
 
 
 int
-#if HAVE_STDARG
 mpz_expr (mpz_ptr res, int base, const char *e, ...)
-#else
-mpz_expr (va_alist)
-     va_dcl
-#endif
 {
   mpz_srcptr  var[MPEXPR_VARIABLES];
   va_list     ap;
   int         ret;
-#if HAVE_STDARG
   va_start (ap, e);
-#else
-  mpz_ptr     res;
-  int         base;
-  const char  *e;
-  va_start (ap);
-  res  = va_arg (ap, mpz_ptr);
-  base = va_arg (ap, int);
-  e    = va_arg (ap, const char *);
-#endif
 
   TRACE (printf ("mpz_expr(): base %d, %s\n", base, e));
   ret = mpexpr_va_to_var ((void **) var, ap);


More information about the gmp-commit mailing list