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:
This patch fixes the fixincluding of C++ friendly NULLs...

+     /* avoid changing C++ friendly NULL */
+     bypass    = __cplusplus;
      select    = "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
      c_fix     = format;
      c_fix_arg = "#define NULL 0";

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

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]