This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


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

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;
> 
> 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


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