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] Return NULL_TREE instead of 0 where appropriate in the C++ frontend


Volker Reichelt wrote:
> The following patch replaces "return 0;" by "return NULL_TREE;"
> in functions that have "tree" as return type.
> (These are the only places in the C++ frontend where we didn't
> return NULL_TREE AFAICS).

OK.

> Btw, there are some places (maybe 10 or so) where we have "return 0"
> in a function that returns a pointer to some struct. Should I change
> these to "return NULL" for readability, too?

Yes, preapproved.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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