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

Re: svn commit: rev 1782 - trunk/subversion/libsvn_delta

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-04-25 20:10:05 CEST

On Thu, Apr 25, 2002 at 08:49:33AM -0500, striker@tigris.org wrote:
>...
> +++ trunk/subversion/libsvn_delta/diff_file.c Thu Apr 25 08:49:31 2002
>...
> +static
> +svn_diff_fns_t svn_diff__file_vtable =
> +{
> + svn_diff__file_datasource_open,
> + svn_diff__file_datasource_close,
> + svn_diff__file_datasource_get_next_token,
> + svn_diff__file_token_compare,
> + svn_diff__file_token_discard,
> + NULL
> +};

eek. This should be const. This further implies that the vtables that you
pass into svn_diff() and svn_diff3() must also be const.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 25 20:10:06 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.