Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] [RFC] x & (1u << y)
Home

[Freeciv-Dev] [RFC] x & (1u << y)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [RFC] x & (1u << y)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Feb 2002 10:06:13 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

There are a lot of constructs like "x & (1u << y)" in the code:
 - city options, flags and roles
 - shared vision
 - embassy
 - claims
 - gotohand
 - known and sent in maphand

These all are used as a bool but aren't a bool. Should they be wrapped
with BOOL_VAL, a new test_bit or with functions specific to the
domains above?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "This is Linux Country. On a quiet night, you can hear Windows reboot."


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