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

Re: svn commit: r1079089 - in /subversion/trunk/subversion/libsvn_wc: wc_db_pdh.c wc_db_private.h

From: Greg Stein <gstein_at_gmail.com>
Date: Tue, 8 Mar 2011 13:38:47 -0500

On Mon, Mar 7, 2011 at 21:22, <hwright_at_apache.org> wrote:
>...
> +++ subversion/trunk/subversion/libsvn_wc/wc_db_private.h Tue Mar  8 02:22:16 2011
> @@ -52,6 +52,15 @@ struct svn_wc__db_t {
>      const char *local_abspath -> svn_wc__db_wcroot_t *wcroot  */
>   apr_hash_t *dir_data;
>
> +  /* A few members to assist with caching of kind values for paths.  See
> +     get_path_kind() for use. */
> +  struct
> +  {
> +    char *abspath;
> +    size_t size;
> +    svn_node_kind_t kind;
> +  } parse_cache;

How about just using an svn_stringbuf_t and svn_stringbuf_set() ?
That's really all you're doing here, but ... manually.

Cheers,
-g
Received on 2011-03-08 19:39:19 CET

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