From 12183084b75365777aecd57fe43a355f39d1200c Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 5 Feb 2005 22:50:33 +0000 Subject: (svn r1808) Use strcmp() instead of home brewed function str_eq() --- macros.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'macros.h') diff --git a/macros.h b/macros.h index 71f015bdb..62840bee6 100644 --- a/macros.h +++ b/macros.h @@ -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) { -- cgit v1.2.3-54-g00ecf