This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: fixincludes of C++ friendly NULLs


Mike Stump wrote:
On Oct 27, 2004, at 2:34 AM, Nathan Sidwell wrote:

I don't understand, isn't this fix changing a C++ unfriendly NULL
to a C++ friendly one?  What is the bug being fixed?

On some systems, they've _fixed_ their header files to be C++ safe. The above, if a good definition for a C++ safe version of NULL. The problem will fixincludes, is that it _fixes_ the above correct code, to be incorrect:

Thanks for the explanation. If you need a C++ approval for this, you've got it!

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



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