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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user