[PATCH RFA] process/thread/lwp identifier mega-patch
Andrew Cagney
ac131313@cygnus.com
Sat Feb 17 10:51:00 GMT 2001
> 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
More information about the Gdb-patches
mailing list