From fae4e36024f08ed96cb79195935f637bdfc9875b Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Sun, 19 Jan 2014 14:35:25 +0100 Subject: Get rid of varargs code and references. --- mpf/clears.c | 18 ------------------ mpf/inits.c | 18 ------------------ 2 files changed, 36 deletions(-) (limited to 'mpf') diff --git a/mpf/clears.c b/mpf/clears.c index 41d7a7564..02244d61f 100644 --- a/mpf/clears.c +++ b/mpf/clears.c @@ -17,35 +17,17 @@ License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU MP Library. If not, see https://www.gnu.org/licenses/. */ -#include "config.h" - -#if HAVE_STDARG #include -#else -#include -#endif - #include /* for NULL */ #include "gmp.h" #include "gmp-impl.h" void -#if HAVE_STDARG mpf_clears (mpf_ptr x, ...) -#else -mpf_clears (va_alist) - va_dcl -#endif { va_list ap; -#if HAVE_STDARG va_start (ap, x); -#else - mpf_ptr x; - va_start (ap); - x = va_arg (ap, mpf_ptr); -#endif while (x != NULL) { diff --git a/mpf/inits.c b/mpf/inits.c index ab993e2b1..3188cd806 100644 --- a/mpf/inits.c +++ b/mpf/inits.c @@ -17,35 +17,17 @@ License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU MP Library. If not, see https://www.gnu.org/licenses/. */ -#include "config.h" - -#if HAVE_STDARG #include -#else -#include -#endif - #include /* for NULL */ #include "gmp.h" #include "gmp-impl.h" void -#if HAVE_STDARG mpf_inits (mpf_ptr x, ...) -#else -mpf_inits (va_alist) - va_dcl -#endif { va_list ap; -#if HAVE_STDARG va_start (ap, x); -#else - mpf_ptr x; - va_start (ap); - x = va_arg (ap, mpf_ptr); -#endif while (x != NULL) { -- cgit v1.2.1