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: Batons? Was: RFC: C/C++ preprocessor macro support for GDB



Andrew Cagney <ac131313@cygnus.com> writes:
> > I'm open to suggestions.  If folks think it's too cutesy, I'll change
> > it to whatever they want.
> 
> For the same situtation, bfd's map_over_sections uses ``obj''.  GDB is
> similar, catch_exceptions has ``func, func_args'', ui_file_put has
> ``write, dest''.  Objects are described has having ``state'' or
> ``context''.

Right, these are all pretty generic terms.  We chose "baton" to denote
this specific pattern of a function pointer accompanied by an untyped
data pointer.  The term is more valuable if you can see it and
conclude that this specific pattern is what's going on.


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