This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libobjc] May I tweak objc-api.h?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]