From 1a5e1541fedc2439717181993c4a221cd7748509 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Fri, 12 Jun 2020 11:56:18 +0000 Subject: [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 --- tools/mpfrlint | 6 ++++-- 1 file 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] |\ -- cgit v1.2.1