[Xcb] _Problems_ in GSoC, 2011

Josh Triplett josh at joshtriplett.org
Mon Jun 20 10:53:50 PDT 2011


On Thu, Jun 16, 2011 at 02:31:35AM +0530, vikash agrawal wrote:
> I did understand the compilation and generation of codes to some extent and
> did fail at few places, but II decided to finally move on.
> I then moved to xkb and facing some similar issues,there. [ Always seeing
> XKB.[h,c] is scary :( ]. SO I will shoot some question regarding code
> generation in my next few mails [ like why is bool treated as CARD8 and not
> _Bool or on what basis c_clien.py generates _maps or )vales typedefs :) ]

I don't fully understand the latter half of this question, but regarding
bool, consider it a historical reason: X pre-dates C99 (and for that
matter C89) and definitely doesn't assume the existence of a native
"bool" type in the language (such as _Bool).

>  Till then I would be regularly asking my doubts -> [1].

Regarding your question there of "when does c_client.py generates a
pointer?": pointers get used in many different places in c_client.py,
but I'd guess you wondered about the use or non-use of pointers when
passing various types of arguments to functions.  A quick glance turned
up this code:

            field.c_pointer = ' ' if field.type.nmemb == 1 else '*'



More information about the Xcb mailing list