Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] Re: (PR#12629) Make each header file self-contained
Home

[Freeciv-Dev] Re: (PR#12629) Make each header file self-contained

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: i-freeciv-lists@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12629) Make each header file self-contained
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 25 Mar 2005 08:58:05 -0800
Reply-to: bugs@xxxxxxxxxxx

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

Raimar Falke wrote:

> Index: ai/aisettler.h
> ===================================================================
> RCS file: /home/freeciv/CVS/freeciv/ai/aisettler.h,v
> retrieving revision 1.2
> diff -u -u -r1.2 aisettler.h
> --- ai/aisettler.h    29 Sep 2004 02:24:18 -0000      1.2
> +++ ai/aisettler.h    25 Mar 2005 09:41:58 -0000
> @@ -13,6 +13,13 @@
>  #ifndef FC__AISETTLER_H
>  #define FC__AISETTLER_H
>  
> +#include "city.h"
> +#include "shared.h"          /* bool type */
> +
> +struct player;
> +struct tile;
> +struct ai_data;
> +
>  struct citytile {
>    int food, shield, trade, reserved;
>  };

Thee practice of adding struct declarations like this has been mostly 
deprecated.  Instead you should #include "fc_types.h".

-jason





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