diff options
author | tron <tron@openttd.org> | 2005-02-05 22:50:33 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-05 22:50:33 +0000 |
commit | 7aae12d55db82fc5faeed1cfcf5e4f460a277218 (patch) | |
tree | 68059d4827f8ac3262d8aecaf7170b7109c27180 /macros.h | |
parent | 4d62bbf857ed840c62d54428111aa5de6811d4bb (diff) | |
download | openttd-7aae12d55db82fc5faeed1cfcf5e4f460a277218.tar.xz |
(svn r1808) Use strcmp() instead of home brewed function str_eq()
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -26,16 +26,6 @@ static inline int clamp2(int a, int min, int max) { if (a <= min) a=min; if (a > static inline bool int32_add_overflow(int32 a, int32 b) { return (int32)(a^b)>=0 && (int32)(a^(a+b))<0; } static inline bool int32_sub_overflow(int32 a, int32 b) { return (int32)(a^b)<0 && (int32)(a^(a-b))<0; } -static inline bool str_eq(const byte *a, const byte *b) -{ - int i=0; - while (a[i] == b[i]) { - if (a[i] == 0) - return true; - i++; - } - return false; -} // Will crash if strings are equal static inline bool str_is_below(byte *a, byte *b) { |