summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2001-01-02 09:34:55 +0100
committertege <tege@gmplib.org>2001-01-02 09:34:55 +0100
commita30062b9487102e3171a2f58036a184d6a5d824d (patch)
tree00d690b52e5def66954bf7b9fd1af2e34f67b085
parentca4999701473b3895e884412c337bc69b06e3fd3 (diff)
downloadgmp-a30062b9487102e3171a2f58036a184d6a5d824d.tar.gz
Remove K&R function headers.
-rw-r--r--mpf/abs.c6
-rw-r--r--mpf/add.c7
-rw-r--r--mpf/add_ui.c7
-rw-r--r--mpf/clear.c5
-rw-r--r--mpf/cmp.c6
-rw-r--r--mpf/cmp_si.c6
-rw-r--r--mpf/cmp_ui.c6
-rw-r--r--mpf/div.c7
-rw-r--r--mpf/div_2exp.c7
-rw-r--r--mpf/div_ui.c7
-rw-r--r--mpf/dump.c5
-rw-r--r--mpf/eq.c7
-rw-r--r--mpf/get_d.c5
-rw-r--r--mpf/get_prc.c5
-rw-r--r--mpf/get_str.c9
-rw-r--r--mpf/init.c5
-rw-r--r--mpf/init2.c6
-rw-r--r--mpf/inp_str.c7
-rw-r--r--mpf/integer.c6
-rw-r--r--mpf/iset.c6
-rw-r--r--mpf/iset_d.c6
-rw-r--r--mpf/iset_si.c6
-rw-r--r--mpf/iset_str.c7
-rw-r--r--mpf/iset_ui.c6
-rw-r--r--mpf/mul.c7
-rw-r--r--mpf/mul_2exp.c7
-rw-r--r--mpf/mul_ui.c7
-rw-r--r--mpf/neg.c6
-rw-r--r--mpf/out_str.c8
-rw-r--r--mpf/pow_ui.c7
-rw-r--r--mpf/random2.c7
-rw-r--r--mpf/reldiff.c7
-rw-r--r--mpf/set.c6
-rw-r--r--mpf/set_d.c6
-rw-r--r--mpf/set_dfl_prec.c5
-rw-r--r--mpf/set_prc.c6
-rw-r--r--mpf/set_prc_raw.c6
-rw-r--r--mpf/set_q.c6
-rw-r--r--mpf/set_si.c6
-rw-r--r--mpf/set_str.c13
-rw-r--r--mpf/set_ui.c6
-rw-r--r--mpf/set_z.c6
-rw-r--r--mpf/size.c5
-rw-r--r--mpf/sqrt.c6
-rw-r--r--mpf/sqrt_ui.c6
-rw-r--r--mpf/sub.c7
-rw-r--r--mpf/sub_ui.c7
-rw-r--r--mpf/swap.c6
-rw-r--r--mpf/ui_div.c7
-rw-r--r--mpf/ui_sub.c7
-rw-r--r--mpf/urandomb.c7
-rw-r--r--mpq/canonicalize.c5
-rw-r--r--mpq/clear.c5
-rw-r--r--mpq/cmp.c6
-rw-r--r--mpq/cmp_ui.c7
-rw-r--r--mpq/div.c7
-rw-r--r--mpq/equal.c6
-rw-r--r--mpq/get_d.c5
-rw-r--r--mpq/get_den.c6
-rw-r--r--mpq/get_num.c6
-rw-r--r--mpq/init.c5
-rw-r--r--mpq/inv.c6
-rw-r--r--mpq/mul.c7
-rw-r--r--mpq/out_str.c7
-rw-r--r--mpq/set.c6
-rw-r--r--mpq/set_den.c6
-rw-r--r--mpq/set_num.c6
-rw-r--r--mpq/set_si.c7
-rw-r--r--mpq/set_ui.c7
-rw-r--r--mpq/set_z.c6
-rw-r--r--mpq/swap.c6
71 files changed, 0 insertions, 452 deletions
diff --git a/mpf/abs.c b/mpf/abs.c
index f61456642..724c9a2cf 100644
--- a/mpf/abs.c
+++ b/mpf/abs.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_abs (mpf_ptr r, mpf_srcptr u)
-#else
-mpf_abs (r, u)
- mpf_ptr r;
- mpf_srcptr u;
-#endif
{
mp_size_t size;
diff --git a/mpf/add.c b/mpf/add.c
index 34dc12a74..f78af563c 100644
--- a/mpf/add.c
+++ b/mpf/add.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_add (mpf_ptr r, mpf_srcptr u, mpf_srcptr v)
-#else
-mpf_add (r, u, v)
- mpf_ptr r;
- mpf_srcptr u;
- mpf_srcptr v;
-#endif
{
mp_srcptr up, vp;
mp_ptr rp, tp;
diff --git a/mpf/add_ui.c b/mpf/add_ui.c
index 810400267..a15a23725 100644
--- a/mpf/add_ui.c
+++ b/mpf/add_ui.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_add_ui (mpf_ptr sum, mpf_srcptr u, unsigned long int v)
-#else
-mpf_add_ui (sum, u, v)
- mpf_ptr sum;
- mpf_srcptr u;
- unsigned long int v;
-#endif
{
mp_srcptr up = u->_mp_d;
mp_ptr sump = sum->_mp_d;
diff --git a/mpf/clear.c b/mpf/clear.c
index c7d8bc842..5d04aa0a4 100644
--- a/mpf/clear.c
+++ b/mpf/clear.c
@@ -24,12 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_clear (mpf_ptr m)
-#else
-mpf_clear (m)
- mpf_ptr m;
-#endif
{
(*__gmp_free_func) (m->_mp_d, (m->_mp_prec + 1) * BYTES_PER_MP_LIMB);
}
diff --git a/mpf/cmp.c b/mpf/cmp.c
index eeaea7ad1..967f76bb9 100644
--- a/mpf/cmp.c
+++ b/mpf/cmp.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
mpf_cmp (mpf_srcptr u, mpf_srcptr v)
-#else
-mpf_cmp (u, v)
- mpf_srcptr u;
- mpf_srcptr v;
-#endif
{
mp_srcptr up, vp;
mp_size_t usize, vsize;
diff --git a/mpf/cmp_si.c b/mpf/cmp_si.c
index cecdcd98b..23afd0fd6 100644
--- a/mpf/cmp_si.c
+++ b/mpf/cmp_si.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
mpf_cmp_si (mpf_srcptr u, long int vslimb)
-#else
-mpf_cmp_si (u, vslimb)
- mpf_srcptr u;
- long int vslimb;
-#endif
{
mp_srcptr up;
mp_size_t usize;
diff --git a/mpf/cmp_ui.c b/mpf/cmp_ui.c
index 70133557e..f59d988d8 100644
--- a/mpf/cmp_ui.c
+++ b/mpf/cmp_ui.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
mpf_cmp_ui (mpf_srcptr u, unsigned long int vlimb)
-#else
-mpf_cmp_ui (u, vlimb)
- mpf_srcptr u;
- unsigned long int vlimb;
-#endif
{
mp_srcptr up;
mp_size_t usize;
diff --git a/mpf/div.c b/mpf/div.c
index 0fd258bf4..fe5202cf8 100644
--- a/mpf/div.c
+++ b/mpf/div.c
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
void
-#if __STDC__
mpf_div (mpf_ptr r, mpf_srcptr u, mpf_srcptr v)
-#else
-mpf_div (r, u, v)
- mpf_ptr r;
- mpf_srcptr u;
- mpf_srcptr v;
-#endif
{
mp_srcptr up, vp;
mp_ptr rp, tp, rtp;
diff --git a/mpf/div_2exp.c b/mpf/div_2exp.c
index 404f062a7..5ea6280e1 100644
--- a/mpf/div_2exp.c
+++ b/mpf/div_2exp.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_div_2exp (mpf_ptr r, mpf_srcptr u, unsigned long int exp)
-#else
-mpf_div_2exp (r, u, exp)
- mpf_ptr r;
- mpf_srcptr u;
- unsigned long int exp;
-#endif
{
mp_srcptr up;
mp_ptr rp = r->_mp_d;
diff --git a/mpf/div_ui.c b/mpf/div_ui.c
index fc93b2d6a..62db568f8 100644
--- a/mpf/div_ui.c
+++ b/mpf/div_ui.c
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
void
-#if __STDC__
mpf_div_ui (mpf_ptr r, mpf_srcptr u, unsigned long int v)
-#else
-mpf_div_ui (r, u, v)
- mpf_ptr r;
- mpf_srcptr u;
- unsigned long int v;
-#endif
{
mp_srcptr up;
mp_ptr rp, tp, rtp;
diff --git a/mpf/dump.c b/mpf/dump.c
index 9f026ecd3..7403318ae 100644
--- a/mpf/dump.c
+++ b/mpf/dump.c
@@ -29,12 +29,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_dump (mpf_srcptr u)
-#else
-mpf_dump (u)
- mpf_srcptr u;
-#endif
{
mp_exp_t exp;
char *str;
diff --git a/mpf/eq.c b/mpf/eq.c
index 517c04f58..e1320275f 100644
--- a/mpf/eq.c
+++ b/mpf/eq.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
mpf_eq (mpf_srcptr u, mpf_srcptr v, unsigned long int n_bits)
-#else
-mpf_eq (u, v, n_bits)
- mpf_srcptr u;
- mpf_srcptr v;
- unsigned long int n_bits;
-#endif
{
mp_srcptr up, vp;
mp_size_t usize, vsize, size, i;
diff --git a/mpf/get_d.c b/mpf/get_d.c
index 9bd1446d7..3cc088b56 100644
--- a/mpf/get_d.c
+++ b/mpf/get_d.c
@@ -23,12 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
double
-#if __STDC__
mpf_get_d (mpf_srcptr src)
-#else
-mpf_get_d (src)
- mpf_srcptr src;
-#endif
{
double res;
mp_size_t size, i, n_limbs_to_use;
diff --git a/mpf/get_prc.c b/mpf/get_prc.c
index fda1a2544..9b0350012 100644
--- a/mpf/get_prc.c
+++ b/mpf/get_prc.c
@@ -23,12 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpf_get_prec (mpf_srcptr x)
-#else
-mpf_get_prec (x)
- mpf_srcptr x;
-#endif
{
return (unsigned long int) x->_mp_prec * BITS_PER_MP_LIMB - BITS_PER_MP_LIMB;
}
diff --git a/mpf/get_str.c b/mpf/get_str.c
index d6e944f58..7fb8f9b3d 100644
--- a/mpf/get_str.c
+++ b/mpf/get_str.c
@@ -40,16 +40,7 @@ MA 02111-1307, USA. */
*/
char *
-#if __STDC__
mpf_get_str (char *digit_ptr, mp_exp_t *exp, int base, size_t n_digits, mpf_srcptr u)
-#else
-mpf_get_str (digit_ptr, exp, base, n_digits, u)
- char *digit_ptr;
- mp_exp_t *exp;
- int base;
- size_t n_digits;
- mpf_srcptr u;
-#endif
{
mp_ptr up;
mp_size_t usize;
diff --git a/mpf/init.c b/mpf/init.c
index 48c481830..5fc840d2b 100644
--- a/mpf/init.c
+++ b/mpf/init.c
@@ -23,12 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_init (mpf_ptr r)
-#else
-mpf_init (r)
- mpf_ptr r;
-#endif
{
mp_size_t prec = __gmp_default_fp_limb_precision;
r->_mp_d = (mp_ptr) (*__gmp_allocate_func) ((prec + 1) * BYTES_PER_MP_LIMB);
diff --git a/mpf/init2.c b/mpf/init2.c
index b357b31f3..8ca653ba8 100644
--- a/mpf/init2.c
+++ b/mpf/init2.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_init2 (mpf_ptr r, unsigned long int prec_in_bits)
-#else
-mpf_init2 (r, prec_in_bits)
- mpf_ptr r;
- unsigned long int prec_in_bits;
-#endif
{
mp_size_t prec;
diff --git a/mpf/inp_str.c b/mpf/inp_str.c
index d71267769..03e827c37 100644
--- a/mpf/inp_str.c
+++ b/mpf/inp_str.c
@@ -26,14 +26,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
size_t
-#if __STDC__
mpf_inp_str (mpf_ptr rop, FILE *stream, int base)
-#else
-mpf_inp_str (rop, stream, base)
- mpf_ptr rop;
- FILE *stream;
- int base;
-#endif
{
char *str;
size_t alloc_size, str_size;
diff --git a/mpf/integer.c b/mpf/integer.c
index 161623a21..f29e687eb 100644
--- a/mpf/integer.c
+++ b/mpf/integer.c
@@ -45,13 +45,7 @@ Error, error, unrecognised OPERATION
void
-#if __STDC__
FUNC_NAME (mpf_ptr r, mpf_srcptr u)
-#else
-FUNC_NAME (r, u)
- mpf_ptr r;
- mpf_srcptr u;
-#endif
{
mp_ptr rp, up;
mp_size_t size, asize;
diff --git a/mpf/iset.c b/mpf/iset.c
index 13b29e55d..fd5f8b0cf 100644
--- a/mpf/iset.c
+++ b/mpf/iset.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_init_set (mpf_ptr r, mpf_srcptr s)
-#else
-mpf_init_set (r, s)
- mpf_ptr r;
- mpf_srcptr s;
-#endif
{
mp_ptr rp, sp;
mp_size_t ssize, size;
diff --git a/mpf/iset_d.c b/mpf/iset_d.c
index f8e57a6d1..981272153 100644
--- a/mpf/iset_d.c
+++ b/mpf/iset_d.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_init_set_d (mpf_ptr r, double val)
-#else
-mpf_init_set_d (r, val)
- mpf_ptr r;
- double val;
-#endif
{
mp_size_t prec = __gmp_default_fp_limb_precision;
r->_mp_d = (mp_ptr) (*__gmp_allocate_func) ((prec + 1) * BYTES_PER_MP_LIMB);
diff --git a/mpf/iset_si.c b/mpf/iset_si.c
index 02c9ce635..a97bffb9f 100644
--- a/mpf/iset_si.c
+++ b/mpf/iset_si.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_init_set_si (mpf_ptr r, long int val)
-#else
-mpf_init_set_si (r, val)
- mpf_ptr r;
- long int val;
-#endif
{
mp_size_t prec = __gmp_default_fp_limb_precision;
r->_mp_d = (mp_ptr) (*__gmp_allocate_func) ((prec + 1) * BYTES_PER_MP_LIMB);
diff --git a/mpf/iset_str.c b/mpf/iset_str.c
index 99301fa0c..6b2b431a5 100644
--- a/mpf/iset_str.c
+++ b/mpf/iset_str.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
mpf_init_set_str (mpf_ptr r, const char *s, int base)
-#else
-mpf_init_set_str (r, s, base)
- mpf_ptr r;
- const char *s;
- int base;
-#endif
{
mp_size_t prec = __gmp_default_fp_limb_precision;
r->_mp_d = (mp_ptr) (*__gmp_allocate_func) ((prec + 1) * BYTES_PER_MP_LIMB);
diff --git a/mpf/iset_ui.c b/mpf/iset_ui.c
index 76f412d3f..e411f73d3 100644
--- a/mpf/iset_ui.c
+++ b/mpf/iset_ui.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_init_set_ui (mpf_ptr r, unsigned long int val)
-#else
-mpf_init_set_ui (r, val)
- mpf_ptr r;
- unsigned long int val;
-#endif
{
mp_size_t prec = __gmp_default_fp_limb_precision;
r->_mp_d = (mp_ptr) (*__gmp_allocate_func) ((prec + 1) * BYTES_PER_MP_LIMB);
diff --git a/mpf/mul.c b/mpf/mul.c
index 608cace05..3edfa2312 100644
--- a/mpf/mul.c
+++ b/mpf/mul.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_mul (mpf_ptr r, mpf_srcptr u, mpf_srcptr v)
-#else
-mpf_mul (r, u, v)
- mpf_ptr r;
- mpf_srcptr u;
- mpf_srcptr v;
-#endif
{
mp_srcptr up, vp;
mp_size_t usize, vsize;
diff --git a/mpf/mul_2exp.c b/mpf/mul_2exp.c
index 85d15df5d..6655e2b1e 100644
--- a/mpf/mul_2exp.c
+++ b/mpf/mul_2exp.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_mul_2exp (mpf_ptr r, mpf_srcptr u, unsigned long int exp)
-#else
-mpf_mul_2exp (r, u, exp)
- mpf_ptr r;
- mpf_srcptr u;
- unsigned long int exp;
-#endif
{
mp_srcptr up;
mp_ptr rp = r->_mp_d;
diff --git a/mpf/mul_ui.c b/mpf/mul_ui.c
index 892aafbfa..7a6cea362 100644
--- a/mpf/mul_ui.c
+++ b/mpf/mul_ui.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_mul_ui (mpf_ptr r, mpf_srcptr u, unsigned long int v)
-#else
-mpf_mul_ui (r, u, v)
- mpf_ptr r;
- mpf_srcptr u;
- unsigned long int v;
-#endif
{
mp_srcptr up;
mp_size_t usize;
diff --git a/mpf/neg.c b/mpf/neg.c
index 8cccb7dad..30715feea 100644
--- a/mpf/neg.c
+++ b/mpf/neg.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_neg (mpf_ptr r, mpf_srcptr u)
-#else
-mpf_neg (r, u)
- mpf_ptr r;
- mpf_srcptr u;
-#endif
{
mp_size_t size;
diff --git a/mpf/out_str.c b/mpf/out_str.c
index e0846674b..d9b919c58 100644
--- a/mpf/out_str.c
+++ b/mpf/out_str.c
@@ -27,15 +27,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
size_t
-#if __STDC__
mpf_out_str (FILE *stream, int base, size_t n_digits, mpf_srcptr op)
-#else
-mpf_out_str (stream, base, n_digits, op)
- FILE *stream;
- int base;
- size_t n_digits;
- mpf_srcptr op;
-#endif
{
char *str;
mp_exp_t exp;
diff --git a/mpf/pow_ui.c b/mpf/pow_ui.c
index e450f9098..a64cd805b 100644
--- a/mpf/pow_ui.c
+++ b/mpf/pow_ui.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_pow_ui (mpf_ptr r, mpf_srcptr b, unsigned long int e)
-#else
-mpf_pow_ui (r, b, e)
- mpf_ptr r;
- mpf_srcptr b;
- unsigned long int e;
-#endif
{
mpf_t b2;
unsigned long int e2;
diff --git a/mpf/random2.c b/mpf/random2.c
index 2e41f6b73..7ee77dca4 100644
--- a/mpf/random2.c
+++ b/mpf/random2.c
@@ -37,14 +37,7 @@ long random ();
#endif
void
-#if __STDC__
mpf_random2 (mpf_ptr x, mp_size_t size, mp_exp_t exp)
-#else
-mpf_random2 (x, size, exp)
- mpf_ptr x;
- mp_size_t size;
- mp_exp_t exp;
-#endif
{
mp_size_t asize;
mp_size_t prec = x->_mp_prec;
diff --git a/mpf/reldiff.c b/mpf/reldiff.c
index 538581d69..602bdbb67 100644
--- a/mpf/reldiff.c
+++ b/mpf/reldiff.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_reldiff (mpf_t rdiff, mpf_srcptr x, mpf_srcptr y)
-#else
-mpf_reldiff (rdiff, x, y)
- mpf_t rdiff;
- mpf_srcptr x;
- mpf_srcptr y;
-#endif
{
if (mpf_cmp_ui (x, 0) == 0)
{
diff --git a/mpf/set.c b/mpf/set.c
index 506547e2f..3a1c277e6 100644
--- a/mpf/set.c
+++ b/mpf/set.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_set (mpf_ptr r, mpf_srcptr u)
-#else
-mpf_set (r, u)
- mpf_ptr r;
- mpf_srcptr u;
-#endif
{
mp_ptr rp, up;
mp_size_t size, asize;
diff --git a/mpf/set_d.c b/mpf/set_d.c
index 76ee176fd..cd05c45fb 100644
--- a/mpf/set_d.c
+++ b/mpf/set_d.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_set_d (mpf_ptr r, double d)
-#else
-mpf_set_d (r, d)
- mpf_ptr r;
- double d;
-#endif
{
int negative;
diff --git a/mpf/set_dfl_prec.c b/mpf/set_dfl_prec.c
index 62151c11a..7c63c6696 100644
--- a/mpf/set_dfl_prec.c
+++ b/mpf/set_dfl_prec.c
@@ -26,12 +26,7 @@ mp_size_t __gmp_default_fp_limb_precision
= (53 + 2 * BITS_PER_MP_LIMB - 1) / BITS_PER_MP_LIMB;
void
-#if __STDC__
mpf_set_default_prec (unsigned long int prec_in_bits)
-#else
-mpf_set_default_prec (prec_in_bits)
- unsigned long int prec_in_bits;
-#endif
{
mp_size_t prec;
diff --git a/mpf/set_prc.c b/mpf/set_prc.c
index aa67e7cf9..e3c2ef7e8 100644
--- a/mpf/set_prc.c
+++ b/mpf/set_prc.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_set_prec (mpf_ptr x, unsigned long int prec_in_bits)
-#else
-mpf_set_prec (x, prec_in_bits)
- mpf_ptr x;
- unsigned long int prec_in_bits;
-#endif
{
mp_size_t prec;
mp_size_t size = ABS (x->_mp_size);
diff --git a/mpf/set_prc_raw.c b/mpf/set_prc_raw.c
index 8d56c736c..d1e68a58f 100644
--- a/mpf/set_prc_raw.c
+++ b/mpf/set_prc_raw.c
@@ -25,13 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_set_prec_raw (mpf_ptr x, unsigned long int prec_in_bits)
-#else
-mpf_set_prec_raw (x, prec_in_bits)
- mpf_ptr x;
- unsigned long int prec_in_bits;
-#endif
{
mp_size_t prec;
prec = (MAX (53, prec_in_bits) + 2 * BITS_PER_MP_LIMB - 1)/BITS_PER_MP_LIMB;
diff --git a/mpf/set_q.c b/mpf/set_q.c
index 0b81d2102..f4ad5bb7f 100644
--- a/mpf/set_q.c
+++ b/mpf/set_q.c
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
void
-#if __STDC__
mpf_set_q (mpf_t r, mpq_srcptr q)
-#else
-mpf_set_q (r, q)
- mpf_t r;
- mpq_srcptr q;
-#endif
{
mp_ptr np, dp;
mp_ptr rp;
diff --git a/mpf/set_si.c b/mpf/set_si.c
index 4f7ea9dfd..e579ddc3d 100644
--- a/mpf/set_si.c
+++ b/mpf/set_si.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_set_si (mpf_ptr x, long int val)
-#else
-mpf_set_si (x, val)
- mpf_ptr x;
- long int val;
-#endif
{
if (val > 0)
{
diff --git a/mpf/set_str.c b/mpf/set_str.c
index aad04c093..c9e2aab26 100644
--- a/mpf/set_str.c
+++ b/mpf/set_str.c
@@ -32,13 +32,7 @@ MA 02111-1307, USA. */
long int strtol _PROTO ((const char *, char **ptr, int));
static int
-#if __STDC__
digit_value_in_base (int c, int base)
-#else
-digit_value_in_base (c, base)
- int c;
- int base;
-#endif
{
int digit;
@@ -57,14 +51,7 @@ digit_value_in_base (c, base)
}
int
-#if __STDC__
mpf_set_str (mpf_ptr x, const char *str, int base)
-#else
-mpf_set_str (x, str, base)
- mpf_ptr x;
- char *str;
- int base;
-#endif
{
size_t str_size;
char *s, *begs;
diff --git a/mpf/set_ui.c b/mpf/set_ui.c
index 398df4e0c..5cac8abac 100644
--- a/mpf/set_ui.c
+++ b/mpf/set_ui.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_set_ui (mpf_ptr x, unsigned long int val)
-#else
-mpf_set_ui (x, val)
- mpf_ptr x;
- unsigned long int val;
-#endif
{
if (val != 0)
{
diff --git a/mpf/set_z.c b/mpf/set_z.c
index b023488b3..a1b4ef849 100644
--- a/mpf/set_z.c
+++ b/mpf/set_z.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_set_z (mpf_ptr r, mpz_srcptr u)
-#else
-mpf_set_z (r, u)
- mpf_ptr r;
- mpz_srcptr u;
-#endif
{
mp_ptr rp, up;
mp_size_t size, asize;
diff --git a/mpf/size.c b/mpf/size.c
index ed53a2e5e..f1480d5b5 100644
--- a/mpf/size.c
+++ b/mpf/size.c
@@ -24,12 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
size_t
-#if __STDC__
mpf_size (mpf_srcptr x)
-#else
-mpf_size (x)
- mpf_srcptr x;
-#endif
{
return ABS (x->_mp_size);
}
diff --git a/mpf/sqrt.c b/mpf/sqrt.c
index aaf5daa2e..a1a387761 100644
--- a/mpf/sqrt.c
+++ b/mpf/sqrt.c
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_sqrt (mpf_ptr r, mpf_srcptr u)
-#else
-mpf_sqrt (r, u)
- mpf_ptr r;
- mpf_srcptr u;
-#endif
{
mp_size_t usize;
mp_ptr up, tp;
diff --git a/mpf/sqrt_ui.c b/mpf/sqrt_ui.c
index b44f59a44..b0debc211 100644
--- a/mpf/sqrt_ui.c
+++ b/mpf/sqrt_ui.c
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_sqrt_ui (mpf_ptr r, unsigned long int u)
-#else
-mpf_sqrt_ui (r, u)
- mpf_ptr r;
- unsigned long int u;
-#endif
{
mp_size_t rsize;
mp_ptr tp;
diff --git a/mpf/sub.c b/mpf/sub.c
index 8933ab779..c4b012740 100644
--- a/mpf/sub.c
+++ b/mpf/sub.c
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_sub (mpf_ptr r, mpf_srcptr u, mpf_srcptr v)
-#else
-mpf_sub (r, u, v)
- mpf_ptr r;
- mpf_srcptr u;
- mpf_srcptr v;
-#endif
{
mp_srcptr up, vp;
mp_ptr rp, tp;
diff --git a/mpf/sub_ui.c b/mpf/sub_ui.c
index 714b3424d..148139f4d 100644
--- a/mpf/sub_ui.c
+++ b/mpf/sub_ui.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_sub_ui (mpf_ptr sum, mpf_srcptr u, unsigned long int v)
-#else
-mpf_sub_ui (sum, u, v)
- mpf_ptr sum;
- mpf_srcptr u;
- unsigned long int v;
-#endif
{
__mpf_struct vv;
mp_limb_t vl;
diff --git a/mpf/swap.c b/mpf/swap.c
index 96615274d..a93dc5241 100644
--- a/mpf/swap.c
+++ b/mpf/swap.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_swap (mpf_ptr u, mpf_ptr v)
-#else
-mpf_swap (u, v)
- mpf_ptr u;
- mpf_ptr v;
-#endif
{
mp_ptr up, vp;
mp_size_t usize, vsize;
diff --git a/mpf/ui_div.c b/mpf/ui_div.c
index 9c9c3b55e..22e31d8d5 100644
--- a/mpf/ui_div.c
+++ b/mpf/ui_div.c
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
void
-#if __STDC__
mpf_ui_div (mpf_ptr r, unsigned long int u, mpf_srcptr v)
-#else
-mpf_ui_div (r, u, v)
- mpf_ptr r;
- unsigned long int u;
- mpf_srcptr v;
-#endif
{
mp_srcptr vp;
mp_ptr rp, tp;
diff --git a/mpf/ui_sub.c b/mpf/ui_sub.c
index d2fc2a38a..6397de712 100644
--- a/mpf/ui_sub.c
+++ b/mpf/ui_sub.c
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_ui_sub (mpf_ptr r, unsigned long int u, mpf_srcptr v)
-#else
-mpf_ui_sub (r, u, v)
- mpf_ptr r;
- unsigned long int u;
- mpf_srcptr v;
-#endif
{
mp_srcptr up, vp;
mp_ptr rp, tp;
diff --git a/mpf/urandomb.c b/mpf/urandomb.c
index 15d73ae82..ae7779735 100644
--- a/mpf/urandomb.c
+++ b/mpf/urandomb.c
@@ -26,14 +26,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpf_urandomb (mpf_t rop, gmp_randstate_t rstate, unsigned long int nbits)
-#else
-mpf_urandomb (rop, rstate, nbits)
- mpf_t rop;
- gmp_randstate_t rstate;
- unsigned long int nbits;
-#endif
{
mp_ptr rp;
mp_size_t nlimbs;
diff --git a/mpq/canonicalize.c b/mpq/canonicalize.c
index b6cb9d28d..a697e8d5b 100644
--- a/mpq/canonicalize.c
+++ b/mpq/canonicalize.c
@@ -24,12 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_canonicalize (MP_RAT *op)
-#else
-mpq_canonicalize (op)
- MP_RAT *op;
-#endif
{
mpz_t gcd;
TMP_DECL (marker);
diff --git a/mpq/clear.c b/mpq/clear.c
index 444e1f9ef..c824a93da 100644
--- a/mpq/clear.c
+++ b/mpq/clear.c
@@ -23,12 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_clear (MP_RAT *m)
-#else
-mpq_clear (m)
- MP_RAT *m;
-#endif
{
(*__gmp_free_func) (m->_mp_num._mp_d,
m->_mp_num._mp_alloc * BYTES_PER_MP_LIMB);
diff --git a/mpq/cmp.c b/mpq/cmp.c
index d84f7f408..2400e3aaa 100644
--- a/mpq/cmp.c
+++ b/mpq/cmp.c
@@ -25,13 +25,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
int
-#if __STDC__
mpq_cmp (const MP_RAT *op1, const MP_RAT *op2)
-#else
-mpq_cmp (op1, op2)
- const MP_RAT *op1;
- const MP_RAT *op2;
-#endif
{
mp_size_t num1_size = op1->_mp_num._mp_size;
mp_size_t den1_size = op1->_mp_den._mp_size;
diff --git a/mpq/cmp_ui.c b/mpq/cmp_ui.c
index 48fcd63a1..3ba041c5e 100644
--- a/mpq/cmp_ui.c
+++ b/mpq/cmp_ui.c
@@ -25,14 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
_mpq_cmp_ui (const MP_RAT *op1, unsigned long int num2, unsigned long int den2)
-#else
-_mpq_cmp_ui (op1, num2, den2)
- const MP_RAT *op1;
- unsigned long int num2;
- unsigned long int den2;
-#endif
{
mp_size_t num1_size = op1->_mp_num._mp_size;
mp_size_t den1_size = op1->_mp_den._mp_size;
diff --git a/mpq/div.c b/mpq/div.c
index d192d8d2e..7eb27efbb 100644
--- a/mpq/div.c
+++ b/mpq/div.c
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
void
-#if __STDC__
mpq_div (mpq_ptr quot, mpq_srcptr op1, mpq_srcptr op2)
-#else
-mpq_div (quot, op1, op2)
- mpq_ptr quot;
- mpq_srcptr op1;
- mpq_srcptr op2;
-#endif
{
mpz_t gcd1, gcd2;
mpz_t tmp1, tmp2;
diff --git a/mpq/equal.c b/mpq/equal.c
index 47f51ed3e..c76d3087d 100644
--- a/mpq/equal.c
+++ b/mpq/equal.c
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
mpq_equal (mpq_srcptr op1, mpq_srcptr op2)
-#else
-mpq_equal (op1, op2)
- mpq_srcptr op1;
- mpq_srcptr op2;
-#endif
{
mp_size_t num1_size = op1->_mp_num._mp_size;
mp_size_t den1_size = op1->_mp_den._mp_size;
diff --git a/mpq/get_d.c b/mpq/get_d.c
index 7cd06e50a..d9ced7406 100644
--- a/mpq/get_d.c
+++ b/mpq/get_d.c
@@ -49,12 +49,7 @@ MA 02111-1307, USA. */
*/
double
-#if __STDC__
mpq_get_d (const MP_RAT *src)
-#else
-mpq_get_d (src)
- const MP_RAT *src;
-#endif
{
mp_ptr np, dp;
mp_ptr rp;
diff --git a/mpq/get_den.c b/mpq/get_den.c
index 7bd191ad1..53b643470 100644
--- a/mpq/get_den.c
+++ b/mpq/get_den.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_get_den (MP_INT *den, const MP_RAT *src)
-#else
-mpq_get_den (den, src)
- MP_INT *den;
- const MP_RAT *src;
-#endif
{
mp_size_t size = src->_mp_den._mp_size;
diff --git a/mpq/get_num.c b/mpq/get_num.c
index ccd3adf1f..4658e0d7c 100644
--- a/mpq/get_num.c
+++ b/mpq/get_num.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_get_num (MP_INT *num, const MP_RAT *src)
-#else
-mpq_get_num (num, src)
- MP_INT *num;
- const MP_RAT *src;
-#endif
{
mp_size_t size = src->_mp_num._mp_size;
mp_size_t abs_size = ABS (size);
diff --git a/mpq/init.c b/mpq/init.c
index 7291cdc62..74cfd0a86 100644
--- a/mpq/init.c
+++ b/mpq/init.c
@@ -23,12 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_init (MP_RAT *x)
-#else
-mpq_init (x)
- MP_RAT *x;
-#endif
{
x->_mp_num._mp_alloc = 1;
x->_mp_num._mp_d = (mp_ptr) (*__gmp_allocate_func) (BYTES_PER_MP_LIMB);
diff --git a/mpq/inv.c b/mpq/inv.c
index 14bf0a0dd..e7ee32b54 100644
--- a/mpq/inv.c
+++ b/mpq/inv.c
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_inv (MP_RAT *dest, const MP_RAT *src)
-#else
-mpq_inv (dest, src)
- MP_RAT *dest;
- const MP_RAT *src;
-#endif
{
mp_size_t num_size = src->_mp_num._mp_size;
mp_size_t den_size = src->_mp_den._mp_size;
diff --git a/mpq/mul.c b/mpq/mul.c
index a6863d319..beab30cf6 100644
--- a/mpq/mul.c
+++ b/mpq/mul.c
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
void
-#if __STDC__
mpq_mul (mpq_ptr prod, mpq_srcptr op1, mpq_srcptr op2)
-#else
-mpq_mul (prod, op1, op2)
- mpq_ptr prod;
- mpq_srcptr op1;
- mpq_srcptr op2;
-#endif
{
mpz_t gcd1, gcd2;
mpz_t tmp1, tmp2;
diff --git a/mpq/out_str.c b/mpq/out_str.c
index 035edfce8..9123386c6 100644
--- a/mpq/out_str.c
+++ b/mpq/out_str.c
@@ -27,14 +27,7 @@ MA 02111-1307, USA.
size_t
-#if __STDC__
mpq_out_str (FILE *stream, int base, mpq_srcptr q)
-#else
-mpq_out_str (stream, base, q)
- FILE *stream;
- int base;
- mpq_srcptr q;
-#endif
{
size_t written;
diff --git a/mpq/set.c b/mpq/set.c
index 4f9e9ca41..b8d612b32 100644
--- a/mpq/set.c
+++ b/mpq/set.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_set (MP_RAT *dest, const MP_RAT *src)
-#else
-mpq_set (dest, src)
- MP_RAT *dest;
- const MP_RAT *src;
-#endif
{
mp_size_t num_size, den_size;
mp_size_t abs_num_size;
diff --git a/mpq/set_den.c b/mpq/set_den.c
index 63f57ec5c..4382c0aca 100644
--- a/mpq/set_den.c
+++ b/mpq/set_den.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_set_den (MP_RAT *dest, const MP_INT *den)
-#else
-mpq_set_den (dest, den)
- MP_RAT *dest;
- const MP_INT *den;
-#endif
{
mp_size_t size = den->_mp_size;
mp_size_t abs_size = ABS (size);
diff --git a/mpq/set_num.c b/mpq/set_num.c
index 3081f1e38..d833d56cf 100644
--- a/mpq/set_num.c
+++ b/mpq/set_num.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_set_num (MP_RAT *dest, const MP_INT *num)
-#else
-mpq_set_num (dest, num)
- MP_RAT *dest;
- const MP_INT *num;
-#endif
{
mp_size_t size = num->_mp_size;
mp_size_t abs_size = ABS (size);
diff --git a/mpq/set_si.c b/mpq/set_si.c
index 1c45eb642..8ed0c64b9 100644
--- a/mpq/set_si.c
+++ b/mpq/set_si.c
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_set_si (MP_RAT *dest, signed long int num, unsigned long int den)
-#else
-mpq_set_si (dest, num, den)
- MP_RAT *dest;
- signed long int num;
- unsigned long int den;
-#endif
{
unsigned long int abs_num;
diff --git a/mpq/set_ui.c b/mpq/set_ui.c
index d9f654a29..ba0125348 100644
--- a/mpq/set_ui.c
+++ b/mpq/set_ui.c
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_set_ui (MP_RAT *dest, unsigned long int num, unsigned long int den)
-#else
-mpq_set_ui (dest, num, den)
- MP_RAT *dest;
- unsigned long int num;
- unsigned long int den;
-#endif
{
if (num == 0)
{
diff --git a/mpq/set_z.c b/mpq/set_z.c
index c094e9fee..d371243a1 100644
--- a/mpq/set_z.c
+++ b/mpq/set_z.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_set_z (mpq_ptr dest, mpz_srcptr src)
-#else
-mpq_set_z (dest, src)
- mpq_ptr dest;
- mpz_srcptr src;
-#endif
{
mp_size_t num_size;
mp_size_t abs_num_size;
diff --git a/mpq/swap.c b/mpq/swap.c
index 13971765a..530e9411e 100644
--- a/mpq/swap.c
+++ b/mpq/swap.c
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpq_swap (mpq_ptr u, mpq_ptr v)
-#else
-mpq_swap (u, v)
- mpq_ptr u;
- mpq_ptr v;
-#endif
{
mp_ptr up, vp;
mp_size_t usize, vsize;