Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player b
Home

[Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player b

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug)
From: Thue Janus Kristensen <thue@xxxxxxx>
Date: Wed, 17 May 2000 16:42:13 +0200

On Wed, 17 May 2000, Mika Korhonen wrote:
> On Wed, 17 May 2000, Thue Janus Kristensen wrote:
> >Btw; maybe these oneilne functions like map_get_know() should be made into
> >macros to avoid the overhead of a function call; is the saving worth it?
> >Is there any reason not to?
> 
> Or what about making them inline which is effectively the same thing?
> (Don't some compilers with sufficient flags already do that for short
> functions, do they?)
> 
>       Mika    

no, inline would not work.
-it only substitutes for occurences in the same file
-it is not standard C; only GNU C.
see http://gcc.gnu.org/onlinedocs/gcc_4.html#SEC95

-Thue



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