Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] (PR#11278) [C++] common/nation.h has struct member "class"
Home

[Freeciv-Dev] (PR#11278) [C++] common/nation.h has struct member "class"

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11278) [C++] common/nation.h has struct member "class"
From: "Frédéric Brière" <fbriere@xxxxxxxxxxx>
Date: Wed, 1 Dec 2004 00:54:12 -0800
Reply-to: rt@xxxxxxxxxxx

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

In common/nation.h:

  struct nation_type {
    ...
    char *class;
    ...
  };


"class" is a reserved C++ keyword, so this struct member needs to be
renamed if this header is to be made compatible.

Occurrences of this struct member that will require to be ajusted are:

  common/nation.c: 226-228
  server/ruleset.c: 2470, 2472-2473, 3117 (only n->class)
  server/srv_main: 1239, 1242-1243, 1246
  client/packhand.c: 2592, 2594 (only pl->class in both cases)

I can provide a patch if you let me know what to rename this member to.


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

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





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#11278) [C++] common/nation.h has struct member "class", Frédéric Brière <=