From: Bruno Haible Date: Sun, 27 Oct 2019 23:55:05 +0000 (+0100) Subject: libtextstyle: Clarify memory_stream_contents function. X-Git-Tag: v0.20.2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e29e1ee66c45273d72ce20cba7c33e7561561460;p=thirdparty%2Fgettext.git libtextstyle: Clarify memory_stream_contents function. * 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. --- diff --git a/libtextstyle/doc/libtextstyle.texi b/libtextstyle/doc/libtextstyle.texi index d641a0737..e2bdbba6a 100644 --- a/libtextstyle/doc/libtextstyle.texi +++ b/libtextstyle/doc/libtextstyle.texi @@ -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 diff --git a/libtextstyle/gnulib-local/lib/memory-ostream.oo.h b/libtextstyle/gnulib-local/lib/memory-ostream.oo.h index c3c39656a..625557d64 100644 --- a/libtextstyle/gnulib-local/lib/memory-ostream.oo.h +++ b/libtextstyle/gnulib-local/lib/memory-ostream.oo.h @@ -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 , 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); };