Re: Style convention question



Hi Derek,

>         This is a quickie.  My apologies if it's not the best list for
> this, but I know that the right people are here :).
> 
>         Why does Glib do this:
> 
> typedef struct _GFoo GFoo;
> struct _GFoo {
>         /* [...] */
> };
> 
>         ...instead of the more compact
> 
> typedef struct {
>         /* [...] */
> } GFoo;

Not being the definite source for that information, I think that is because
sometimes "GFoo*" is used without "struct _GFoo" being declared (for opaque
structs). For the other structs it's just consistency.

Bye,
Sebastian
-- 
Sebastian Wilhelmi
mailto:wilhelmi ira uka de
http://goethe.ira.uka.de/~wilhelmi




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]