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

Re: [RFC] Preprocessor flags to target code to a specific API version

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sun, 26 Sep 2010 23:00:43 +0200

Greg Stein wrote on Sun, Sep 26, 2010 at 16:01:53 -0400:
> SVN_DEPRECATED_5
> svn_error_t *
> svn_wc_some_function(arguments,
> more argments);
> SVN_MAYBE_POISON_5(svn_wc_some_function);
>
> Where the latter macro expands to: _Pragma("GCC poison
> svn_wc_some_function"); (I think that is the right syntax)
>
> But again, that will add even more cruft around the declarations which
> I'm not sure will be acceptable (gotta see what people think).

Adding the SVN_MAYBE_POISON(svn_wc_some_function) can be done
mechanically (by a script that reads the @deprecated comments and
transforms the header files accordingly) --- instead of editing all
headers now, we could provide a knob for people to run this script
during 'make install'.
Received on 2010-09-26 23:02:06 CEST

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