From 34910df95e3505c90a074a9533267cdd5cc9393f Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Mon, 20 Jan 2014 11:09:31 +0100 Subject: Get rid of varargs code and references. --- demos/expr/exprf.c | 15 --------------- demos/expr/exprq.c | 15 --------------- demos/expr/exprz.c | 15 --------------- 3 files changed, 45 deletions(-) (limited to 'demos') 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); -- cgit v1.2.1