-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Jim Meyering on 3/1/2008 11:26 AM:
| + while (1)
| + {
| + size_t len;
| + const char *buffer = next_buffer (&len, false);
| + if (buffer)
| + {
| + const char *p = (char *) memchr (buffer, '\n', len);
|
| That cast looks unnecessary -- unless you care about C++ compilers.
Yes, at one point, I got M4 to compile with C++; I've tried to keep it
that way (although inadvertent regressions may have crept in since). In
other words, I deliberately added that cast. It's a shame that memchr is
prototyped to return void* instead of char*.
- --
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
iD8DBQFHyaFH84KuGfSFAYARAodpAJ9mXz4L5lDGMo1ILxbocZc3zkWTxACbB7hg
8Iyzx6dtqZ+kRyghZ/cbHlI=
=PRNK
-----END PGP SIGNATURE-----
_______________________________________________
M4-discuss mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-discuss