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] Replace SET_NAMESTRING macro by function in hpread.c


On Sat, Jan 11, 2003 at 01:31:46PM +0400, Joel Brobecker wrote:
> In the name of macros-are-evil, as suggested by AndrewC, I replaced
> the SET_NAMESTRING macro by a function...
> 
> 2003-01-10  J. Brobecker  <brobecker@gnat.com>
> 
>         * hpread.c (set_namestring): New procedure replacing the
>         SET_NAMESTRING macro.
>         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
>         by calls to set_namestring.
> 
> Ok to apply?

Yes, if...
> +   if (! hpread_has_name ((sym)->dblock.kind))

Please lose all the extra parentheses from the macro definition.


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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