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

Use ordinary C strings for filenames?

From: Jim Blandy <jimb_at_zwingli.cygnus.com>
Date: 2000-11-11 00:23:10 CET

While I'm at it...

Since valid names in a Subversion filesystem may not contain the null
character, it's not *necessary* to use svn_string_t for filename
arguments to FS functions. APR, together with ANSI, provide a full
set of primitives for dealing with standard null-terminated strings.
And debuggers print them nicely.

I never mutate a string the user passes in, so the fact that an
svn_string_t knows its pool doesn't matter.

Should I use `[const] char *' for name/path arguments to filesystem
functions, instead of `svn_string_t'?

I don't think the change will take much work.
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.