[Xcb] RFC: Altenum updates for xcb/proto

Peter Harris pharris at opentext.com
Wed Feb 25 14:29:50 PST 2009

Barton C Massey wrote:
> In message <49A5A073.4090209 at opentext.com> you wrote:
>> We could rename xcb_<enumname>_t to xcb_<enumname>_enum or
>> similar, but that would break any existing code that
>> actually uses the enum types for anything (not that I'm
>> aware of any). Or, if we're mucking with enum_t
>> definitions, we could just toss them altogether and
>> #define the constants (since C chucks enum members into
>> the global namespace anyway).
> That'd be my vote.  It's only C. :-)

Something like the attached, to go with
git://anongit.freedesktop.org/~peterh/xcbproto-enum plethora

It generates enums like:

typedef enum xcb_window_enum {
} xcb_window_enum;

Peter Harris
               Open Text Connectivity Solutions Group
Peter Harris                    http://www.opentext.com/connectivity
Research and Development        Phone: +1 905 762 6001
pharris at opentext.com            Toll Free: 1 877 359 4866
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Allow-enum-to-have-the-same-name-as-xidtype.patch
Url: http://lists.freedesktop.org/archives/xcb/attachments/20090225/a0da3cb8/attachment.asc 

More information about the Xcb mailing list