bug-findutils
[Top][All Lists]
Advanced

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

Re: [bug #20128] compilation failure in tree.c (4.3.6) on aix with gcc


From: Eric Blake
Subject: Re: [bug #20128] compilation failure in tree.c (4.3.6) on aix with gcc
Date: Wed, 20 Jun 2007 20:09:20 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070509 Thunderbird/1.5.0.12 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to James Youngman on 6/9/2007 6:23 AM:
> I adopted a more complex fix, which is 
> 
> 1. To verify that <config.h> was already included before defs.h in every
> case
> 2. To ensure that config.h is the first thing #included
> 
> We automatically verify (1) but not (2); I can't immediately think of a way
> to automate the verification of (2).    

Can't you do something like:

for f in `find $srcdir -name '*.c'`; do
  case `sed -ne '/^#[    ]*include/ {
      p
      q
    }' < $f` in
  config.h);;
  *) echo "check $f for inclusion order problems" ;;
  esac
done

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGed3P84KuGfSFAYARAtwfAKCGda77eI2za0/vGkFFqfT7VMm4CwCgz6qR
zAH5v+NDwPLcNhNH5aRgES0=
=6u0L
-----END PGP SIGNATURE-----




reply via email to

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