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]

Re: [PATCH RFA] process/thread/lwp identifier mega-patch



> Later on, when we're ready to move to using a pointer to a struct,
> we'll be able to use something along the following lines:
> 
>     struct ptid;                /* Now struct ptid is opaque */
>     typedef struct ptid *ptid;
> 
> The nice thing about this is that very little other code would need
> to change.  (Just the accessors and constructors.)
> 
> But I seem to recall that you had a problem with typedef...

Try declaring something like:

    xyz.h:
	struct xyz;
	exter void xyz_foo (struct xyz *self, ...);

    abc.h:
	struct xyz;
	struct abc;
	extern abc_on_xyz (struct abc *self, struct xyz *on);

using typedefs.  It ends up creating include spaghetti :-(

	enjoy,
		Andrew


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