summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2001-10-09 14:53:54 +0200
committerserg@serg.mysql.com <>2001-10-09 14:53:54 +0200
commit3d3ef6528a48f5fba7bfcef10970c89bfb88e420 (patch)
treec39107b036ff091f557b03a1f37183735dcddbad /include/my_global.h
parent5a9a3e91e7a0732dc8428796c970ed0bdcc8b8c3 (diff)
downloadmariadb-git-3d3ef6528a48f5fba7bfcef10970c89bfb88e420.tar.gz
Boolean search passes _some_ tests
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 7cd79b3e078..c6c18a987e2 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -262,7 +262,7 @@ int __void__;
#define LINT_INIT(var)
#endif
-/* Define som useful general macros */
+/* Define some useful general macros */
#if defined(__cplusplus) && defined(__GNUC__)
#define max(a, b) ((a) >? (b))
#define min(a, b) ((a) <? (b))
@@ -276,6 +276,7 @@ typedef unsigned int uint;
typedef unsigned short ushort;
#endif
+#define comp(a,b) (((a) < (b)) ? -1 : ((a) > (b)) ? 1 : 0)
#define sgn(a) (((a) < 0) ? -1 : ((a) > 0) ? 1 : 0)
#define swap(t,a,b) { register t dummy; dummy = a; a = b; b = dummy; }
#define test(a) ((a) ? 1 : 0)