# HG changeset patch # User Tuomo Valkonen # Date 1111262185 -3600 # Node ID 80b5394ff100da31d6887af5bfac62f16a07d409 # Parent 6737fe676e48a81d40fe42d656a7d1fc04bbe1f3 Added XOR macro. diff -r 6737fe676e48 -r 80b5394ff100 misc.h --- a/misc.h Tue Mar 01 22:57:57 2005 +0100 +++ b/misc.h Sat Mar 19 20:56:25 2005 +0100 @@ -21,6 +21,8 @@ #define FREE(X) do{if(X!=NULL)free(X);}while(0) +#define XOR(X, Y) (((X)==0) != ((Y)==0)) + extern void* malloczero(size_t size); extern void* remalloczero(void *ptr, size_t oldsize, size_t newsize);