From c00258237e0fd63d23fb2015c78c070b72b2e9d9 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 3 Dec 2004 07:43:00 +0000 Subject: (svn r907) Sprinkle holy ANSI water: - "inline" must before the return type (and after "static") - Initialise all struct members, not just some of them - Remove (one) spurious semicolon --- ai.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ai.c') diff --git a/ai.c b/ai.c index afed9d234..9bdd373b1 100644 --- a/ai.c +++ b/ai.c @@ -1936,7 +1936,7 @@ static bool AiCheckRailPathBetter(AiRailFinder *arf, const byte *p) return better; } -static void FORCEINLINE AiCheckBuildRailBridgeHere(AiRailFinder *arf, TileIndex tile, const byte *p) +static inline void AiCheckBuildRailBridgeHere(AiRailFinder *arf, TileIndex tile, const byte *p) { TileIndex tile_new; bool flag; @@ -1976,7 +1976,7 @@ static void FORCEINLINE AiCheckBuildRailBridgeHere(AiRailFinder *arf, TileIndex } } -static void FORCEINLINE AiCheckBuildRailTunnelHere(AiRailFinder *arf, TileIndex tile, const byte *p) +static inline void AiCheckBuildRailTunnelHere(AiRailFinder *arf, TileIndex tile, const byte *p) { FindLandscapeHeightByTile(&arf->ti, tile); @@ -2813,7 +2813,7 @@ static bool AiBuildRoadHelper(uint tile, int flags, int type) return DoCommandByTile(tile, _road_bits[type], 0, flags, CMD_BUILD_ROAD) != CMD_ERROR; } -static void FORCEINLINE AiCheckBuildRoadBridgeHere(AiRoadFinder *arf, TileIndex tile, const byte *p) +static inline void AiCheckBuildRoadBridgeHere(AiRoadFinder *arf, TileIndex tile, const byte *p) { TileIndex tile_new; bool flag; @@ -2853,7 +2853,7 @@ static void FORCEINLINE AiCheckBuildRoadBridgeHere(AiRoadFinder *arf, TileIndex } } -static void FORCEINLINE AiCheckBuildRoadTunnelHere(AiRoadFinder *arf, TileIndex tile, const byte *p) +static inline void AiCheckBuildRoadTunnelHere(AiRoadFinder *arf, TileIndex tile, const byte *p) { FindLandscapeHeightByTile(&arf->ti, tile); -- cgit v1.2.3-54-g00ecf