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: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Mike Stump <mrs at apple dot com>
- Cc: Alexander Malmberg <alexander at malmberg dot org>, GCC List <gcc at gcc dot gnu dot org>, discuss-gnustep at gnu dot org, objc-language at lists dot apple dot com
- Date: 07 Feb 2004 00:35:16 +0100
- Subject: Re: [libobjc] May I tweak objc-api.h?
- Organization: Integrable Solutions
- References: <E8FE7EF1-58F8-11D8-A95F-003065BDF310@apple.com>
Mike Stump <mrs@apple.com> writes:
| 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.
|
| Something like:
|
| struct A {
| int class;
| };
|
| became:
|
| struct A {
| int super_class;
| };
Just a minor precision: They called it "c_class" and the structures
in question are Visual and XWindowAttributes. But they are still
depending on CPP conditional inclusion:
#if defined(__cplusplus)
int c_class;
#else
int class;
#endif
[...]
| The X11 folks grappled with this, gosh, a long long time ago. Time to
| enter the 90s. :-)
It looks like they are still using CPP to handle this, even in the 00s
:-)
-- Gaby