Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in c
Home

[Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#11282) [C++] typedef / struct member conflict in client/climisc.h
From: "Frédéric Brière" <fbriere@xxxxxxxxxxx>
Date: Wed, 1 Dec 2004 11:47:21 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=11282 >

On Wed, Dec 01, 2004 at 10:52:00AM -0800, Jason Short wrote:
> Just change the 'cid' type to cid_type.  Or even better, figure out what 
> 'cid' is supposed to mean and give it a legible name.

From climisc.h:

  A compound id (cid) can hold all objects a city can build:
  improvements (with wonders) and units.  This is achieved by seperation
  the value set: a cid < B_LAST denotes a improvement (including
  wonders). A cid >= B_LAST denotes a unit with the unit_type_id of (cid
  - B_LAST).


If I understood you correctly, you want to change the typedef, and leave
the struct member intact, right?  What typedef name would you suggest?


-- 
             Frédéric Brière    <*>    fbriere@xxxxxxxxxxx

 =>  <fbriere@xxxxxxxxxx> IS NO MORE:  <http://www.abacomsucks.com>  <=





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