discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Alexander Malmberg
Subject: Re: [libobjc] May I tweak objc-api.h?
Date: Sat, 07 Feb 2004 00:46:34 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]