This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: [rfa/cli] s/NO_FUNCTION/NULL/



On Sun, 20 Jan 2002, Andrew Cagney wrote:

> Do you have any problems with the below?
> 
> 	Andrew
> 
> > Hello,
> > 
> > The attached replaces the NO_FUNCTION macro with NULL.  If you
> > examine the code, function.cfunc() is only sometimes assigned the
> > value NO_FUNCTION and no code actually tests for a value of
> > NO_FUNCTION. Consequently, I can't see any point in having this
> > macro.


IMHO, someone should test this change with the latest versions of GCC,
including their development line: they could have their own ideas when
you are allowed to pass NULL, especially with all the warning options
we use.


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