summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpf/clears.c3
-rw-r--r--mpf/inits.c3
-rw-r--r--mpq/clears.c3
-rw-r--r--mpq/inits.c3
-rw-r--r--mpz/clears.c3
-rw-r--r--mpz/inits.c3
6 files changed, 6 insertions, 12 deletions
diff --git a/mpf/clears.c b/mpf/clears.c
index 17eca8208..68a4cbebd 100644
--- a/mpf/clears.c
+++ b/mpf/clears.c
@@ -39,12 +39,11 @@ mpf_clears (mpf_ptr x, ...)
va_start (ap, x);
- do
+ while (x != NULL)
{
__GMP_FREE_FUNC_LIMBS (PTR(x), PREC(x) + 1);
x = va_arg (ap, mpf_ptr);
}
- while (x != NULL);
va_end (ap);
}
diff --git a/mpf/inits.c b/mpf/inits.c
index ddcf1141a..db7cacc42 100644
--- a/mpf/inits.c
+++ b/mpf/inits.c
@@ -39,12 +39,11 @@ mpf_inits (mpf_ptr x, ...)
va_start (ap, x);
- do
+ while (x != NULL)
{
mpf_init (x);
x = va_arg (ap, mpf_ptr);
}
- while (x != NULL);
va_end (ap);
}
diff --git a/mpq/clears.c b/mpq/clears.c
index c5f6539a6..73e5f6624 100644
--- a/mpq/clears.c
+++ b/mpq/clears.c
@@ -39,13 +39,12 @@ mpq_clears (mpq_ptr x, ...)
va_start (ap, x);
- do
+ while (x != NULL)
{
__GMP_FREE_FUNC_LIMBS (PTR(NUM(x)), ALLOC(NUM(x)));
__GMP_FREE_FUNC_LIMBS (PTR(DEN(x)), ALLOC(DEN(x)));
x = va_arg (ap, mpq_ptr);
}
- while (x != NULL);
va_end (ap);
}
diff --git a/mpq/inits.c b/mpq/inits.c
index 084c71e00..bb14f93e2 100644
--- a/mpq/inits.c
+++ b/mpq/inits.c
@@ -39,12 +39,11 @@ mpq_inits (mpq_ptr x, ...)
va_start (ap, x);
- do
+ while (x != NULL)
{
mpq_init (x);
x = va_arg (ap, mpq_ptr);
}
- while (x != NULL);
va_end (ap);
}
diff --git a/mpz/clears.c b/mpz/clears.c
index 27c3bb345..dac988738 100644
--- a/mpz/clears.c
+++ b/mpz/clears.c
@@ -39,12 +39,11 @@ mpz_clears (mpz_ptr x, ...)
va_start (ap, x);
- do
+ while (x != NULL)
{
__GMP_FREE_FUNC_LIMBS (PTR (x), ALLOC(x));
x = va_arg (ap, mpz_ptr);
}
- while (x != NULL);
va_end (ap);
}
diff --git a/mpz/inits.c b/mpz/inits.c
index 7d13883e1..a428aaadb 100644
--- a/mpz/inits.c
+++ b/mpz/inits.c
@@ -39,7 +39,7 @@ mpz_inits (mpz_ptr x, ...)
va_start (ap, x);
- do
+ while (x != NULL)
{
ALLOC (x) = 1;
PTR (x) = __GMP_ALLOCATE_FUNC_LIMBS (1);
@@ -52,7 +52,6 @@ mpz_inits (mpz_ptr x, ...)
x = va_arg (ap, mpz_ptr);
}
- while (x != NULL);
va_end (ap);
}