Follow-up Comment #3, patch #1352 (project freeciv):

>> "target_type" and "target" could be merged into:
> You mean within the savegame?


>> To learn how use bit vectors, you can look at
>> utility/shared.h.
> I read the file but your example helps more than me trying to
> understand the different BV_* macros ;-)

BV_CL_ALL(bv) -> set all to 0, (about like FD_ZERO, see man page).
BV_CLR(bv, bit) -> set the bit 'bit' to 0 (See also FD_CLR).
BV_SET(bv, bit) -> set the bit 'bit' to 1 (See also FD_SET).
BV_ISSET(bv, bit) -> returns if the bit 'bit' is set or not (See also


Reply to this item at:


  Message posté via/par Gna!

Freeciv-dev mailing list

Reply via email to