]> Savannah Git Hosting - gnulib.git/commitdiff
uchar: Include the necessary snippets.
authorBruno Haible <bruno@clisp.org>
Fri, 28 Jul 2023 13:15:26 +0000 (15:15 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 28 Jul 2023 20:14:10 +0000 (22:14 +0200)
* lib/uchar.in.h: Add insertion points for _GL_ARG_NONNULL and
_GL_WARN_ON_USE.
* modules/uchar (Depends-on): Add snippet/arg-nonnull,
snippet/warn-on-use.
(Makefile.am): In uchar.h, include the ARG_NONNULL_H and WARN_ON_USE_H
snippets.

ChangeLog
lib/uchar.in.h
modules/uchar

index d26ac71418664a4a137b6096d94184b4f6d330a1..774943fcaa5e1b24e9276df3950de32484b1fa3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2023-07-28  Bruno Haible  <bruno@clisp.org>
+
+       uchar: Include the necessary snippets.
+       * lib/uchar.in.h: Add insertion points for _GL_ARG_NONNULL and
+       _GL_WARN_ON_USE.
+       * modules/uchar (Depends-on): Add snippet/arg-nonnull,
+       snippet/warn-on-use.
+       (Makefile.am): In uchar.h, include the ARG_NONNULL_H and WARN_ON_USE_H
+       snippets.
+
 2023-07-23  Bruno Haible  <bruno@clisp.org>
 
        fnmatch: Work around bugs on FreeBSD, NetBSD, Solaris, Cygwin, Android.
index 3ead6f5bce08e22354a8ee550a2261d5a23ae8af..8bf36b9a9d84be135bc9fda1d79203e51bcf7802 100644 (file)
 
 /* 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.  */
+
 
 _GL_INLINE_HEADER_BEGIN
 
index f5539abbb3eba7c6b1e60ab1ab4d83a7baf5c282..b7d3a82a9b2c340ffbb79f6bd382c89123ee5666 100644 (file)
@@ -9,7 +9,9 @@ m4/stdint.m4
 Depends-on:
 gen-header
 include_next
+snippet/arg-nonnull
 snippet/c++defs
+snippet/warn-on-use
 extern-inline
 assert-h
 stdint
@@ -23,7 +25,7 @@ AC_PROG_MKDIR_P
 Makefile.am:
 BUILT_SOURCES += uchar.h
 
-uchar.h: uchar.in.h $(top_builddir)/config.status $(CXXDEFS_H)
+uchar.h: uchar.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' \
@@ -72,6 +74,8 @@ uchar.h: uchar.in.h $(top_builddir)/config.status $(CXXDEFS_H)
              -e 's|@''REPLACE_MBRTOC16''@|$(REPLACE_MBRTOC16)|g' \
              -e 's|@''REPLACE_MBRTOC32''@|$(REPLACE_MBRTOC32)|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)/uchar.in.h > $@-t
        $(AM_V_at)mv $@-t $@
 MOSTLYCLEANFILES += uchar.h uchar.h-t