Sat, 19 Mar 2005 20:56:25 +0100
Added XOR macro.
misc.h | file | annotate | diff | comparison | revisions |
--- 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);