[Xcb] Some comments on XCB
Carl Worth
cworth at cworth.org
Thu May 19 12:05:33 PDT 2005
On Tue, 17 May 2005 12:56:10 -0700, Josh Triplett wrote:
> > I recognized that there might be some difficulty in this area due to
> > XCB's use of code generation, but anything that could be done to
> > improve the current situation would be appreciated.
>
> No problem at all; fixed. Second and subsequent function parameters now
> line up with the first.
Fantastic! That's a great improvement, and largely solves the problem.
But the "some difficulty" I mentioned also included getting from
something like we now[*] have:
XCBVoidCookie
XCBChangeHosts (XCBConnection *c,
CARD8 mode,
CARD8 family,
CARD16 address_len,
const char *address);
to the just-that-much-better version:
XCBVoidCookie
XCBChangeHosts (XCBConnection *c,
CARD8 mode,
CARD8 family,
CARD16 address_len,
const char *address);
Feel free to accept or reject that challenge as you see fit.
-Carl
[*] This is assuming the function name is moved to start on its own
line, which I think is essential, and I imagine must be trivial to
do. Oh, and I've also added a space between the function name and the
opening parenthesis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xcb/attachments/20050519/1e6cb488/attachment.pgp
More information about the xcb
mailing list