[Xcb] RFC: Altenum updates for xcb/proto

Antoine Latter aslatter at gmail.com
Wed Feb 25 16:52:33 PST 2009


On Wed, Feb 25, 2009 at 12:55 PM, Barton C Massey <bart at cs.pdx.edu> wrote:
> In message <eaa105840902250634k5f25e667i8809d5ad19c61db6 at mail.gmail.com> you wrote:
>> I'd like to avoid creating a whole plethora of new
>> single-entry enums (XCB_WINDOW_NONE, XCB_PIXMAP_NONE,
>> XCB_COLORMAP_NONE, XCB_CURSOR_NONE, XCB_ATOM_NONE,
>> XCB_FONT_NONE, and maybe even a few
>> XCB_extension_newtype_NONE).
>
> Why? I'd really prefer having them. They can be
> auto-generated, after all, and sooner or later someone is
> going to decide that XCB_RANDOMEXTENSIONTYPE_NONE is 17
> instead of 0 for some reason and we'll have a problem if we
> don't have them have unique names.  Further, in typed
> languages you'll need them anyway for typechecking (correct,
> Antoine?).
>

I thought this discussion was on how to do the C generation, not what
to put in the XML?  Maybe I missed something.  As long as we still
want to go forward with the "altenum" attribute in the XML I'm happy.

-Antoine


More information about the Xcb mailing list