diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-06-12 11:56:18 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-06-12 11:56:18 +0000 |
commit | 1a5e1541fedc2439717181993c4a221cd7748509 (patch) | |
tree | 835b9a346987d58f5248525d155fe98058e262c9 | |
parent | 5ce6a0f14fcdddbc916492ea831cbb10b2f9629d (diff) | |
download | mpfr-1a5e1541fedc2439717181993c4a221cd7748509.tar.gz |
[tools/mpfrlint] Improved the __GMP_DECLSPEC test:
* No longer exclude "src/mpfr.h".
* Avoid false positives in "src/mpfr.h" and "src/mpfr-longlong.h".
(merged changeset r13995 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.1@13996 280ebfd0-de03-0410-8827-d642c229c3f4
-rwxr-xr-x | tools/mpfrlint | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/mpfrlint b/tools/mpfrlint index 233450626..fa869952c 100755 --- a/tools/mpfrlint +++ b/tools/mpfrlint @@ -189,8 +189,10 @@ grep GMP_RND $srctests | err-if-output -t "GMP_RND*" grep -v '#define GMP_RND' # this file to MPFR. See: # https://sympa.inria.fr/sympa/arc/mpfr/2018-08/msg00000.html # https://sympa.inria.fr/sympa/arc/mpfr/2018-08/msg00001.html -err-if-output --msg="Use __MPFR_DECLSPEC instead." -t "__GMP_DECLSPEC" \ - grep --exclude=src/mpfr.h __GMP_DECLSPEC $srctests +grep __GMP_DECLSPEC $srctests | \ + grep -Ev '^src/mpfr.h:(#|.*__GMP_DECLSPEC_..PORT)' | \ + grep -v '__GMP_DECLSPEC renamed to __MPFR_DECLSPEC' | \ + err-if-output --msg="Use __MPFR_DECLSPEC instead." -t "__GMP_DECLSPEC" cat # Use mpfr_div_2ui/mpfr_mul_2ui instead of mpfr_div_2exp/mpfr_mul_2exp. grep 'mpfr_\(div\|mul\)_2exp' {src,tests}/*.[ch] |\ |