This is the mail archive of the gdb-patches@sourceware.org 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]

Accessor macro wrappers removal [Re: [patch] static_kind -> bit0, bit1]


On Sat, 20 Sep 2008 00:12:21 +0200, Joel Brobecker wrote:
> > Also I do not understand why exist all the macros like this one at all:
> > #define TYPE_MAIN_TYPE(thistype) (thistype)->main_type
> > Why we cannot use it expanded?  This way it is always one (or more)
> > "tags"-jump (VIM ctrl-]) indirections while navigating the source files.
> 
> Personally, I find them to be very useful to quickly find who is using
> field "main_type" in struct type.

How does it differ from
  grep -- '->main_type\>' *.[ch]
?

[ other part of the mail left after update of the patch ]


Regards,
Jan


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