[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [RFC] Mark deprecated functions with SVN_DEPRECATED / __attribute__((deprecated))

From: Philip Martin <philip_at_codematters.co.uk>
Date: Mon, 18 Aug 2008 21:47:12 +0100

Arfrever Frehtes Taifersar Arahesis <arfrever.fta_at_gmail.com> writes:

> I would like to suggest that deprecated functions be additionally marked with
> __attribute__((deprecated)) [1]. I suggest to directly use SVN_DEPRECATED
> which can be defined in a header (e.g. svn_types.h) by:
> #define SVN_DEPRECATED __attribute__((deprecated))

We are committed to supporting old interfaces for the lifetime of 1.x
and they should continue to work as well as they ever did. Newer
interfaces may be better but we should not force users to upgrade, and
we should certainly not make upgrading the only way to avoid warnings.

I'd suggest something like:

#define SVN_DEPRECATED compiler magic

We can arrange for our build to define SVN_DEPRECATED_WARNING and
everyone else can choose for themselves.

To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-08-18 22:47:33 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.