summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-02-07 14:30:54 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2023-02-07 15:14:10 -0800
commit96d3aaacc5aaa0e325eff344dd7ae0e0fbf4b418 (patch)
tree0a4b3dee579fcdcf5f826e9ed02beeecae857862 /doc
parent82b840333da1eb882193c2143cb88bff4940332a (diff)
downloadgnulib-96d3aaacc5aaa0e325eff344dd7ae0e0fbf4b418.tar.gz
nullptr: rename from c-nullptr
* NEWS, doc/gnulib.texi: Mention this. * m4/nullptr.m4: Rename from m4/c-nullptr.m4. (gl_NULLPTR): Rename from gl_C_NULLPTR. * modules/nullptr: Rename from modules/nullptr. * modules/nullptr-c++-tests: Rename from modules/c-nullptr-c++-tests. * modules/nullptr-tests: Rename from modules/c-nullptr-tests. All uses changed.
Diffstat (limited to 'doc')
-rw-r--r--doc/gnulib.texi11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/gnulib.texi b/doc/gnulib.texi
index b3f011818c..6fe2678834 100644
--- a/doc/gnulib.texi
+++ b/doc/gnulib.texi
@@ -920,13 +920,13 @@ On pre-C23 platforms, the keyword substitutes assume C99 or later.
@node nullptr
@section @code{nullptr}
-Gnulib module: c-nullptr
+Gnulib module: nullptr
@cindex null pointer
-The @code{c-nullptr} module arranges for @code{nullptr} to act
-like standard C@.
+The @code{nullptr} module arranges for @code{nullptr} to act
+like standard C and C++.
-The C @code{nullptr} keyword yields a null pointer. It differs from
+The @code{nullptr} keyword yields a null pointer. It differs from
the @code{NULL} macro, in that @code{NULL} might be an integer whereas
@code{nullptr} is of a special @code{nullptr_t} type with only one
value, namely @code{nullptr} itself. Using @code{nullptr} can help
@@ -939,7 +939,8 @@ Portability problems fixed by Gnulib:
@itemize
@item
Some platforms lack @code{nullptr}:
-GCC 12, Clang 15, and other pre-2023 C compilers.
+For C: GCC 12, Clang 15, and other pre-2023 C compilers.
+For C++: pre-2011 C++ compilers.
@end itemize
Portability problems not fixed by Gnulib: