From 6e2405b086ddba4d04646df25491b36a6eea13c3 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Sun, 6 Jun 2021 22:53:16 +0200 Subject: Consistently use pointers instead of arrays in declarations. gmp_randstate_t -> gmp_randstate_ptr, etc --- mpq/canonicalize.c | 2 +- mpq/clear.c | 2 +- mpq/init.c | 2 +- mpq/set_si.c | 2 +- mpq/set_ui.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'mpq') diff --git a/mpq/canonicalize.c b/mpq/canonicalize.c index cbc0a22c3..7ac233184 100644 --- a/mpq/canonicalize.c +++ b/mpq/canonicalize.c @@ -32,7 +32,7 @@ see https://www.gnu.org/licenses/. */ #include "gmp-impl.h" void -mpq_canonicalize (mpq_t op) +mpq_canonicalize (mpq_ptr op) { mpz_t gcd; TMP_DECL; diff --git a/mpq/clear.c b/mpq/clear.c index 65e899f3c..60beb516f 100644 --- a/mpq/clear.c +++ b/mpq/clear.c @@ -32,7 +32,7 @@ see https://www.gnu.org/licenses/. */ #include "gmp-impl.h" void -mpq_clear (mpq_t x) +mpq_clear (mpq_ptr x) { if (ALLOC (NUM(x))) __GMP_FREE_FUNC_LIMBS (PTR(NUM(x)), ALLOC(NUM(x))); diff --git a/mpq/init.c b/mpq/init.c index b00694578..531006615 100644 --- a/mpq/init.c +++ b/mpq/init.c @@ -32,7 +32,7 @@ see https://www.gnu.org/licenses/. */ #include "gmp-impl.h" void -mpq_init (mpq_t x) +mpq_init (mpq_ptr x) { static const mp_limb_t dummy_limb=0xc1a0; ALLOC(NUM(x)) = 0; diff --git a/mpq/set_si.c b/mpq/set_si.c index e51406bfd..3159899d6 100644 --- a/mpq/set_si.c +++ b/mpq/set_si.c @@ -32,7 +32,7 @@ see https://www.gnu.org/licenses/. */ #include "gmp-impl.h" void -mpq_set_si (mpq_t dest, signed long int num, unsigned long int den) +mpq_set_si (mpq_ptr dest, signed long int num, unsigned long int den) { if (GMP_NUMB_BITS < BITS_PER_ULONG) { diff --git a/mpq/set_ui.c b/mpq/set_ui.c index db85d976f..b03d4e3dd 100644 --- a/mpq/set_ui.c +++ b/mpq/set_ui.c @@ -32,7 +32,7 @@ see https://www.gnu.org/licenses/. */ #include "gmp-impl.h" void -mpq_set_ui (mpq_t dest, unsigned long int num, unsigned long int den) +mpq_set_ui (mpq_ptr dest, unsigned long int num, unsigned long int den) { if (GMP_NUMB_BITS < BITS_PER_ULONG) { -- cgit v1.2.1