[PATCH 1/2 v2] Clean up getValuatorEvents using array loop logic

Keith Packard keithp at keithp.com
Mon Mar 28 17:20:01 PDT 2011


On Mon, 28 Mar 2011 14:30:25 -0700, Jamey Sharp <jamey at minilop.net> wrote:
> The
> downside is that deviceValuator is a wire-protocol structure, and Xlib
> tries to support systems where if you want a packed 32-bit field you
> need to declare it as a bitfield. (See the B16 and B32 macros in
> protocol headers.) I'm pretty sure the address-of operator won't work
> on those systems, let alone assuming that an array packs the same way.

The client libraries used to work on systems without a native 32-bit
datatype, but the server was never ported to one as far as I know.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110328/109d7219/attachment.pgp>


More information about the xorg-devel mailing list