diff options
author | Torbjorn Granlund <torbjorng@google.com> | 2015-09-29 21:24:58 +0200 |
---|---|---|
committer | Torbjorn Granlund <torbjorng@google.com> | 2015-09-29 21:24:58 +0200 |
commit | 25ff0b07e50cae0ff51b9e4fa96d4a2e70e3d910 (patch) | |
tree | 073f3464080d68a1c6ef967462d50f746c2bf3fd /mpf/inits.c | |
parent | 99daa66cdd004e0390ba631a4c3de736fbfd18a9 (diff) | |
download | gmp-25ff0b07e50cae0ff51b9e4fa96d4a2e70e3d910.tar.gz |
Streamline, use macros.
Diffstat (limited to 'mpf/inits.c')
-rw-r--r-- | mpf/inits.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mpf/inits.c b/mpf/inits.c index fb14c6b0f..ddcf1141a 100644 --- a/mpf/inits.c +++ b/mpf/inits.c @@ -1,6 +1,6 @@ /* mpf_inits() -- Initialize multiple mpf_t variables and set them to 0. -Copyright 2009 Free Software Foundation, Inc. +Copyright 2009, 2015 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -29,7 +29,6 @@ GNU Lesser General Public License along with the GNU MP Library. If not, see https://www.gnu.org/licenses/. */ #include <stdarg.h> -#include <stdio.h> /* for NULL */ #include "gmp.h" #include "gmp-impl.h" @@ -40,10 +39,12 @@ mpf_inits (mpf_ptr x, ...) va_start (ap, x); - while (x != NULL) + do { mpf_init (x); x = va_arg (ap, mpf_ptr); } + while (x != NULL); + va_end (ap); } |