tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: UVM typedef struct
On Tue, Jun 16, 2009 at 12:45:22AM -0500, Peter Seebach wrote:
> In message <20090616053752.GA8944%cs.hut.fi@localhost>, Antti Kantee writes:
> >2) impossible to provide forward declarations for interfaces using
> > silly_t
>
> int foo(silly_t);
Or maybe Antti means:
struct mystruct;
int foo(struct mystruct *);
That works with typedefs too, but you need to duplicate the typedef line:
struct mystruct;
typedef struct mystruct mystruct_t;
int foo(mystruct_t *);
eric
Home |
Main Index |
Thread Index |
Old Index