This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linux libio status


>>>>> "Jason" == Jason Merrill <jason@cygnus.com> writes:

>>>>> Peter Seebach <seebs@monolith.solon.com> writes:
Peter >> It would have been a little easier if C89 had ruled that NULL must
Peter >> actually have pointer type, then you could just use it for
Peter >> anything that would be taking arguments as (void *), and, if
Peter >> you're feeling courageous and not-quite-perfectly-portable, you
Peter >> could just use it for all the pointers...

 Jason> C89 may not have, but gcc defines it that way.

Hm...  I have seen some "code" that contains statements of the form:

	int i = NULL;

and while I wouldn't want to work anywhere near the "programmer" who
wrote that, it does appear to compile with some of the compilers that
are currently out in the world...

	paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]