Module Name:    xsrc
Committed By:   mrg
Date:           Sun Jul 24 13:01:13 UTC 2011

Modified Files:
        xsrc/external/mit/libXext/dist/src: XSync.c

Log Message:
avoid having macros expand code to be:
        ((f) ? (f)->m1 : NULL)->m2


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4 -r1.2 xsrc/external/mit/libXext/dist/src/XSync.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/libXext/dist/src/XSync.c
diff -u xsrc/external/mit/libXext/dist/src/XSync.c:1.1.1.4 xsrc/external/mit/libXext/dist/src/XSync.c:1.2
--- xsrc/external/mit/libXext/dist/src/XSync.c:1.1.1.4	Sat Jul 23 12:21:47 2011
+++ xsrc/external/mit/libXext/dist/src/XSync.c	Sun Jul 24 13:01:13 2011
@@ -107,8 +107,8 @@
 };
 
 #define NUM_VERSIONS (sizeof(supported_versions)/sizeof(supported_versions[0]))
-#define GET_VERSION(info) ((info) ? (const SyncVersionInfo*)(info)->data : NULL)
-#define IS_VERSION_SUPPORTED(info) (!!GET_VERSION(info))
+#define GET_VERSION(info) ((const SyncVersionInfo*)(info)->data)
+#define IS_VERSION_SUPPORTED(info) (!!(info))
 
 static
 const SyncVersionInfo* GetVersionInfo(Display *dpy)

Reply via email to