* 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>
+
+ 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.
#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
/* 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. */
extern-inline
gen-header
include_next
+snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
# 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' \
-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 $@