[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/libsvn_fs dag.h

From: Jim Blandy <jimb_at_zwingli.cygnus.com>
Date: 2001-02-08 21:47:25 CET

Greg Stein <gstein@lyra.org> writes:

>
> On Thu, Feb 08, 2001 at 05:26:43PM -0000, jimb@tigris.org wrote:
> >...
> > +/* Return a new dag_node_t object referring to the same node as NODE,
> > + allocated in TRAIL->pool. */
> > +dag_node_t *svn_fs__dag_dup (dag_node_t *node,
> > + trail_t *trail);
> >...
> > +/* Return the filesystem containing NODE. */
> > +const svn_fs_t *svn_fs__dag_get_fs (dag_node_t *node);
>
> The parameters in the above two functions can/should be "const". But that
> svn_fs_t return value probably shouldn't. You wouldn't be able to pass the
> FS anywhere if you do that.

That `const svn_fs_t' was a cut-and-paste-o. Thanks.

I don't want the node arguments to be const, though. There's no
reason those functions shouldn't be permitted to change the contents
of the node for some internal reason if they please.
Received on Sat Oct 21 14:36:21 2006

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.