[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]
--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
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), (continued)
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), Reinier Post, 2000/05/17
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), Thue Janus Kristensen, 2000/05/17
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), Jules Bean, 2000/05/17
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), Thue Janus Kristensen, 2000/05/17
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), Thue Janus Kristensen, 2000/05/17
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), Mika Korhonen, 2000/05/17
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), Thue Janus Kristensen, 2000/05/17
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), Mika Korhonen, 2000/05/17
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), Robert Brady, 2000/05/17
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), Daniel Burrows, 2000/05/17
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug),
Jed Davis <=
- [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug), Tony Stuckey, 2000/05/17
[Freeciv-Dev] Re: FoW remove player bug, Daniel Burrows, 2000/05/16
|
|