Re: Style convention question
- From: Sebastian Wilhelmi <wilhelmi ira uka de>
- To: Derek Simkowiak <dereks realloc net>
- Cc: gtk-devel-list gnome org
- Subject: Re: Style convention question
- Date: Fri, 09 Mar 2001 17:58:01 +0100
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]