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

Gabriel Dos Reis gdr@integrable-solutions.net
Fri Feb 6 23:43:00 GMT 2004


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
 



More information about the Gcc mailing list