* 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.
+2023-02-07 Paul Eggert <eggert@cs.ucla.edu>
+
+ 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.
+
2023-02-07 Bruno Haible <bruno@clisp.org>
Fix a copyright header - module license mismatch.
Date Modules Changes
+2023-02-07 c-nullptr Rename this module to nullptr.
+
2023-01-21 getprogname The include file is changed from "getprogname.h"
to <stdlib.h>.
@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
@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:
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
-AC_DEFUN([gl_C_NULLPTR],
+AC_DEFUN([gl_NULLPTR],
[
AC_CACHE_CHECK([for nullptr], [gl_cv_c_nullptr],
[AC_COMPILE_IFELSE(
A nullptr that is like C23.
Files:
-m4/c-nullptr.m4
+m4/nullptr.m4
Depends-on:
configure.ac:
-gl_C_NULLPTR
+gl_NULLPTR
Makefile.am:
tests/macros.h
Depends-on:
-c-nullptr-c++-tests
+nullptr-c++-tests
configure.ac: