[Glade-devel] [PATCH] removed some forward enum declarations

Oliver Nittka nittka at esem.com
Mon Dec 18 05:52:17 EST 2006


Murray Cumming schrieb:
> On Mon, 2006-12-18 at 10:46 +0100, Oliver Nittka wrote:
>> e forward declarations seemed actually neccessary to me,
>> they were all resolved by just expanding the actual definition by its
>> common name and a typedef. 
> 
> Isn't this duplicating the definition?
> 
well, i just changed

typedef enum _SomeEnum SomeEnum;
enum _SomeEnum {
 [...]
};


to


typedef enum _SomeEnum {
 [...]
} SomeEnum;

i admit the _SomeEnum would't be neccessary, as it is never used
anywhere else. It's just that most of the other enums were defined that
way, so i thought i'd stick to that.

Greetings
  --o
-- 
Oliver Nittka
ESEM Grünau GmbH & Co. KG
Dornierstraße 6, 88677 Markdorf/Germany
phone: +49 7544 9583-25, fax: +49 7544 9583-60



More information about the Glade-devel mailing list