This is the mail archive of the
mailing list for the GDB project.
Re: Register group proposal
Jim Kleck wrote:
> which preserves the type errors and simplifies the declaration of
> objects of the desired type:
> T_BLAH this_blah;
> 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.