[Xcb] Re: very first attempt of the keybinding
Vincent.Torri at iecn.u-nancy.fr
Fri May 6 03:23:09 PDT 2005
On Fri, 6 May 2005, Josh Triplett wrote:
> Vincent Torri wrote:
>> One question, though:
>> in atoms.c, there's following code in InternAtomFast:
>> InternAtomFastCookie cookie;
>> if((cookie.u.atom = InternAtomPredefined(name_len, name)).xid !=
>> cookie.tag = TAG_VALUE;
>> return cookie;
>> I don't understand why you check cookie.u.atom, as you've just declared
>> cookie. Its values should be random, shouldn't they ?
> Ah, the joys of C. :) cookie.u.atom is first being assigned the result
> of calling InternAtomPredefined, and then the xid member of that result
> is checked against None with the != operator.
How to become ridiculous with a stupid question (lesson 1).
More information about the xcb