[Xcb] RFC: Altenum updates for xcb/proto

Peter Harris git at peter.is-a-geek.org
Thu Feb 19 12:29:07 PST 2009


I have finished my initial work on the 'altenum' tag. Please find the
series at:
  http://cgit.freedesktop.org/~peterh/xcbproto-enum/
or pull from
  git://anongit.freedesktop.org/~peterh/xcbproto-enum master

Note that this branch has been updated and rebased since its last mention here.

The only thing that still bugs me is the name of "MayBeNone/None".
Unfortunately, I haven't been able to come up with a name that sucks
less. I thought about "Or/None", but "or" is a reserved word in many
languages.

The other thing I can think of is a cornucopia of enums, all of which
contain only 'None', for each specific instance. I like that option
even less.

Suggestions for a better name are particularly welcome.

Comments/suggestions/criticisms/flames about any of this set are also
welcome. Shortlog and diffstat appended.

Thanks,
 Peter Harris

Peter Harris (5):
      Add altenum (non-exhaustive enum)
      Document enum, altenum, and mask
      Add (and use) Time/CurrentTime enum.
      Add (and use) KeyButMask enum.
      Add (and use) MayBeNone enum.

 doc/xml-xcb.txt |    6 +++
 src/xcb.xsd     |    1 +
 src/xproto.xml  |  126 ++++++++++++++++++++++++++++++++----------------------
 3 files changed, 82 insertions(+), 51 deletions(-)


More information about the Xcb mailing list