[Xcb] [Bug 43603] RotateProperties has an array of 'atoms' where the spec says 'properties'
Alan Coopersmith
alan.coopersmith at oracle.com
Thu Dec 8 17:51:35 PST 2011
On 12/08/11 17:37, Josh Triplett wrote:
> On Thu, Dec 08, 2011 at 04:18:23PM -0800, Bart Massey wrote:
>> One of the things we do try to enforce is that the names in XCB match
>> the names in the spec (where there is one :-) to support just the kind
>> of case you describe. On the other hand, I hate to break existing
>> code.
>>
>> Suggestions appreciated; I hate to just let this one die if we could
>> figure out something better.
>
> I can think of one possible solution, if we don't mind using anonymous
> union support. Just define the relevant field as an anonymous union,
> containing both field names. That would preserve both API and ABI.
Unfortunately, anonymous unions are a gcc extension that are not universally
supported yet (the next generation ISO C standard, C1X, is supposed to
include them, so someday we'll get there).
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Platform Engineering: X Window System
More information about the Xcb
mailing list