Folker Schamel <schamel23_at_spinor.com> writes:
>> In any case, we're not going to go and add apr_pstrdup's around every
>> single string constant in Subversion!
>
> Its not about every constant string, its just about constant strings
> directly returned by API functions.
>
> Alternatively, you might just add one global sentence to the API spec
> saying basically that the lifetime of returned strings is not only
> limited by pool lifetimes, but also by library lifetimes.
We've been returning constant strings for about eight years now, and
we've never heard a bug report about it. Given that, I don't think we
should clutter up our API documentation by mentioning this concern.
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-05-28 17:37:25 CEST