Re: [PATCH libX11] Xlib.h: Fix macros imitating C functions.

2016-02-04 Thread Alan Coopersmith
On 03/25/15 11:52 PM, Dominik Muth wrote: The basic rule "put parantheses around macro parameters" should be observed where possible. Otherwise code like ConnectionNumber(foo = bar); fails to compile. (It obviously passes if ConnectionNumber is a C function.) There are several other

[PATCH libX11] Xlib.h: Fix macros imitating C functions.

2015-03-26 Thread Dominik Muth
The basic rule put parantheses around macro parameters should be observed where possible. Otherwise code like ConnectionNumber(foo = bar); fails to compile. (It obviously passes if ConnectionNumber is a C function.) There are several other macros amended for the same reason. This bug