(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
This commit is contained in:
tron
2004-12-03 07:43:00 +00:00
parent b7f0b278fb
commit c00258237e
12 changed files with 38 additions and 31 deletions

View File

@@ -682,7 +682,7 @@ static bool CanExpandRailroadStation(Station *st, uint *fin, int direction)
return true;
}
static byte FORCEINLINE *CreateSingle(byte *layout, int n)
static inline byte *CreateSingle(byte *layout, int n)
{
int i = n;
do *layout++ = 0; while (--i);
@@ -690,7 +690,7 @@ static byte FORCEINLINE *CreateSingle(byte *layout, int n)
return layout;
}
static byte FORCEINLINE *CreateMulti(byte *layout, int n, byte b)
static inline byte *CreateMulti(byte *layout, int n, byte b)
{
int i = n;
do *layout++ = b; while (--i);