bug-gnulib
[Top][All Lists]
Advanced

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

string.h and NULL [was: memmem issues]


From: Eric Blake
Subject: string.h and NULL [was: memmem issues]
Date: Sat, 05 Jan 2008 09:38:50 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

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

According to Bruno Haible on 12/21/2007 6:42 AM:
|
|> +      [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <string.h>],
|> +         [return !memmem ("a", 1, NULL, 0);])],
|
| <string.h> does not define NULL. Better write (void*)0 or "" instead of
NULL.

I've since fixed this in the .m4 file.  But shouldn't we make the string
module guarantee that NULL and size_t are defined, as required by POSIX,
once the gnulib replacement string.h is built?  Which platforms have a
broken <string.h> that fails to define NULL?

- --
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

iD8DBQFHf7KZ84KuGfSFAYARAgPSAKDF/fUJxlBxCUCfnnYEQgGsCi9bvgCg2OJE
IfTlPpJVYOJA7SVPjbwAE/4=
=Kbu4
-----END PGP SIGNATURE-----




reply via email to

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