[Xcb] Typed constants

Jamey Sharp jamey at minilop.net
Fri Apr 28 23:24:58 PDT 2006

I think it's a great idea. The old m4 bits had such a construct but we
never got far enough to use it. It looks to me like the XSLT has
infrastructure for declaring constants, too, so the implementation
oughtn't to be too hard.


On Fri, Apr 28, 2006 at 03:21:13PM -0700, Ian Osgood wrote:
> It would be nicer if we could export this kind of  
> constant from the library directly. This would be a proto construct  
> like:
>   <const name="CurrentTime" type="TIMESTAMP"><value>0</value></const>
> expanding in header mode to:
>   extern const XCBTIMESTAMP XCBCurrentTime;
> and in source mode to:
>   const XCBTIMESTAMP XCBCurrentTime = { 0 };
> Would this be hard to do? Does this have a downside I'm missing?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20060428/30309c10/attachment.pgp

More information about the Xcb mailing list