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: Jed Davis <jldavis@xxxxxxxxxxxxxx>
Date: Fri, 19 May 2000 03:46:02 -0400

--On Wednesday, 17 May 2000 4:42 PM +0200 Thue Janus Kristensen <thue@xxxxxxx> wrote:

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
...unless it's in or included by the header (which is what you'd have to do for a macro), in which case every reference is substituted...

-it is not standard C; only GNU C.
see http://gcc.gnu.org/onlinedocs/gcc_4.html#SEC95
Also C++, but that's not any more relevant.


Just my pedantic $.002,
--Jed





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