1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

(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

@@ -173,22 +173,22 @@ static uint SlGetGammaLength(uint i) {
return (i>=0x80) ? 2 : 1;
}
int inline SlReadSparseIndex()
inline int SlReadSparseIndex()
{
return SlReadSimpleGamma();
}
void inline SlWriteSparseIndex(uint index)
inline void SlWriteSparseIndex(uint index)
{
SlWriteSimpleGamma(index);
}
int inline SlReadArrayLength()
inline int SlReadArrayLength()
{
return SlReadSimpleGamma();
}
void inline SlWriteArrayLength(uint length)
inline void SlWriteArrayLength(uint length)
{
SlWriteSimpleGamma(length);
}