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

Re: API compatiblility wrapper function dilemma

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-03-11 14:09:47 CET

John Peacock wrote:
> This is the old signature for one of the functions that needs to change
> for the property keyword feature:
>
> svn_error_t *
> svn_subst_build_keywords (svn_subst_keywords_t *kw,
[...]
>
> and this is the new signature:
>
> svn_error_t *
> svn_subst_build_keywords2 (svn_subst_keywords_t *kw,
[...]
>
> Does anyone see a way that I can get back to the props hash with only the url to go on?

No, but surely that's the whole point: the new version supports property-based keywords, but the old one doesn't. You can think of (and implement) the old function as passing NULL for the "props" argument.

> p.s. this is another function which probably should have never been exposed
> in the public API

If that's the case, perhaps you could investigate replacing it with something non-public, and deprecating the public interface.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 11 14:08:59 2004

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.