From: Martin Mares Date: Sat, 28 Feb 2004 11:03:42 +0000 (+0000) Subject: Added REV_COMPARE(x,y) which is equivalent to COMPARE(y,x), but it's X-Git-Tag: holmes-import~1104 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b42162f5526360acc6930e3d2e296af1fef08e63;p=libucw.git Added REV_COMPARE(x,y) which is equivalent to COMPARE(y,x), but it's better readable to use both of them instead of swapping the arguments. --- diff --git a/lib/lib.h b/lib/lib.h index 0b50314f..a36b5be6 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -40,6 +40,7 @@ #define GLUE(x,y) x##y #define GLUE_(x,y) x##_##y #define COMPARE(x,y) do { if ((x)<(y)) return -1; if ((x)>(y)) return 1; } while(0) +#define REV_COMPARE(x,y) COMPARE(y,x) /* Logging */