diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-10-22 13:19:48 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-10-22 13:19:48 +0000 |
commit | 1183042badcf844d47a624f900f53c04292b3372 (patch) | |
tree | 89943da6ca6f11441790a26efbc7548d33cc0c8a /tests | |
parent | d8acce8c9c3630b114305708232b4e31f583f3b7 (diff) | |
download | mpfr-1183042badcf844d47a624f900f53c04292b3372.tar.gz |
Reformatted the code -> GNU style.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3057 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mpf_compat.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/tests/mpf_compat.h b/tests/mpf_compat.h index 92b92b435..07ddfcf33 100644 --- a/tests/mpf_compat.h +++ b/tests/mpf_compat.h @@ -160,10 +160,11 @@ main () /* Input and Output Functions */ f = fopen ("/dev/null", "w"); - if (f != NULL) { - mpf_out_str (f, 10, 10, x); - fclose (f); - } + if (f != NULL) + { + mpf_out_str (f, 10, 10, x); + fclose (f); + } mpf_set_prec (x, 15); mpf_set_prec (y, 15); @@ -171,15 +172,16 @@ main () in mpfr-test, and not in mpfr.h and gmp.h, and we want to test theses includes files. */ f = fopen ("inp_str.data", "r"); - if (f != NULL) { - i = mpf_inp_str (x, f, 10); - if ((i == 0) || mpf_cmp_ui (x, 31415)) - { - printf ("Error in reading 1st line from file inp_str.data\n"); - exit (1); - } - fclose (f); - } + if (f != NULL) + { + i = mpf_inp_str (x, f, 10); + if ((i == 0) || mpf_cmp_ui (x, 31415)) + { + printf ("Error in reading 1st line from file inp_str.data\n"); + exit (1); + } + fclose (f); + } /* Miscellaneous Functions */ |