[PATCH V2] wayland.xml: add "enum", "bitfield" and "is_bitfield" attributes

Bill Spitzak spitzak at gmail.com
Tue Sep 23 14:41:08 PDT 2014

On 09/23/2014 02:19 PM, Jason Ekstrand wrote:

> In this case, what is the point of making the distinction?  Why not just
> specify everything as a bitfield?  What do you gain from knowing that
> two things will never be ORed together?

It is to make any attempt to or them together fail at compile time.

Also in some languages (C++) the non-bitfield version is easier to read 
and write the source code for, and produces legible error messages when 

More information about the wayland-devel mailing list