This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [libobjc] May I tweak objc-api.h?
- From: Alexander Malmberg <alexander at malmberg dot org>
- To: GCC List <gcc at gcc dot gnu dot org>
- Cc: discuss-gnustep at gnu dot org, objc-language at lists dot apple dot com
- Date: Sat, 07 Feb 2004 00:46:34 +0100
- Subject: Re: [libobjc] May I tweak objc-api.h?
- References: <E8FE7EF1-58F8-11D8-A95F-003065BDF310@apple.com>
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