Register group proposal

Andrew Cagney ac131313@cygnus.com
Tue Feb 27 15:17:00 GMT 2001


Jim Kleck wrote:

> which preserves the type errors and simplifies the declaration of
> objects of the desired type:
> 
>    T_BLAH this_blah;
> 
> vs.
> 
>    struct blah *this_blah;

To go full circle, I guess :-)

The thing about a typedef is that there can really only be one or each
name amonst all of your header files.  The choices are rougly: don't
have the typedef and have each blah.h independant; use a typedef in
blah.h and have everything refering to blah.h suck it in; put the
typedef in defs.h; or have defs.h just suck in blah.h.

All the recent objects have used ``struct blah *'' giving fairly
independant header files.  The older GDB code lived on a diet that
consisted on all of the above.

	enjoy,
		Andrew



More information about the Gdb mailing list