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: [PATCH, fixincludes] Fix NULL on AIX


On Tue, Apr 30, 2013 at 1:09 PM, Bruce Korb <bkorb@gnu.org> wrote:

> By analogy, I'd prefer the EOF version there, too.  But ultimately,
> it works and is not exactly illegible, so I have no serious objection
> to the fix.  It would be nice if it were combinable, but doing so is
> tricky.  I'm guessing that the fix on AIX is separated because the
> headers contain "__cplusplus" and that is used as an exclusion test
> for the "void_null" fix?  Otherwise this:
>
> select    = "^#[ \t]*define[ \t]+NULL[ \t]+("
>                     "\\(\\(void[ \t]*\\*\\)0\\)"   "|"   "\\(*0L*\\)*"   ")";
>
> would allow void_null to work for you -- perhaps by using %1 somewhere
> in the replacement "c-fix-arg".

Yes, I created a separate fix because the void_null fix has additional
selection details that I did not want to change and possibly break
other platforms.

Thanks, David


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