__attribute__ ((deprecated))

Stan Shebs shebs@apple.com
Tue Apr 24 12:47:00 GMT 2001


"Marcus G. Daniels" wrote:
> 
> SS> The obvious thing would be to add a new attribute, so that a header
> SS> could have something like
> 
> SS>     extern int old_bad_fn (int) __attribute__ ((deprecated));
> 
> Sounds good, but how the heck do you get the Objective C parser to
> accept __attribute__ for methods?

By modifying it, presumably. :-)  The immediate request is for the
Carbon API I believe, which is C-based, but yeah, if we make it
available for Carbon, the Cocoa folks will probably get envious and
want it for their framework too.  Thanks for the observation, I'll
take a look at the ObjC parser and see what it would take.

Stan



More information about the Gcc mailing list