| [Freeciv-Dev] Re: (PR#13171) turn specials into an enum[Top] [All Lists][Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
 
 
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13171 >
On Sat, May 28, 2005 at 05:57:49PM -0700, Jason Short wrote:
> +/****************************************************************************
> +  Returns TRUE iff the given special is found in the given set.
> +****************************************************************************/
> +void set_special(bv_special *set, enum tile_special_type to_set)
> +{
> +  assert(to_set >= 0 && to_set < S_LAST);
> +  BV_SET(*set, to_set);
> +}
>  
> -  return NULL;
> +/****************************************************************************
> +  Returns TRUE iff the given special is found in the given set.
> +****************************************************************************/
> +void clear_special(bv_special *set, enum tile_special_type to_clear)
> +{
> +  assert(to_clear >= 0 && to_clear < S_LAST);
> +  BV_CLR(*set, to_clear);
Comment bug:
"Add the given special to the given set"
"Remove the given special from the given set"
        -- Benoît
 
| [Prev in Thread] | Current Thread | [Next in Thread] |  
[Freeciv-Dev] Re: (PR#13171) turn specials into an enum,
Benoit Hudson <=
 
 |  |