diff options
author | tege <tege@gmplib.org> | 2001-01-02 09:23:11 +0100 |
---|---|---|
committer | tege <tege@gmplib.org> | 2001-01-02 09:23:11 +0100 |
commit | c8ed2f542a370da62a92d2e9b70b57ecfc7fdb6b (patch) | |
tree | c3012d0a2e109fc6172403c8fbc3b1923f6dc7d9 /mpbsd | |
parent | d82b3e71f45de318ce3d2172a772ed812900170d (diff) | |
download | gmp-c8ed2f542a370da62a92d2e9b70b57ecfc7fdb6b.tar.gz |
Remove K&R function headers.
Diffstat (limited to 'mpbsd')
-rw-r--r-- | mpbsd/itom.c | 7 | ||||
-rw-r--r-- | mpbsd/mfree.c | 7 | ||||
-rw-r--r-- | mpbsd/min.c | 13 | ||||
-rw-r--r-- | mpbsd/mout.c | 5 | ||||
-rw-r--r-- | mpbsd/mtox.c | 7 | ||||
-rw-r--r-- | mpbsd/sdiv.c | 10 | ||||
-rw-r--r-- | mpbsd/xtom.c | 13 |
7 files changed, 6 insertions, 56 deletions
diff --git a/mpbsd/itom.c b/mpbsd/itom.c index 11e6ac0ff..114dee09e 100644 --- a/mpbsd/itom.c +++ b/mpbsd/itom.c @@ -1,6 +1,6 @@ /* itom -- BSD compatible allocate and initiate a MINT. -Copyright 1991, 1994, 1995, 2000 Free Software Foundation, Inc. +Copyright 1991, 1994, 1995, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -24,12 +24,7 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" MINT * -#if __STDC__ itom (signed short int n) -#else -itom (n) - short int n; -#endif { MINT *x; mp_ptr xp; diff --git a/mpbsd/mfree.c b/mpbsd/mfree.c index 5fb395557..498e0585d 100644 --- a/mpbsd/mfree.c +++ b/mpbsd/mfree.c @@ -1,6 +1,6 @@ /* mfree -- BSD compatible mfree. -Copyright 1991, 1994, 1995, 2000 Free Software Foundation, Inc. +Copyright 1991, 1994, 1995, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -24,12 +24,7 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" void -#if __STDC__ mfree (MINT *m) -#else -mfree (m) - MINT *m; -#endif { (*__gmp_free_func) (m->_mp_d, m->_mp_alloc * BYTES_PER_MP_LIMB); (*__gmp_free_func) (m, sizeof (MINT)); diff --git a/mpbsd/min.c b/mpbsd/min.c index 3a9a35383..f82eb51ff 100644 --- a/mpbsd/min.c +++ b/mpbsd/min.c @@ -1,7 +1,7 @@ /* min(MINT) -- Do decimal input from standard input and store result in MINT. -Copyright 1991, 1994, 1996, 2000 Free Software Foundation, Inc. +Copyright 1991, 1994, 1996, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -27,13 +27,7 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" 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; @@ -52,12 +46,7 @@ digit_value_in_base (c, base) } void -#if __STDC__ min (MINT *dest) -#else -min (dest) - MINT *dest; -#endif { char *str; size_t alloc_size, str_size; diff --git a/mpbsd/mout.c b/mpbsd/mout.c index 88a408c83..0484606f9 100644 --- a/mpbsd/mout.c +++ b/mpbsd/mout.c @@ -26,12 +26,7 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" void -#if __STDC__ mout (const MINT *x) -#else -mout (x) - const MINT *x; -#endif { mp_ptr xp; mp_size_t x_size = x->_mp_size; diff --git a/mpbsd/mtox.c b/mpbsd/mtox.c index e01de3dfa..ca6c08e27 100644 --- a/mpbsd/mtox.c +++ b/mpbsd/mtox.c @@ -1,7 +1,7 @@ /* mtox -- Convert OPERAND to hexadecimal and return a malloc'ed string with the result of the conversion. -Copyright 1991, 1994, 2000 Free Software Foundation, Inc. +Copyright 1991, 1994, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -25,12 +25,7 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" char * -#if __STDC__ mtox (const MINT *x) -#else -mtox (x) - const MINT *x; -#endif { mp_ptr xp; mp_size_t xsize = x->_mp_size; diff --git a/mpbsd/sdiv.c b/mpbsd/sdiv.c index 51d08a53d..80ebe66b9 100644 --- a/mpbsd/sdiv.c +++ b/mpbsd/sdiv.c @@ -1,7 +1,7 @@ /* sdiv -- Divide a MINT by a short integer. Produce a MINT quotient and a short remainder. -Copyright 1991, 1994, 1995, 2000 Free Software Foundation, Inc. +Copyright 1991, 1994, 1995, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -26,15 +26,7 @@ MA 02111-1307, USA. */ #include "longlong.h" void -#if __STDC__ sdiv (const MINT *dividend, signed short int divisor_short, MINT *quot, short *rem_ptr) -#else -sdiv (dividend, divisor_short, quot, rem_ptr) - const MINT *dividend; - short int divisor_short; - MINT *quot; - short *rem_ptr; -#endif { mp_size_t sign_dividend; signed long int sign_divisor; diff --git a/mpbsd/xtom.c b/mpbsd/xtom.c index baa45e6c2..45d48cd88 100644 --- a/mpbsd/xtom.c +++ b/mpbsd/xtom.c @@ -1,7 +1,7 @@ /* xtom -- convert a hexadecimal string to a MINT, and return a pointer to the MINT. -Copyright 1991, 1994, 1995, 1996, 2000 Free Software Foundation, Inc. +Copyright 1991, 1994, 1995, 1996, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -27,13 +27,7 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" 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; @@ -52,12 +46,7 @@ digit_value_in_base (c, base) } MINT * -#if __STDC__ xtom (const char *str) -#else -xtom (str) - const char *str; -#endif { size_t str_size; char *s, *begs; |