Re: svn_kstring_t
From: Greg Stein <gstein_at_lyra.org>
Date: 2001-06-07 03:21:37 CEST
On Wed, Jun 06, 2001 at 05:01:24PM -0400, Greg Hudson wrote:
Agreed. Unfortunately, I'm not sure if we could pull off this name change
I'm +1 on your suggested naming. Thoughts from others?
[ hmm. maybe we do a two-step: add svn_stringbuf_t first and do a mass
> I'll assume your terminology for the rest of these comments, though.
Hmm. Not sure that I see this. How can a macro affect the ABI? Are you
> Creating a kstring will still require a pool, to allocate the
Nope. We don't need pools for the structure:
svn_kstring_t ks = { "hello", sizeof("hello") - 1 };
function(&ks);
In fact, we can even put these into global const variables now (because
static const svn_kstring_t ks = ...
Now... if the svn_kstring_t structure is *opaque*, then yes: we would need a
> We could--I'm not sure whether I like this idea or not--pass around
I'm not that these follow since we can easily put the structures on the
Note that if a function is going to store an svn_kstring_t, it needs to
Cheers,
-- Greg Stein, http://www.lyra.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Sat Oct 21 14:36:31 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.