tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: UVM typedef struct



   On Wed, Jun 17, 2009 at 01:16:20AM +1000, matthew green wrote:
   >    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 *);
   > 
   > duplicate typedefs generate an error.
   
   hmm.. you're right.  It worked fine on the machines at work, but those
   are linux, not NetBSD.  Still, I kind of figured gcc would behave the
   same.  Oh well, I stand corrected.


i've never seen this work on any C platform.


.mrg.


Home | Main Index | Thread Index | Old Index