Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2000:
[Freeciv-Dev] Re: Suggestion: introduce 'bool' type
Home

[Freeciv-Dev] Re: Suggestion: introduce 'bool' type

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Suggestion: introduce 'bool' type
From: Thue Janus Kristensen <thue@xxxxxxx>
Date: Thu, 8 Jun 2000 12:54:55 +0200

On Thu, 08 Jun 2000, Falk Hueffner wrote:
> Hi,
> 
> I think it would be a good idea to introduce a 'bool' type, with
> constants 'true' and 'false'. This would make some code much more
> readable IMHO.
> 
> Note C++ already implements this, and the upcoming C standard will,
> too.
> 
> If nobody objects, I will write a configure test and add it to
> shared.h.
> 
>       Falk

It's already there:

http://www.freeciv.org/lxr/source/common/shared.h#L35

just not used in all the code.

-Thue



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