[libdvdnav-devel] [PATCH] add __DEPRECATED__ modifier which can be used to deprecate API calls where compiler supports it

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Mon Jan 19 10:45:35 CET 2015


On Mon, 19 Jan 2015 07:36:48 +0000, Timothy Gu wrote:

> If you *really* want to test it, try installing your (modified)
> library and try compiling this:

Ah, OK.

> Also BTW you can't use __DEPRECATED__ as the macro name as it is
> reserved by the C standard for C implementations:
> 
> > All identifiers that begin with an underscore and either an
> > uppercase
> letter or another underscore are always reserved for any use.
> 
> (ISO/IEC 9899:2011 §7.1.3)

I wanted to mark it in some way as being for special syntactic use, as
opposed to the usual uppercase names for constants, but I guess it
could become ATTRIBUTE_DEPRECATED, for consistency with
ATTRIBUTE_PACKED.


More information about the libdvdnav-devel mailing list