This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: __attribute__ ((deprecated))


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]