summaryrefslogtreecommitdiff
path: root/save_expo.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-10 01:45:36 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-10 01:45:36 +0000
commitf1c41fb6bd97c0a5680aa4df1a00a01f4a4d0d60 (patch)
tree08e27e3c47d4584830acca621cbe6364d1386d37 /save_expo.c
parent3bdb8b4f6f3ab6fc0c2aa5f71535a2c7133cc04c (diff)
downloadmpfr-f1c41fb6bd97c0a5680aa4df1a00a01f4a4d0d60.tar.gz
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
Diffstat (limited to 'save_expo.c')
-rw-r--r--save_expo.c44
1 files changed, 18 insertions, 26 deletions
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;
+ }
}