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

Re: [PATCH] Mark deprecated functions with SVN_DEPRECATED

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Mon, 25 Aug 2008 12:27:07 -0500

Blair Zajac wrote:
> Arfrever Frehtes Taifersar Arahesis wrote:
>> 2008-08-25 08:35:33 Blair Zajac napisaƂ(a):
>>> Arfrever Frehtes Taifersar Arahesis wrote:
>>>> The attached patch marks deprecated functions with SVN_DEPRECATED.
>>>> When such functions are used, compiler will print appropriate warnings.
>>> Hi Arfrever,
>>>
>>> Thanks for putting this patch together.
>>>
>>> However, the location of SVN_DEPRECATED is odd, as though it's part
>>> of the pointer return type:
>>>
>>> svn_error_t * SVN_DEPRECATED
>>> svn_opt_print_help2(apr_getopt_t *os,
>>> const char *pgm_name,
>>> svn_boolean_t print_version,
>>>
>>> Can we move it before the return type of the function?
>>
>> Do you want SVN_DEPRECATED on separate lines?
>> I.e. do you prefer:
>>
>> SVN_DEPRECATED
>> svn_error_t *
>> svn_function(args);
>>
>> ... or ...
>>
>> SVN_DEPRECATED svn_error_t *
>> svn_function(args);
>
> I like the first one a little better, since we always list the return
> type at the start of the line.

Agreed. It would also lessen the code churn in instances where we don't yet
have the return type and symbol name on different lines (which is actually quite
common, lamentably).

-Hyrum

Received on 2008-08-25 19:27:20 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.