coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ifdef HAVE_DECL_


From: Karel Zak
Subject: Re: ifdef HAVE_DECL_
Date: Wed, 13 Jun 2012 11:45:33 +0200
User-agent: Mutt/1.5.21 (2011-07-01)

On Wed, Jun 13, 2012 at 11:32:33AM +0200, Karel Zak wrote:
 
>  More complex (and I hope without false positives) solution:
 
 well... ;-)

> 
>  for decl in $(awk '/define HAVE_DECL_.*ac_have_decl/ { print $2 }' 
> configure); do 
>     grep -rnE '[[:blank:]]*#[[:blank:]]*if(ndef|def)[[:blank:]]*'$decl *; 
> done | sort -u
> 
>  configure:45306:#ifndef HAVE_DECL_STRNDUP
>  gnulib/lib/argp-parse.c:882:#ifdef HAVE_DECL_PROGRAM_INVOCATION_NAME
>  gnulib/lib/argp-parse.c:886:#ifdef HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME

 this seems like a bug

>  gnulib/lib/error.c:103:#  ifndef HAVE_DECL_STRERROR_R
>  gnulib/lib/fpending.h:24:#ifndef HAVE_DECL___FPENDING
>  gnulib/lib/strtoimax.c:31:# ifndef HAVE_DECL_STRTOULL
>  gnulib/lib/strtoimax.c:40:# ifndef HAVE_DECL_STRTOLL
>  gnulib/m4/strndup.m4:27:#ifndef HAVE_DECL_STRNDUP
>  lib/error.c:103:#  ifndef HAVE_DECL_STRERROR_R
>  lib/fpending.h:24:#ifndef HAVE_DECL___FPENDING
>  lib/strtoimax.c:31:# ifndef HAVE_DECL_STRTOULL
>  lib/strtoimax.c:40:# ifndef HAVE_DECL_STRTOLL

 and this like false positives (there is #if before #ifndef)

>  m4/strndup.m4:27:#ifndef HAVE_DECL_STRNDUP

 not sure

    Karel

-- 
 Karel Zak  <address@hidden>
 http://karelzak.blogspot.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]