----- Original Message ----- From: "Dan Sugalski" <[EMAIL PROTECTED]> > Actually, we don't. (Sez the man catching up on altogether too much > mail) Since we're putting the COW stuff at the tail end, substrings > of COW strings are fine. You set the bufstart to where the substring > starts, buflen set so it goes to the end of the original buffer, and > the string length bit holds the real string length. That way you > start where you need to, but you can still find the COW marker off > the end of the original buffer. >
As I understand it, that means putting the original buffer length in the tail, and using true_bufstart = (char *)s->bufstart - (tail->buflen - s->buflen) in compact_string_pool? -- Peter Gibbs EmKel Systems