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

Path interface cleanup

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2002-11-17 20:15:33 CET

I'm not sure if this is controversial, but I'll check. I'd like to
clean up the path functions to avoid having stringbuf/char* ways of
doing everything.

For most of the functions (svn_path_add_component, svn_path_split,
svn_path_is_empty, svn_path_canonicalize, and svn_path_compare_paths),
this means ditching the stringbuf form and renaming the _nts form to
ditch the _nts suffix.

For svn_path_remove_component, this means ditching the _nts version.
Functions which use svn_path_remove_component_nts can use
svn_path_split instead.

The end result is that svn_path_add_component and
svn_path_remove_component will operate on an svn_stringbuf_t (but use
a const char * for the path component being added), and all the other
functions will operate on const char * arguments.

I will go ahead and start working on this, but will wait a couple of
days for -1s before committing the result if I'm successful.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Nov 17 20:16:16 2002

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.