diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-05-15 15:19:11 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-05-15 15:19:11 +0000 |
commit | 0b70dc273fcd2c8d530d6e66e175bee5b1239cc0 (patch) | |
tree | af8154dbfbfb3d0ac552a23644b66f0ffdf32161 /tests/terf.c | |
parent | 418c08a8c3dda5d97e5e2995e336364f99485e20 (diff) | |
download | mpfr-0b70dc273fcd2c8d530d6e66e175bee5b1239cc0.tar.gz |
Do not define macro names starting with "SIG" (+ uppercase letter)
as they are reserved when <signal.h> is included (ISO C, 7.31.7),
which happens to be the case in tests/tests.c, which also includes
tests/mpfr-test.h and src/mpfr-impl.h indirectly.
* src/mpfr-impl.h, tests/mpfr-test.h: renamed macros:
SIGN → VSIGN
SIGN_RAND → RAND_SIGN
* {src,tests}/*.{c,h}: updated the names in the use of these macros.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11476 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/terf.c')
-rw-r--r-- | tests/terf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/terf.c b/tests/terf.c index d1ecd7f78..f3fda2e49 100644 --- a/tests/terf.c +++ b/tests/terf.c @@ -621,7 +621,7 @@ reduced_expo_range (void) mpfr_set_str (ex_y, "1.fffffffffffffffffffffe607440", 16, MPFR_RNDN); ex_inex = -1; ex_flags = MPFR_FLAGS_INEXACT; - if (SIGN (inex) != ex_inex || flags != ex_flags || + if (VSIGN (inex) != ex_inex || flags != ex_flags || ! mpfr_equal_p (y, ex_y)) { printf ("Error in reduced_expo_range\non x = "); @@ -631,7 +631,7 @@ reduced_expo_range (void) printf ("\n inex = %d, flags = %u\n", ex_inex, ex_flags); printf ("Got y = "); mpfr_out_str (stdout, 16, 0, y, MPFR_RNDN); - printf ("\n inex = %d, flags = %u\n", SIGN (inex), flags); + printf ("\n inex = %d, flags = %u\n", VSIGN (inex), flags); exit (1); } mpfr_clears (x, y, ex_y, (mpfr_ptr) 0); |