[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 convert-size.c convert-size.h dir.c id.c id.h skel.c skel.h txn.c

From: Jim Blandy <jimb_at_zwingli.cygnus.com>
Date: 2000-11-13 18:22:34 CET

I don't think constifying the skel functions is right, as explained in
this comment in skel.h:

   You'd think that DATA would be a `const char *', but we want to
   create `skel' structures that point into it, and a skel's DATA
   pointer shouldn't be a `const char *', since that would constrain
   how the caller can use the structure. We only want to say that
   *we* won't change it --- we don't want to prevent the caller from
   changing it --- but C's type system doesn't allow us to say that. */

A skel_t's .data pointer should be a const char *. I'll fix it up.
Received on Sat Oct 21 14:36:14 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.