Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: (PR#11126) unify map_get_known
Home

[Freeciv-Dev] Re: (PR#11126) unify map_get_known

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11126) unify map_get_known
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Wed, 8 Dec 2004 11:47:04 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11126 >

On Mon, 6 Dec 2004, Jason Short wrote:

>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=11126 >
>
> Here is an updated patch.

You don't need a BV_COPY macro. Bitvectors are structs, structs can be
copied using the standard assignment operator. That also has the benefit of
compile-time type checking, while BV_COPY uses run-time assert checks.

Just do:

bv_a = bv_b;

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa







[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#11126) unify map_get_known, Vasco Alexandre da Silva Costa <=