Discussion:
[Xcb] libxcb: xcb.h: anonymous structs in typedefs
Sascha Ziemann
2017-05-29 12:34:10 UTC
Permalink
I stumbled upon a problem in GCCXML with anonymous structs, while
analyzing the header xcb.h. As a result I would like to propose the
eliminate the anonymous structs. Most of the structs in the XCB
headers are not anonymous but have a name. Giving all structs a name
would make the type definitions more consistent.

The attached patch adds the missing struct names for xcb.h in libxcb.
Bart Massey
2017-05-29 16:07:12 UTC
Permalink
What was the problem you found?
Post by Sascha Ziemann
I stumbled upon a problem in GCCXML with anonymous structs, while
analyzing the header xcb.h. As a result I would like to propose the
eliminate the anonymous structs. Most of the structs in the XCB
headers are not anonymous but have a name. Giving all structs a name
would make the type definitions more consistent.
The attached patch adds the missing struct names for xcb.h in libxcb.
_______________________________________________
Xcb mailing list
https://lists.freedesktop.org/mailman/listinfo/xcb
Sascha Ziemann
2017-05-30 16:31:07 UTC
Permalink
Post by Bart Massey
What was the problem you found?
It is not a problem in the XCB header. The header is just a bit
inconsistent in the way struct types are defined. This is just a
cosmetic problem.

The problem is in gccxml:
https://github.com/gccxml/gccxml/issues/15

Loading...