[libobjc] May I tweak objc-api.h?
Alexander Malmberg
alexander@malmberg.org
Fri Feb 6 23:49:00 GMT 2004
Mike Stump wrote:
> There is excellent prior art here, with exactly this issue. The case
> came up with X11 and C++ and a keyword, probably class, and in some
> area that did affect api code.
>
> The solution they took, was to migrate to a new name, the same new
> name, in C and C++, I think we should do the same.
It's prior art all right, but it doesn't support your argument. :)
Quoting the latest version of XFree86's Xlib.h:
""
#if defined(__cplusplus) || defined(c_plusplus)
int c_class; /* C++ class of screen (monochrome,
etc.) */
#else
int class; /* class of screen (monochrome, etc.) */
#endif
""
http://cvsweb.xfree86.org/cvsweb/xc/lib/X11/Xlib.h?rev=3.26&content-type=text/x-cvsweb-markup
There are tons of other cases of this in XFree86's headers.
- Alexander Malmberg
More information about the Gcc
mailing list