summaryrefslogtreecommitdiff
path: root/tests/tcmp2.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-01-12 01:27:53 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-01-12 01:27:53 +0000
commit4418c085eb0a49bf91ec61c02750ba0e5f371234 (patch)
tree241cd0a4d22855aea6e3978e0bca4bd8b3134033 /tests/tcmp2.c
parent374b9fa1ec9ccbfc7dc2026f3ff7c45ef7aaf6c7 (diff)
downloadmpfr-4418c085eb0a49bf91ec61c02750ba0e5f371234.tar.gz
Patches by Kevin Ryde for K&R compilers
and other fixes in prototypes. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1649 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcmp2.c')
-rw-r--r--tests/tcmp2.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/tcmp2.c b/tests/tcmp2.c
index 70349fd40..691afa933 100644
--- a/tests/tcmp2.c
+++ b/tests/tcmp2.c
@@ -1,6 +1,6 @@
/* Test file for mpfr_cmp2.
-Copyright (C) 1999-2001 Free Software Foundation.
+Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation.
This file is part of the MPFR Library.
@@ -27,10 +27,10 @@ MA 02111-1307, USA. */
#include "mpfr-impl.h"
#include "mpfr-test.h"
-void tcmp2 (double, double, int);
-void special (void);
-void worst_cases (void);
-void set_bit (mpfr_t, unsigned int, int);
+void tcmp2 _PROTO ((double, double, int));
+void special _PROTO ((void));
+void worst_cases _PROTO ((void));
+void set_bit _PROTO ((mpfr_t, unsigned int, int));
/* set bit n of x to b, where bit 0 is the most significant one */
void
@@ -54,7 +54,7 @@ set_bit (mpfr_t x, unsigned int n, int b)
mpfr_cmp2 (x, y) returns 1 + |u| + |v| + k for low(x) >= low(y),
and 1 + |u| + |v| + k + 1 otherwise */
void
-worst_cases ()
+worst_cases (void)
{
mpfr_t x, y;
unsigned int i, j, k, b, expected;
@@ -184,7 +184,8 @@ tcmp2 (double x, double y, int i)
mpfr_clear(xx); mpfr_clear(yy);
}
-void special ()
+void
+special (void)
{
mpfr_t x, y;
mp_prec_t j;