-----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             [EMAIL PROTECTED]
-----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-----


_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to