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 10:19:19 -0800
Reply-to: bugs@xxxxxxxxxxx

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

Raimar Falke wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=12629 >
> 
> On Fri, Mar 25, 2005 at 08:58:05AM -0800, Jason Short wrote:
> 
>>Thee practice of adding struct declarations like this has been mostly 
>>deprecated.  Instead you should #include "fc_types.h".
> 
> Ohh. I did't know this. Why was this done?

To avoid problems with recursive includes (for stuff like typedefs, but 
it ended up taking all the struct declarations as well).

> So what about a patch to remove these?

If you like.  I did this some time ago but new ones may have been 
introduce since then.

-jason





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