From f1c41fb6bd97c0a5680aa4df1a00a01f4a4d0d60 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Sat, 10 Nov 2001 01:45:36 +0000 Subject: GNU coding style. K&R function headers removed. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1488 280ebfd0-de03-0410-8827-d642c229c3f4 --- save_expo.c | 44 ++++++++++++++++++-------------------------- 1 file changed, 18 insertions(+), 26 deletions(-) (limited to 'save_expo.c') diff --git a/save_expo.c b/save_expo.c index 5ed8b32cd..973fe7189 100644 --- a/save_expo.c +++ b/save_expo.c @@ -31,40 +31,32 @@ static mp_exp_t saved_emax; static unsigned int save_ctr = 0; void -#if __STDC__ mpfr_save_emin_emax (void) -#else -mpfr_save_emin_emax () -#endif { if (save_ctr++ == 0) - { - saved_flags = __mpfr_flags; - saved_emin = __mpfr_emin; - saved_emax = __mpfr_emax; - __mpfr_emin = MPFR_EMIN_MIN; - __mpfr_emax = MPFR_EMAX_MAX; - } + { + saved_flags = __mpfr_flags; + saved_emin = __mpfr_emin; + saved_emax = __mpfr_emax; + __mpfr_emin = MPFR_EMIN_MIN; + __mpfr_emax = MPFR_EMAX_MAX; + } else if (save_ctr == 0) - { - fprintf(stderr, - "Error: Too many consecutive calls to mpfr_save_emin_emax!\n" - "Probably a bug.\n"); - exit(1); - } + { + fprintf(stderr, + "Error: Too many consecutive calls to mpfr_save_emin_emax!\n" + "Probably a bug.\n"); + exit(1); + } } void -#if __STDC__ mpfr_restore_emin_emax (void) -#else -mpfr_restore_emin_emax () -#endif { if (--save_ctr == 0) - { - __mpfr_flags = saved_flags; - __mpfr_emin = saved_emin; - __mpfr_emax = saved_emax; - } + { + __mpfr_flags = saved_flags; + __mpfr_emin = saved_emin; + __mpfr_emax = saved_emax; + } } -- cgit v1.2.1