[Xcb] [PATCH] c_client.py: Prefer bit shifts over values in enum

Daniel Martin consume.noise at gmail.com
Thu Jun 6 23:21:06 PDT 2013


On Fri, Jun 07, 2013 at 12:00:39AM +0200, Daniel Martin wrote:
> When generating enum structures, prefer bit shifts over values. And
> align the equal signs.

Forgotten to mention: With this patch, we ge rid of a compiler warning
as well:
    xkb.h:118:40: warning: ISO C restricts enumerator values to range \
       of 'int' [-Wpedantic]
         XCB_XKB_CONTROL_CONTROLS_ENABLED = 2147483648


More information about the Xcb mailing list