]> Savannah Git Hosting - gnulib.git/commitdiff
ctype-h: Make ctype.h self-contained again (regr. 2025-02-14).
authorBruno Haible <bruno@clisp.org>
Sun, 16 Feb 2025 10:34:23 +0000 (11:34 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Feb 2025 12:45:35 +0000 (13:45 +0100)
* lib/ctype.in.h: Add comments re _GL_ARG_NONNULL.
* modules/ctype-h (Depends-on): Add snippet/arg-nonnull.
(Makefile.am): Substitute $(ARG_NONNULL_H) into ctype.h.

ChangeLog
lib/ctype.in.h
modules/ctype-h

index c949a1385d672aa9a5da427120c9054c9d45d0dd..53bb4370732ddbcd29770d7d759bbaa7bb15bfc5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-02-16  Bruno Haible  <bruno@clisp.org>
+
+       ctype-h: Make ctype.h self-contained again (regr. 2025-02-14).
+       * lib/ctype.in.h: Add comments re _GL_ARG_NONNULL.
+       * modules/ctype-h (Depends-on): Add snippet/arg-nonnull.
+       (Makefile.am): Substitute $(ARG_NONNULL_H) into ctype.h.
+
 2025-02-16  Bruno Haible  <bruno@clisp.org>
 
        bootstrap: Fix recognition of --depth option with recent git releases.
index 130ef7e0d3b38f831b7c75bfd0bb6f47d7fa53aa..f0e62395b3041e11eebff40c2b80ce5262eed96d 100644 (file)
@@ -49,7 +49,7 @@
 #ifndef _@GUARD_PREFIX@_CTYPE_H
 #define _@GUARD_PREFIX@_CTYPE_H
 
-/* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*.  */
+/* This file uses _GL_ARG_NONNULL, GNULIB_POSIXCHECK, HAVE_RAW_DECL_*.  */
 #if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
@@ -65,6 +65,8 @@
 
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
+/* The definition of _GL_ARG_NONNULL is copied here.  */
+
 /* The definition of _GL_WARN_ON_USE is copied here.  */
 
 /* Return non-zero if c is alphanumeric.  */
index 56edc715b66dce0813a0cb5ac39c6cc1cc03aca2..3caaad5f5c0928fbdba530c394ccf7bafb5b3aa3 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 extern-inline
 gen-header
 include_next
+snippet/arg-nonnull
 snippet/c++defs
 snippet/warn-on-use
 
@@ -22,7 +23,7 @@ BUILT_SOURCES += ctype.h
 
 # We need the following in order to create <ctype.h> when the system
 # doesn't have one that works with the given compiler.
-ctype.h: ctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
+ctype.h: ctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 @NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
        $(gl_V_at)$(SED_HEADER_STDOUT) \
              -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
@@ -61,6 +62,7 @@ ctype.h: ctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
              -e 's/@''HAVE_TOLOWER_L''@/$(HAVE_TOLOWER_L)/g' \
              -e 's/@''HAVE_TOUPPER_L''@/$(HAVE_TOUPPER_L)/g' \
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
+             -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
              $(srcdir)/ctype.in.h > $@-t
        $(AM_V_at)mv $@-t $@