PATCH: Make ObjC an extension of C (Take 2)
Stan Shebs
shebs@apple.com
Fri Aug 9 10:17:00 GMT 2002
Ziemowit Laski wrote:
> Ok, I've incorporated some of Neil Booth's suggestions, notably
> renaming compiling_objc to flag_objc, and removing this flag
> from cpplib. Selecting Objective-C will currently imply C89;
> I have a fix to c-parse.in in the queue which will allow C99
> designated initializers to coexist with ObjC messages; once that
> goes in, we could have ObjC imply C99 instead.
>
> I'm currently bootstrapping the whole thing on i686-pc-linux-gnu.
> OK for TOT if all goes well?
OK, with Neil's changes and the following tweaks.
> + /* The following flag is non-zero whenever ObjC or ObjC++ is being
Reword to say "Objective-C functionality" or something like that. As
you yourself noted, references to things not actually in the source are
confusing at best.
>
> + /* The following flag is non-zero whenever ObjC or ObjC++ is being
Ditto.
> ! #ifdef OBJCPLUS
> ! cxx_init_options (clk_cplusplus);
> ! #else
> ! c_common_init_options (clk_c);
> ! #endif
> ! }
Don't forget about this bit...
Stan
More information about the Gcc-patches
mailing list