Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] [Patch] Cleanup of units and unittypes
Home

[Freeciv-Dev] [Patch] Cleanup of units and unittypes

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Cc: bugs@xxxxxxxxxxx
Subject: [Freeciv-Dev] [Patch] Cleanup of units and unittypes
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 9 Sep 2001 16:59:18 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

The attached patch introduces a new method: "struct unit_type
*unit_type(struct unit *punit)". The patch replaces
"get_unit_type(punit->type)->" and "unit_types[punit->type]." with
"unit_type(punit)->".

This patch is the first one is a series of patches to bring
Unit_Type_id the same fate as "int unit_id": remove it and replace all
it with "struct unit_type *" in every function argument.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  Windows: From the people who brought you edlin...

Attachment: unit_type1.diff.gz
Description: GNU Zip compressed data


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