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

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

Yes

>> 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
FD_ISSET).


    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1352>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to