diff options
author | truelight <truelight@openttd.org> | 2004-09-10 19:02:27 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-09-10 19:02:27 +0000 |
commit | eb49a19460f1478a9e9cee99a76391acec72d939 (patch) | |
tree | df7199c5876910bc07eb93bce29fdee7172c0fcf /macros.h | |
parent | 1c1a5b91c9b8fab3d178d207e6f77c880a142d6c (diff) | |
download | openttd-eb49a19460f1478a9e9cee99a76391acec72d939.tar.xz |
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3,7 +3,7 @@ #define MAX_INT 0x7FFFFFFF -#ifdef min +#ifdef min #undef min #endif @@ -35,7 +35,7 @@ static INLINE bool str_eq(const byte *a, const byte *b) } // Will crash if strings are equal -static INLINE bool str_is_below(byte *a, byte *b) { +static INLINE bool str_is_below(byte *a, byte *b) { while (*a <= *b) { if (*a < *b) return true; a++; @@ -152,7 +152,7 @@ static INLINE int FindFirstBit2x64(int value) #if TILE_X_BITS + TILE_Y_BITS <= 16 - typedef uint16 TileIndex; + typedef uint16 TileIndex; typedef int16 TileIndexDiff; #else typedef uint32 TileIndex; @@ -210,7 +210,7 @@ static INLINE void swap_tile(TileIndex *a, TileIndex *b) { TileIndex t = *a; *a static INLINE uint16 READ_LE_UINT16(const void *b) { return ((byte*)b)[0] + (((byte*)b)[1] << 8); } -# define ADD_WORD(x) ((x) >> 8)&0xFF, (x)&0xFF +# define ADD_WORD(x) ((x) >> 8)&0xFF, (x)&0xFF # define ADD_DWORD(x) ((x) >> 24)&0xFF, ((x) >> 16)&0xFF, ((x) >> 8)&0xFF, (x)&0xFF #endif |