diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2014-01-20 11:09:31 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2014-01-20 11:09:31 +0100 |
commit | 34910df95e3505c90a074a9533267cdd5cc9393f (patch) | |
tree | 92dd3b31e45eb904734b8b9b086ba7ee5a01dc6d /demos | |
parent | 8075b3fe183df89351c323888c1019bef4d689b0 (diff) | |
download | gmp-34910df95e3505c90a074a9533267cdd5cc9393f.tar.gz |
Get rid of varargs code and references.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/expr/exprf.c | 15 | ||||
-rw-r--r-- | demos/expr/exprq.c | 15 | ||||
-rw-r--r-- | demos/expr/exprz.c | 15 |
3 files changed, 0 insertions, 45 deletions
diff --git a/demos/expr/exprf.c b/demos/expr/exprf.c index 405fd76a0..b28dbfd61 100644 --- a/demos/expr/exprf.c +++ b/demos/expr/exprf.c @@ -93,27 +93,12 @@ const struct mpexpr_operator_t * const mpf_expr_standard_table 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 --git a/demos/expr/exprq.c b/demos/expr/exprq.c index 8e49ef704..bb5ae7c67 100644 --- a/demos/expr/exprq.c +++ b/demos/expr/exprq.c @@ -126,27 +126,12 @@ const struct mpexpr_operator_t * const mpq_expr_standard_table 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 --git a/demos/expr/exprz.c b/demos/expr/exprz.c index 9a0aa82ef..0426b3558 100644 --- a/demos/expr/exprz.c +++ b/demos/expr/exprz.c @@ -177,27 +177,12 @@ const struct mpexpr_operator_t * const mpz_expr_standard_table 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); |