]> 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:24:35 +0000 (22:24 +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 3b7598d7cbf501fc87278b92797c60c237d45f20..770f60fa5b236e734ddbfd174f801a3c42ce8d8f 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 ab7c1f2d94ea6562da87c6665f688f187437d59a..e3914b58cab880c764246e96a307c49693f734e6 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.  */
+
 
 #if !(@HAVE_UCHAR_H@ || (defined __cplusplus && @CXX_HAS_UCHAR_TYPES@))
 
index 2c947ed2438336bdc95d354ca2aeca91cb3b21a2..f14611fc5723952e81bb965f1e2babb23de5dd8f 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
 stdint
 wchar
 
@@ -21,7 +23,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' \
@@ -61,6 +63,8 @@ uchar.h: uchar.in.h $(top_builddir)/config.status $(CXXDEFS_H)
              -e 's|@''REPLACE_C32RTOMB''@|$(REPLACE_C32RTOMB)|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