From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Jim Kleck Cc: gdb@sources.redhat.com, insight@sources.redhat.com Subject: Re: Register group proposal Date: Tue, 27 Feb 2001 15:17:00 -0000 Message-id: <3A9C34ED.96F8D6E0@cygnus.com> References: <17B78BDF120BD411B70100500422FC6309E214@IIS000> <200102242351.f1ONpp704661@rtl.cygnus.com> <3A9B0E90.D3D920EC@cygnus.com> <3A9BF2AF.1BDB5EF7@netergynet.com> <3A9C201B.345097FA@netergynet.com> X-SW-Source: 2001-02/msg00425.html 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