[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: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Mon, 27 Sep 2010 06:53:38 -0500

On Sun, Sep 26, 2010 at 5:31 PM, Dani Church <dchurch_at_cheri.shyou.org> wrote:
> On Sun, 26 Sep 2010, Daniel Shahaf wrote:
>> 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'.
> I toyed around with that kind of idea, but, having just done a lot of
> partially-automated text processing on these files, I know just how hard it
> is to get it right-- I wouldn't want to leave that to an automated script.
>  Also, I'm not a big fan of having to mangle the header files before they're
> usable-- I'd rather be able to point my GCC include path straight at my
> working copy.

We already have a header-file parser: doxygen. It shouldn't be too
much trouble[1] to get the xml-ified doxygen output for a given header
and search for deprecated APIs based upon that. Whether or not we
*should* do that is another question, but I'm just pointing out that
it's technically feasible.


[1] Famous last words
Received on 2010-09-27 13:54:21 CEST

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