diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2008-12-07 18:20:46 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2008-12-07 18:20:46 +0100 |
commit | c03242552746fbb30331262c4c6b257a83fd4eb4 (patch) | |
tree | 1629ad4ed81c74ff3af59d93aeb76000406401ea /tests | |
parent | bd807c9045ca022b8898c90bc540aba8f08db3b6 (diff) | |
download | gmp-c03242552746fbb30331262c4c6b257a83fd4eb4.tar.gz |
Change _PROTO => __GMP_PROTO.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/devel/try.c | 6 | ||||
-rw-r--r-- | tests/misc.c | 2 | ||||
-rw-r--r-- | tests/misc/t-scanf.c | 2 | ||||
-rw-r--r-- | tests/mpf/reuse.c | 14 | ||||
-rw-r--r-- | tests/mpn/t-aors_1.c | 4 | ||||
-rw-r--r-- | tests/mpq/t-get_d.c | 2 | ||||
-rw-r--r-- | tests/mpq/t-md_2exp.c | 2 | ||||
-rw-r--r-- | tests/mpz/convert.c | 2 | ||||
-rw-r--r-- | tests/mpz/logic.c | 4 | ||||
-rw-r--r-- | tests/mpz/reuse.c | 16 | ||||
-rw-r--r-- | tests/mpz/t-addsub.c | 4 | ||||
-rw-r--r-- | tests/mpz/t-cdiv_ui.c | 4 | ||||
-rw-r--r-- | tests/mpz/t-fdiv.c | 4 | ||||
-rw-r--r-- | tests/mpz/t-fdiv_ui.c | 4 | ||||
-rw-r--r-- | tests/mpz/t-mul.c | 8 | ||||
-rw-r--r-- | tests/mpz/t-powm.c | 2 | ||||
-rw-r--r-- | tests/mpz/t-powm_ui.c | 4 | ||||
-rw-r--r-- | tests/mpz/t-root.c | 2 | ||||
-rw-r--r-- | tests/mpz/t-sqrtrem.c | 4 | ||||
-rw-r--r-- | tests/mpz/t-tdiv.c | 4 | ||||
-rw-r--r-- | tests/mpz/t-tdiv_ui.c | 4 |
21 files changed, 49 insertions, 49 deletions
diff --git a/tests/devel/try.c b/tests/devel/try.c index e9cb8f9c2..e3dc75074 100644 --- a/tests/devel/try.c +++ b/tests/devel/try.c @@ -288,7 +288,7 @@ struct each_t fun = { "Fun" }; #define SRC_SIZE(n) ((n) == 1 && tr->size2 ? size2 : size) -void validate_fail _PROTO ((void)); +void validate_fail __GMP_PROTO ((void)); #if HAVE_TRY_NEW_C @@ -296,7 +296,7 @@ void validate_fail _PROTO ((void)); #endif -typedef mp_limb_t (*tryfun_t) _PROTO ((ANYARGS)); +typedef mp_limb_t (*tryfun_t) __GMP_PROTO ((ANYARGS)); struct try_t { char retval; @@ -367,7 +367,7 @@ struct try_t { tryfun_t reference; const char *reference_name; - void (*validate) _PROTO ((void)); + void (*validate) __GMP_PROTO ((void)); const char *validate_name; }; diff --git a/tests/misc.c b/tests/misc.c index 4aa9bdf1d..19c657c7f 100644 --- a/tests/misc.c +++ b/tests/misc.c @@ -123,7 +123,7 @@ tests_rand_end (void) /* Only used if CPU calling conventions checking is available. */ -mp_limb_t (*calling_conventions_function) _PROTO ((ANYARGS)); +mp_limb_t (*calling_conventions_function) __GMP_PROTO ((ANYARGS)); /* Return p advanced to the next multiple of "align" bytes. "align" must be diff --git a/tests/misc/t-scanf.c b/tests/misc/t-scanf.c index e4709e52f..5a9eda1fc 100644 --- a/tests/misc/t-scanf.c +++ b/tests/misc/t-scanf.c @@ -63,7 +63,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ int option_libc_scanf = 0; -typedef int (*fun_t) _PROTO ((const char *, const char *, void *, void *)); +typedef int (*fun_t) __GMP_PROTO ((const char *, const char *, void *, void *)); /* This problem was seen on powerpc7450-apple-darwin7.0.0, sscanf returns 0 diff --git a/tests/mpf/reuse.c b/tests/mpf/reuse.c index 3d7c5dba2..f373ac700 100644 --- a/tests/mpf/reuse.c +++ b/tests/mpf/reuse.c @@ -50,9 +50,9 @@ main (void) #define EXPO 32 #endif -void dump_abort _PROTO ((char *name, mpf_t res1, mpf_t res2)); +void dump_abort __GMP_PROTO ((char *, mpf_t, mpf_t)); -typedef void (*dss_func) _PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); +typedef void (*dss_func) __GMP_PROTO ((mpf_ptr, mpf_srcptr, mpf_srcptr)); dss_func dss_funcs[] = { @@ -64,7 +64,7 @@ char *dss_func_names[] = "mpf_div", "mpf_add", "mpf_mul", "mpf_sub", }; -typedef void (*dsi_func) _PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); +typedef void (*dsi_func) __GMP_PROTO ((mpf_ptr, mpf_srcptr, unsigned long int)); dsi_func dsi_funcs[] = { @@ -78,7 +78,7 @@ char *dsi_func_names[] = "mpf_mul_2exp", "mpf_div_2exp" }; -typedef void (*dis_func) _PROTO ((mpf_ptr, unsigned long int, mpf_srcptr)); +typedef void (*dis_func) __GMP_PROTO ((mpf_ptr, unsigned long int, mpf_srcptr)); dis_func dis_funcs[] = { @@ -203,9 +203,9 @@ dump_abort (char *name, mpf_t res1, mpf_t res2) } #if 0 -void mpf_abs _PROTO ((mpf_ptr, mpf_srcptr)); -void mpf_sqrt _PROTO ((mpf_ptr, mpf_srcptr)); -void mpf_neg _PROTO ((mpf_ptr, mpf_srcptr)); +void mpf_abs __GMP_PROTO ((mpf_ptr, mpf_srcptr)); +void mpf_sqrt __GMP_PROTO ((mpf_ptr, mpf_srcptr)); +void mpf_neg __GMP_PROTO ((mpf_ptr, mpf_srcptr)); #endif #endif /* ! DLL_EXPORT */ diff --git a/tests/mpn/t-aors_1.c b/tests/mpn/t-aors_1.c index be9391b48..a1878bb84 100644 --- a/tests/mpn/t-aors_1.c +++ b/tests/mpn/t-aors_1.c @@ -49,8 +49,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ } while (0) typedef mp_limb_t (*mpn_aors_1_t) - _PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); -mpn_aors_1_t fudge _PROTO ((mpn_aors_1_t)); + __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); +mpn_aors_1_t fudge __GMP_PROTO ((mpn_aors_1_t)); void diff --git a/tests/mpq/t-get_d.c b/tests/mpq/t-get_d.c index cae4da93b..f11618901 100644 --- a/tests/mpq/t-get_d.c +++ b/tests/mpq/t-get_d.c @@ -39,7 +39,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #define EPSIZE SIZE #endif -void dump _PROTO ((mpq_t)); +void dump __GMP_PROTO ((mpq_t)); void check_monotonic (int argc, char **argv) diff --git a/tests/mpq/t-md_2exp.c b/tests/mpq/t-md_2exp.c index 6c80ce8d9..3c1f9f44b 100644 --- a/tests/mpq/t-md_2exp.c +++ b/tests/mpq/t-md_2exp.c @@ -96,7 +96,7 @@ main (void) { {"1","0x10000000000000000"}, 3, {"1","0x2000000000000000"} }, }; - void (*fun) _PROTO ((mpq_ptr, mpq_srcptr, unsigned long)); + void (*fun) __GMP_PROTO ((mpq_ptr, mpq_srcptr, unsigned long)); const struct pair_t *p_start, *p_want; const char *name; mpq_t sep, got, want; diff --git a/tests/mpz/convert.c b/tests/mpz/convert.c index 6a4a3ce60..bfe8b70b3 100644 --- a/tests/mpz/convert.c +++ b/tests/mpz/convert.c @@ -26,7 +26,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "gmp-impl.h" #include "tests.h" -void debug_mp _PROTO ((mpz_t, int)); +void debug_mp __GMP_PROTO ((mpz_t, int)); void diff --git a/tests/mpz/logic.c b/tests/mpz/logic.c index 76cbefaf1..faa140684 100644 --- a/tests/mpz/logic.c +++ b/tests/mpz/logic.c @@ -24,8 +24,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "gmp-impl.h" #include "tests.h" -void dump_abort _PROTO (()); -void debug_mp _PROTO ((mpz_t, int)); +void dump_abort __GMP_PROTO (()); +void debug_mp __GMP_PROTO ((mpz_t, int)); int main (int argc, char **argv) diff --git a/tests/mpz/reuse.c b/tests/mpz/reuse.c index 5362fdcca..cbd4d3da8 100644 --- a/tests/mpz/reuse.c +++ b/tests/mpz/reuse.c @@ -48,14 +48,14 @@ main (void) #else /* ! DLL_EXPORT */ -void dump _PROTO ((char *, mpz_t, mpz_t, mpz_t)); - -typedef void (*dss_func) _PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); -typedef void (*dsi_func) _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); -typedef unsigned long int (*dsi_div_func) _PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); -typedef unsigned long int (*ddsi_div_func) _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, unsigned long int)); -typedef void (*ddss_div_func) _PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr)); -typedef void (*ds_func) _PROTO ((mpz_ptr, mpz_srcptr)); +void dump __GMP_PROTO ((char *, mpz_t, mpz_t, mpz_t)); + +typedef void (*dss_func) __GMP_PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr)); +typedef void (*dsi_func) __GMP_PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +typedef unsigned long int (*dsi_div_func) __GMP_PROTO ((mpz_ptr, mpz_srcptr, unsigned long int)); +typedef unsigned long int (*ddsi_div_func) __GMP_PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, unsigned long int)); +typedef void (*ddss_div_func) __GMP_PROTO ((mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr)); +typedef void (*ds_func) __GMP_PROTO ((mpz_ptr, mpz_srcptr)); void diff --git a/tests/mpz/t-addsub.c b/tests/mpz/t-addsub.c index b0e23f602..815a83973 100644 --- a/tests/mpz/t-addsub.c +++ b/tests/mpz/t-addsub.c @@ -25,8 +25,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "longlong.h" #include "tests.h" -void debug_mp _PROTO ((mpz_t, int)); -void dump_abort _PROTO ((int, char *, mpz_t, mpz_t)); +void debug_mp __GMP_PROTO ((mpz_t, int)); +void dump_abort __GMP_PROTO ((int, char *, mpz_t, mpz_t)); int main (int argc, char **argv) diff --git a/tests/mpz/t-cdiv_ui.c b/tests/mpz/t-cdiv_ui.c index 1899ae757..1f6be7fe7 100644 --- a/tests/mpz/t-cdiv_ui.c +++ b/tests/mpz/t-cdiv_ui.c @@ -25,8 +25,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "gmp-impl.h" #include "tests.h" -void dump_abort _PROTO ((char *, mpz_t, unsigned long)); -void debug_mp _PROTO ((mpz_t, int)); +void dump_abort __GMP_PROTO ((char *, mpz_t, unsigned long)); +void debug_mp __GMP_PROTO ((mpz_t, int)); int main (int argc, char **argv) diff --git a/tests/mpz/t-fdiv.c b/tests/mpz/t-fdiv.c index 876251dcf..2e9ef7551 100644 --- a/tests/mpz/t-fdiv.c +++ b/tests/mpz/t-fdiv.c @@ -25,8 +25,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "gmp-impl.h" #include "tests.h" -void dump_abort _PROTO ((mpz_t, mpz_t)); -void debug_mp _PROTO ((mpz_t, int)); +void dump_abort __GMP_PROTO ((mpz_t, mpz_t)); +void debug_mp __GMP_PROTO ((mpz_t, int)); int main (int argc, char **argv) diff --git a/tests/mpz/t-fdiv_ui.c b/tests/mpz/t-fdiv_ui.c index ab3673407..3012d9b11 100644 --- a/tests/mpz/t-fdiv_ui.c +++ b/tests/mpz/t-fdiv_ui.c @@ -25,8 +25,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "gmp-impl.h" #include "tests.h" -void dump_abort _PROTO ((char *, mpz_t, unsigned long)); -void debug_mp _PROTO ((mpz_t, int)); +void dump_abort __GMP_PROTO ((char *, mpz_t, unsigned long)); +void debug_mp __GMP_PROTO ((mpz_t, int)); int main (int argc, char **argv) diff --git a/tests/mpz/t-mul.c b/tests/mpz/t-mul.c index 24beb5c1f..b67ae3ecf 100644 --- a/tests/mpz/t-mul.c +++ b/tests/mpz/t-mul.c @@ -26,10 +26,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "longlong.h" #include "tests.h" -void debug_mp _PROTO ((mpz_t)); -static void ref_mpn_mul _PROTO ((mp_ptr,mp_srcptr,mp_size_t,mp_srcptr,mp_size_t)); -static void ref_mpz_mul _PROTO ((mpz_t, const mpz_t, const mpz_t)); -void dump_abort _PROTO ((int, char *, mpz_t, mpz_t, mpz_t, mpz_t)); +void debug_mp __GMP_PROTO ((mpz_t)); +static void ref_mpn_mul __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)); +static void ref_mpz_mul __GMP_PROTO ((mpz_t, const mpz_t, const mpz_t)); +void dump_abort __GMP_PROTO ((int, char *, mpz_t, mpz_t, mpz_t, mpz_t)); #define FFT_MIN_BITSIZE 100000 diff --git a/tests/mpz/t-powm.c b/tests/mpz/t-powm.c index a334f1dec..ec92422cc 100644 --- a/tests/mpz/t-powm.c +++ b/tests/mpz/t-powm.c @@ -25,7 +25,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "gmp-impl.h" #include "tests.h" -void debug_mp _PROTO ((mpz_t, int)); +void debug_mp __GMP_PROTO ((mpz_t, int)); int main (int argc, char **argv) diff --git a/tests/mpz/t-powm_ui.c b/tests/mpz/t-powm_ui.c index 91914a445..82b2e5030 100644 --- a/tests/mpz/t-powm_ui.c +++ b/tests/mpz/t-powm_ui.c @@ -25,8 +25,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "gmp-impl.h" #include "tests.h" -void dump_abort _PROTO ((mpz_t, mpz_t)); -void debug_mp _PROTO ((mpz_t, int)); +void dump_abort __GMP_PROTO ((mpz_t, mpz_t)); +void debug_mp __GMP_PROTO ((mpz_t, int)); int main (int argc, char **argv) diff --git a/tests/mpz/t-root.c b/tests/mpz/t-root.c index e31af2cae..f5b9d0c85 100644 --- a/tests/mpz/t-root.c +++ b/tests/mpz/t-root.c @@ -24,7 +24,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "gmp-impl.h" #include "tests.h" -void debug_mp _PROTO ((mpz_t, int)); +void debug_mp __GMP_PROTO ((mpz_t, int)); int main (int argc, char **argv) diff --git a/tests/mpz/t-sqrtrem.c b/tests/mpz/t-sqrtrem.c index 752c98cba..8f375d30b 100644 --- a/tests/mpz/t-sqrtrem.c +++ b/tests/mpz/t-sqrtrem.c @@ -25,8 +25,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "gmp-impl.h" #include "tests.h" -void dump_abort _PROTO ((mpz_t, mpz_t, mpz_t)); -void debug_mp _PROTO ((mpz_t, int)); +void dump_abort __GMP_PROTO ((mpz_t, mpz_t, mpz_t)); +void debug_mp __GMP_PROTO ((mpz_t, int)); int main (int argc, char **argv) diff --git a/tests/mpz/t-tdiv.c b/tests/mpz/t-tdiv.c index e19ab9921..7a2da7278 100644 --- a/tests/mpz/t-tdiv.c +++ b/tests/mpz/t-tdiv.c @@ -25,8 +25,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "gmp-impl.h" #include "tests.h" -void dump_abort _PROTO ((mpz_t, mpz_t)); -void debug_mp _PROTO ((mpz_t, int)); +void dump_abort __GMP_PROTO ((mpz_t, mpz_t)); +void debug_mp __GMP_PROTO ((mpz_t, int)); int main (int argc, char **argv) diff --git a/tests/mpz/t-tdiv_ui.c b/tests/mpz/t-tdiv_ui.c index 0c4bd54d0..64847f4d6 100644 --- a/tests/mpz/t-tdiv_ui.c +++ b/tests/mpz/t-tdiv_ui.c @@ -25,8 +25,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include "gmp-impl.h" #include "tests.h" -void dump_abort _PROTO ((char *, mpz_t, unsigned long)); -void debug_mp _PROTO ((mpz_t, int)); +void dump_abort __GMP_PROTO ((char *, mpz_t, unsigned long)); +void debug_mp __GMP_PROTO ((mpz_t, int)); int main (int argc, char **argv) |