Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Re: [RFC] enum cleanup
Home

[Freeciv-Dev] Re: [RFC] enum cleanup

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: <rf13@xxxxxxxxxxxxxxxxxxxxxx>, "Ben Webb" <ben@xxxxxxxxxxxxxxxxxxxxxx>
Cc: "freeciv development list" <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [RFC] enum cleanup
From: "Jonathan Claggett" <jcc.ugm@xxxxxxxxxxxxx>
Date: Wed, 13 Feb 2002 13:11:54 -0500

>government.h has:
>
>enum government_flag_id {
>  G_BUILD_VETERAN_DIPLOMAT=0,   /* and Spies (in general: all
>F_DIPLOMAT) */
>...
>  G_LAST_FLAG
>};
>#define G_FIRST_FLAG G_BUILD_VETERAN_DIPLOMAT
>
>So *_FIRST is a define. I would prefer this.
>

If *_FIRST is a define, why not do the same with *_LAST? That way it really
would be the last. Of course, that requries a slight change in the various
iterator for/while loops from < to <=.

Just asking :-)
Jonathan



[Prev in Thread] Current Thread [Next in Thread]