]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
libtextstyle: Clarify memory_stream_contents function.
authorBruno Haible <bruno@clisp.org>
Sun, 27 Oct 2019 23:55:05 +0000 (00:55 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 11:26:45 +0000 (13:26 +0200)
* libtextstyle/gnulib-local/lib/memory-ostream.oo.h (memory_stream::contents):
Clarify extent of return values.
* libtextstyle/doc/libtextstyle.texi (The memory_ostream class): Likewise.

libtextstyle/doc/libtextstyle.texi
libtextstyle/gnulib-local/lib/memory-ostream.oo.h

index d641a07377bcc52bf504237c9ed801bbb5d3956f..e2bdbba6a6a241e40b347a4cc741dcddac8985ce 100644 (file)
@@ -998,7 +998,7 @@ Returns a pointer to the output accumulated so far and its size.  It
 stores them in @code{*@var{bufp}} and @code{*@var{buflenp}}, respectively.
 
 Note: These two return values become invalid when more output is done to
-the stream.
+the stream or when the stream is freed.
 @end deftypefn
 
 @node The iconv_ostream class
index c3c39656a2be7659054cc8c8d79df8f1d37d1c03..625557d64ae6923ac0361fd7cb73910664e5e615 100644 (file)
@@ -1,5 +1,5 @@
 /* Output stream that accumulates the output in memory.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2019 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2006.
 
    This program is free software: you can redistribute it and/or modify
@@ -28,7 +28,7 @@ methods:
   /* Return a pointer to the output accumulated so far and its size:
      Store them in *BUFP and *BUFLENP.
      Note: These two return values become invalid when more output is done to
-     the stream.  */
+     the stream or when the stream is freed.  */
   void contents (memory_ostream_t stream, const void **bufp, size_t *buflenp);
 };