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

Re: CVS update: subversion/subversion/include svn_path.h

From: Karl Fogel <kfogel_at_galois.collab.net>
Date: 2000-09-18 19:17:58 CEST

jimb@tigris.org writes:
> Log:
> Doc fixes.

Thanks -- they look good.

> Revision Changes Path
> 1.12 +17 -6 subversion/subversion/include/svn_path.h
>
> Index: svn_path.h
> ===================================================================
> RCS file: /cvs/subversion/subversion/include/svn_path.h,v
> retrieving revision 1.11
> retrieving revision 1.12
> diff -u -r1.11 -r1.12
> --- svn_path.h 2000/09/11 09:03:12 1.11
> +++ svn_path.h 2000/09/18 17:50:50 1.12
> @@ -84,17 +84,28 @@
> #define SVN_PATH_URL_STYLE 3
>
>
> -/* Add a COMPONENT (a null-terminated C-string) to PATH. */
> -void svn_path_add_component_nts (svn_string_t *path,
> - const char *component,
> - int style,
> - apr_pool_t *pool);
> +/* Add a COMPONENT (a null-terminated C-string) to PATH.
> +
> + If PATH is non-empty, append the appropriate directory separator
> + character, and then COMPONENT. If PATH is empty, simply set it to
> + COMPONENT; don't add any separator character.
> +
> + If the result ends in a separator character, then remove the separator.
>
> -/* Add COMPONENT to PATH. */
> + The separator character is chosen according to STYLE. For
> + SVN_PATH_REPOS_STYLE, it would be '/'. For SVN_PATH_LOCAL_STYLE on
> + a Unix system, it would also be '/'. */
> void svn_path_add_component (svn_string_t *path,
> const svn_string_t *component,
> int style,
> apr_pool_t *pool);
> +
> +/* Same as `svn_path_add_component', except that the COMPONENT argument is
> + a C-style '\0'-terminated string, not an svn_string_t. */
> +void svn_path_add_component_nts (svn_string_t *path,
> + const char *component,
> + int style,
> + apr_pool_t *pool);
>
> /* Remove one component off the end of PATH. */
> void svn_path_remove_component (svn_string_t *path, int style);
>
>
>
Received on Sat Oct 21 14:36:08 2006

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