diff options
author | Bruno Haible <bruno@clisp.org> | 2007-09-01 09:17:47 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:15:02 +0200 |
commit | 4f1702b17a583f4d779b01a77b6ce630a4bd3941 (patch) | |
tree | 44ee63faa4eedce7a4697f207efafd99d0209b2f /gettext-runtime | |
parent | 9349c1f79da04abc7fba870217c5506a81d6f274 (diff) | |
download | external_gettext-4f1702b17a583f4d779b01a77b6ce630a4bd3941.zip external_gettext-4f1702b17a583f4d779b01a77b6ce630a4bd3941.tar.gz external_gettext-4f1702b17a583f4d779b01a77b6ce630a4bd3941.tar.bz2 |
Explain memory management details.
Diffstat (limited to 'gettext-runtime')
-rw-r--r-- | gettext-runtime/libasprintf/ChangeLog | 6 | ||||
-rw-r--r-- | gettext-runtime/libasprintf/autosprintf.texi | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/gettext-runtime/libasprintf/ChangeLog b/gettext-runtime/libasprintf/ChangeLog index 0393c5c..eb4021a 100644 --- a/gettext-runtime/libasprintf/ChangeLog +++ b/gettext-runtime/libasprintf/ChangeLog @@ -1,3 +1,9 @@ +2007-09-01 Bruno Haible <bruno@clisp.org> + + * autosprintf.texi (Class autosprintf): Explain memory mangement + details. + Reported at <https://savannah.gnu.org/bugs/?17659>. + 2007-05-05 Bruno Haible <bruno@clisp.org> * autosprintf.texi (ifmakeinfo): Remove alias. diff --git a/gettext-runtime/libasprintf/autosprintf.texi b/gettext-runtime/libasprintf/autosprintf.texi index a2b1130..0b74d5c 100644 --- a/gettext-runtime/libasprintf/autosprintf.texi +++ b/gettext-runtime/libasprintf/autosprintf.texi @@ -33,7 +33,7 @@ This file provides documentation for GNU @code{autosprintf} library. @copying -Copyright (C) 2002-2003 Free Software Foundation, Inc. +Copyright (C) 2002-2003, 2006-2007 Free Software Foundation, Inc. This manual is free documentation. It is dually licensed under the GNU FDL and the GNU GPL. This means that you can redistribute this @@ -63,7 +63,7 @@ A copy of the license is at @url{http://www.gnu.org/licenses/gpl.html}. @page @vskip 0pt plus 1filll @c @insertcopying -Copyright (C) 2002-2003 Free Software Foundation, Inc. +Copyright (C) 2002-2003, 2006-2007 Free Software Foundation, Inc. This manual is free documentation. It is dually licensed under the GNU FDL and the GNU GPL. This means that you can redistribute this @@ -150,7 +150,10 @@ The constructor @code{autosprintf (const char *format, ...)} takes a format string and additional arguments, like the C function @code{printf}. Conversions to @code{char *} and @code{std::string} are defined that return -the encapsulated string. +the encapsulated string. The conversion to @code{char *} returns a freshly +allocated copy of the encapsulated string; it needs to be freed using +@code{delete[]}. The conversion to @code{std::string} returns a copy of +the encapsulated string, with automatic memory management. The destructor @code{~autosprintf ()} destroys the encapsulated string. |