public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7930] gcov: Reword comment for gcov_read_string()
@ 2022-03-31 7:00 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2022-03-31 7:00 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:63cd7cef7e0f49fa557c5f694dbbd2e68de1f822
commit r12-7930-g63cd7cef7e0f49fa557c5f694dbbd2e68de1f822
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Thu Mar 31 08:10:37 2022 +0200
gcov: Reword comment for gcov_read_string()
gcc/
* gcov-io.cc (gcov_read_string): Reword documentation comment.
Diff:
---
gcc/gcov-io.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/gcov-io.cc b/gcc/gcov-io.cc
index c2e9e2b6d64..72c40f8eaa0 100644
--- a/gcc/gcov-io.cc
+++ b/gcc/gcov-io.cc
@@ -473,9 +473,9 @@ mangle_path (char const *base)
/* We need to expose the below function when compiling for gcov-tool. */
#if !IN_LIBGCOV || defined (IN_GCOV_TOOL)
-/* Read string from coverage file. Returns a pointer to a static
- buffer, or NULL on empty string. You must copy the string before
- calling another gcov function. */
+/* Read string from coverage file. Allocate the buffer for the string
+ from the heap or die. Return a pointer to the string, or NULL on
+ empty string. */
GCOV_LINKAGE const char *
gcov_read_string (void)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-31 7:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 7:00 [gcc r12-7930] gcov: Reword comment for gcov_read_string() Sebastian Huber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).