Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2002:
[Freeciv-Dev] [Patch] Break dependency
Home

[Freeciv-Dev] [Patch] Break dependency

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [Patch] Break dependency
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Mar 2002 10:18:56 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

The code currently has a dependency which prohibits inline
attempts. 
 - game.h includes player.h
 - player.h includes city.h
 - city.h includes city_inline.h
 - city_inline.h needs function/data (like get_player or game from
 game.h but these aren't defined yet) BOOM

With the attached patch player.h no longer needs city.h. This causes a
lot of other changes since some other files relied on this behavior.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  reality.sys corrupt. Reboot Universe? (y,n,q)

Attachment: break_dep1.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] [Patch] Break dependency, Raimar Falke <=