On 06.02.2011 18:32, Stefan Sperling wrote:
> 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?
Thanks for pointing that out. I wasn't aware that we have
validating parser functions for that.
Changed in r1067714.
-- Stefan^2.
Received on 2011-02-06 19:16:02 CET