[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_subr svn_string.c

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2000-10-14 00:52:35 CEST

> I'd go as far as adding a note to the HACKING file that Subversion
> code should have no typecasts whatsoever

Well, I sometimes cast a char * to an (unsigned char *) or a char to
an unsigned char when I'm going to be doing bitwise manipulation on
the data. I don't think you can get away with no typecasts at all.

Some of our code does make a habit of explicitly casting from void *
to other types (I've been inconsistent myself). I believe that may be
necessary if you want to be able to cleanly compile the C code as C++
code, but, I'm not sure.
Received on Sat Oct 21 14:36:11 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.