|
From: | Ziemowit Laski |
Subject: | Re: [libobjc] May I tweak objc-api.h? |
Date: | Fri, 6 Feb 2004 14:24:47 -0800 |
On 6 Feb, 2004, at 14.19, Andrew Pinski wrote:
On Feb 6, 2004, at 14:14, Ziemowit Laski wrote:On 6 Feb, 2004, at 14.07, Ziemowit Laski wrote:On 6 Feb, 2004, at 14.02, Alexander Malmberg wrote:Ziemowit Laski wrote:typedef struct objc_super {id self; /* Id of the object sendingthe message. */Class class; /* Object's super class.*/ } Super, *Super_t;[snip]So, do you think it would be OK to rename 'class' above to, say, 'super_class'?This field is used in GNUstep. What do you propose that code should doto work with both versions? Change the name only if __cplusplus is defined?Change the name unconditionally... please? :-)Of course, this only applies to stuff in headers that may get pulled into a C++/ObjC++ translation unit. I just noticed that GNU libobjc has localobjects named 'class' in its .c and .m files, which is fine.But the structs are used in GNUStep and which cannot change just support one version of gcc. They have to support multiple versions of gcc. I rescind my ok on this. Knowing that programs will brake. Also changing it conditional on __cplusplus is okay with me as it isokay with Alex.
OK, I'll do the conditional change. --Zem -------------------------------------------------------------- Ziemowit Laski 1 Infinite Loop, MS 301-2K Mac OS X Compiler Group Cupertino, CA USA 95014-2083 Apple Computer, Inc. +1.408.974.6229 Fax .5477
[Prev in Thread] | Current Thread | [Next in Thread] |