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

Re: svn commit: r1067675 - /subversion/trunk/subversion/mod_dav_svn/mod_dav_svn.c

From: Stefan Sperling <stsp_at_elego.de>
Date: Sun, 6 Feb 2011 18:32:08 +0100

On Sun, Feb 06, 2011 at 02:30:16PM -0000, stefan2_at_apache.org wrote:
> Author: stefan2
> Date: Sun Feb 6 14:30:16 2011
> New Revision: 1067675
>
> URL: http://svn.apache.org/viewvc?rev=1067675&view=rev
> Log:
> Add cache configuration parameter SVNInMemoryCacheSize to mod_dav_svn.
> Now, the in-memory cache size can be configured for all server types.
>
> * subversion/mod_dav_svn/mod_dav_svn.c:
> (parse_number, SVNInMemoryCacheSize_cmd):
> new functions to parse and set the new parameter.
> (cmds): add command for the new parameter
>

> @@ -419,6 +420,33 @@ SVNSpecialURI_cmd(cmd_parms *cmd, void *
> return NULL;
> }
>
> +static apr_uint64_t
> +parse_number(const char *arg)
> +{
> + const char *c;
> + for (c = arg; *c != 0; ++c)
> + if (!svn_ctype_isdigit (*c))
> + return (apr_uint64_t)(-1);
> +
> + return apr_strtoi64(arg, NULL, 0);
> +}

Can we use svn_cstring_atoui64() instead of the above?
Received on 2011-02-06 18:32:54 CET

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.