Rename module 'warn-on-use' to 'snippet/warn-on-use'.
authorBruno Haible <bruno@clisp.org>
Tue, 12 Jul 2011 09:44:55 +0000 (11:44 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 12 Jul 2011 09:58:49 +0000 (11:58 +0200)
* modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
(Files, Makefile.am): Update.
* build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
* modules/arpa_inet (Depends-on): Update.
* modules/ctype (Depends-on): Update.
* modules/dirent (Depends-on): Update.
* modules/fcntl-h (Depends-on): Update.
* modules/glob (Depends-on): Update.
* modules/iconv-h (Depends-on): Update.
* modules/inttypes-incomplete (Depends-on): Update.
* modules/langinfo (Depends-on): Update.
* modules/locale (Depends-on): Update.
* modules/math (Depends-on): Update.
* modules/netdb (Depends-on): Update.
* modules/poll-h (Depends-on): Update.
* modules/pty (Depends-on): Update.
* modules/search (Depends-on): Update.
* modules/signal (Depends-on): Update.
* modules/spawn (Depends-on): Update.
* modules/stdio (Depends-on): Update.
* modules/stdlib (Depends-on): Update.
* modules/string (Depends-on): Update.
* modules/strings (Depends-on): Update.
* modules/sys_file (Depends-on): Update.
* modules/sys_ioctl (Depends-on): Update.
* modules/sys_select (Depends-on): Update.
* modules/sys_socket (Depends-on): Update.
* modules/sys_stat (Depends-on): Update.
* modules/sys_time (Depends-on): Update.
* modules/sys_times (Depends-on): Update.
* modules/sys_utsname (Depends-on): Update.
* modules/sys_wait (Depends-on): Update.
* modules/termios (Depends-on): Update.
* modules/time (Depends-on): Update.
* modules/unistd (Depends-on): Update.
* modules/wchar (Depends-on): Update.
* modules/wctype-h (Depends-on): Update.
* MODULES.html.sh (Support for building libraries and executables):
Update.

40 files changed:
ChangeLog
MODULES.html.sh
build-aux/snippet/warn-on-use.h [new file with mode: 0644]
build-aux/warn-on-use.h [deleted file]
modules/arpa_inet
modules/ctype
modules/dirent
modules/fcntl-h
modules/glob
modules/iconv-h
modules/inttypes-incomplete
modules/langinfo
modules/locale
modules/math
modules/netdb
modules/poll-h
modules/pty
modules/search
modules/signal
modules/snippet/warn-on-use [new file with mode: 0644]
modules/spawn
modules/stdio
modules/stdlib
modules/string
modules/strings
modules/sys_file
modules/sys_ioctl
modules/sys_select
modules/sys_socket
modules/sys_stat
modules/sys_time
modules/sys_times
modules/sys_utsname
modules/sys_wait
modules/termios
modules/time
modules/unistd
modules/warn-on-use [deleted file]
modules/wchar
modules/wctype-h

index 533f1a48867aa29d3325e3b67f8ca7d0f912a2fa..92c8f306e435a4092edcbcc5c056a1132e3312ce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,46 @@
+2011-07-12  Bruno Haible  <bruno@clisp.org>
+
+       Rename module 'warn-on-use' to 'snippet/warn-on-use'.
+       * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
+       (Files, Makefile.am): Update.
+       * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
+       * modules/arpa_inet (Depends-on): Update.
+       * modules/ctype (Depends-on): Update.
+       * modules/dirent (Depends-on): Update.
+       * modules/fcntl-h (Depends-on): Update.
+       * modules/glob (Depends-on): Update.
+       * modules/iconv-h (Depends-on): Update.
+       * modules/inttypes-incomplete (Depends-on): Update.
+       * modules/langinfo (Depends-on): Update.
+       * modules/locale (Depends-on): Update.
+       * modules/math (Depends-on): Update.
+       * modules/netdb (Depends-on): Update.
+       * modules/poll-h (Depends-on): Update.
+       * modules/pty (Depends-on): Update.
+       * modules/search (Depends-on): Update.
+       * modules/signal (Depends-on): Update.
+       * modules/spawn (Depends-on): Update.
+       * modules/stdio (Depends-on): Update.
+       * modules/stdlib (Depends-on): Update.
+       * modules/string (Depends-on): Update.
+       * modules/strings (Depends-on): Update.
+       * modules/sys_file (Depends-on): Update.
+       * modules/sys_ioctl (Depends-on): Update.
+       * modules/sys_select (Depends-on): Update.
+       * modules/sys_socket (Depends-on): Update.
+       * modules/sys_stat (Depends-on): Update.
+       * modules/sys_time (Depends-on): Update.
+       * modules/sys_times (Depends-on): Update.
+       * modules/sys_utsname (Depends-on): Update.
+       * modules/sys_wait (Depends-on): Update.
+       * modules/termios (Depends-on): Update.
+       * modules/time (Depends-on): Update.
+       * modules/unistd (Depends-on): Update.
+       * modules/wchar (Depends-on): Update.
+       * modules/wctype-h (Depends-on): Update.
+       * MODULES.html.sh (Support for building libraries and executables):
+       Update.
+
 2011-07-12  Bruno Haible  <bruno@clisp.org>
 
        Rename module 'unused-parameter' to 'snippet/unused-parameter'.
index 575a5a7486bf30ce6c8542a6409bac9f66422dec..6bfaf66b4e5a94ee56903d328ded5753b9fe0bb9 100755 (executable)
@@ -3459,7 +3459,7 @@ func_all_modules ()
   func_module relocatable-prog
   func_module relocatable-prog-wrapper
   func_module relocatable-script
-  func_module warn-on-use
+  func_module snippet/warn-on-use
   func_module warnings
   func_end_table
 
diff --git a/build-aux/snippet/warn-on-use.h b/build-aux/snippet/warn-on-use.h
new file mode 100644 (file)
index 0000000..c14fb27
--- /dev/null
@@ -0,0 +1,109 @@
+/* A C macro for emitting warnings if a function is used.
+   Copyright (C) 2010-2011 Free Software Foundation, Inc.
+
+   This program is free software: you can redistribute it and/or modify it
+   under the terms of the GNU Lesser General Public License as published
+   by the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+
+/* _GL_WARN_ON_USE (function, "literal string") issues a declaration
+   for FUNCTION which will then trigger a compiler warning containing
+   the text of "literal string" anywhere that function is called, if
+   supported by the compiler.  If the compiler does not support this
+   feature, the macro expands to an unused extern declaration.
+
+   This macro is useful for marking a function as a potential
+   portability trap, with the intent that "literal string" include
+   instructions on the replacement function that should be used
+   instead.  However, one of the reasons that a function is a
+   portability trap is if it has the wrong signature.  Declaring
+   FUNCTION with a different signature in C is a compilation error, so
+   this macro must use the same type as any existing declaration so
+   that programs that avoid the problematic FUNCTION do not fail to
+   compile merely because they included a header that poisoned the
+   function.  But this implies that _GL_WARN_ON_USE is only safe to
+   use if FUNCTION is known to already have a declaration.  Use of
+   this macro implies that there must not be any other macro hiding
+   the declaration of FUNCTION; but undefining FUNCTION first is part
+   of the poisoning process anyway (although for symbols that are
+   provided only via a macro, the result is a compilation error rather
+   than a warning containing "literal string").  Also note that in
+   C++, it is only safe to use if FUNCTION has no overloads.
+
+   For an example, it is possible to poison 'getline' by:
+   - adding a call to gl_WARN_ON_USE_PREPARE([[#include <stdio.h>]],
+     [getline]) in configure.ac, which potentially defines
+     HAVE_RAW_DECL_GETLINE
+   - adding this code to a header that wraps the system <stdio.h>:
+     #undef getline
+     #if HAVE_RAW_DECL_GETLINE
+     _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but"
+       "not universally present; use the gnulib module getline");
+     #endif
+
+   It is not possible to directly poison global variables.  But it is
+   possible to write a wrapper accessor function, and poison that
+   (less common usage, like &environ, will cause a compilation error
+   rather than issue the nice warning, but the end result of informing
+   the developer about their portability problem is still achieved):
+   #if HAVE_RAW_DECL_ENVIRON
+   static inline char ***rpl_environ (void) { return &environ; }
+   _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared");
+   # undef environ
+   # define environ (*rpl_environ ())
+   #endif
+   */
+#ifndef _GL_WARN_ON_USE
+
+# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
+/* A compiler attribute is available in gcc versions 4.3.0 and later.  */
+#  define _GL_WARN_ON_USE(function, message) \
+extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
+# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
+/* Verify the existence of the function.  */
+#  define _GL_WARN_ON_USE(function, message) \
+extern __typeof__ (function) function
+# else /* Unsupported.  */
+#  define _GL_WARN_ON_USE(function, message) \
+_GL_WARN_EXTERN_C int _gl_warn_on_use
+# endif
+#endif
+
+/* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string")
+   is like _GL_WARN_ON_USE (function, "string"), except that the function is
+   declared with the given prototype, consisting of return type, parameters,
+   and attributes.
+   This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does
+   not work in this case.  */
+#ifndef _GL_WARN_ON_USE_CXX
+# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
+#  define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
+extern rettype function parameters_and_attributes \
+     __attribute__ ((__warning__ (msg)))
+# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
+/* Verify the existence of the function.  */
+#  define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
+extern rettype function parameters_and_attributes
+# else /* Unsupported.  */
+#  define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
+_GL_WARN_EXTERN_C int _gl_warn_on_use
+# endif
+#endif
+
+/* _GL_WARN_EXTERN_C declaration;
+   performs the declaration with C linkage.  */
+#ifndef _GL_WARN_EXTERN_C
+# if defined __cplusplus
+#  define _GL_WARN_EXTERN_C extern "C"
+# else
+#  define _GL_WARN_EXTERN_C extern
+# endif
+#endif
diff --git a/build-aux/warn-on-use.h b/build-aux/warn-on-use.h
deleted file mode 100644 (file)
index c14fb27..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-/* A C macro for emitting warnings if a function is used.
-   Copyright (C) 2010-2011 Free Software Foundation, Inc.
-
-   This program is free software: you can redistribute it and/or modify it
-   under the terms of the GNU Lesser General Public License as published
-   by the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
-
-/* _GL_WARN_ON_USE (function, "literal string") issues a declaration
-   for FUNCTION which will then trigger a compiler warning containing
-   the text of "literal string" anywhere that function is called, if
-   supported by the compiler.  If the compiler does not support this
-   feature, the macro expands to an unused extern declaration.
-
-   This macro is useful for marking a function as a potential
-   portability trap, with the intent that "literal string" include
-   instructions on the replacement function that should be used
-   instead.  However, one of the reasons that a function is a
-   portability trap is if it has the wrong signature.  Declaring
-   FUNCTION with a different signature in C is a compilation error, so
-   this macro must use the same type as any existing declaration so
-   that programs that avoid the problematic FUNCTION do not fail to
-   compile merely because they included a header that poisoned the
-   function.  But this implies that _GL_WARN_ON_USE is only safe to
-   use if FUNCTION is known to already have a declaration.  Use of
-   this macro implies that there must not be any other macro hiding
-   the declaration of FUNCTION; but undefining FUNCTION first is part
-   of the poisoning process anyway (although for symbols that are
-   provided only via a macro, the result is a compilation error rather
-   than a warning containing "literal string").  Also note that in
-   C++, it is only safe to use if FUNCTION has no overloads.
-
-   For an example, it is possible to poison 'getline' by:
-   - adding a call to gl_WARN_ON_USE_PREPARE([[#include <stdio.h>]],
-     [getline]) in configure.ac, which potentially defines
-     HAVE_RAW_DECL_GETLINE
-   - adding this code to a header that wraps the system <stdio.h>:
-     #undef getline
-     #if HAVE_RAW_DECL_GETLINE
-     _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but"
-       "not universally present; use the gnulib module getline");
-     #endif
-
-   It is not possible to directly poison global variables.  But it is
-   possible to write a wrapper accessor function, and poison that
-   (less common usage, like &environ, will cause a compilation error
-   rather than issue the nice warning, but the end result of informing
-   the developer about their portability problem is still achieved):
-   #if HAVE_RAW_DECL_ENVIRON
-   static inline char ***rpl_environ (void) { return &environ; }
-   _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared");
-   # undef environ
-   # define environ (*rpl_environ ())
-   #endif
-   */
-#ifndef _GL_WARN_ON_USE
-
-# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
-/* A compiler attribute is available in gcc versions 4.3.0 and later.  */
-#  define _GL_WARN_ON_USE(function, message) \
-extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
-# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
-/* Verify the existence of the function.  */
-#  define _GL_WARN_ON_USE(function, message) \
-extern __typeof__ (function) function
-# else /* Unsupported.  */
-#  define _GL_WARN_ON_USE(function, message) \
-_GL_WARN_EXTERN_C int _gl_warn_on_use
-# endif
-#endif
-
-/* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string")
-   is like _GL_WARN_ON_USE (function, "string"), except that the function is
-   declared with the given prototype, consisting of return type, parameters,
-   and attributes.
-   This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does
-   not work in this case.  */
-#ifndef _GL_WARN_ON_USE_CXX
-# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
-#  define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
-extern rettype function parameters_and_attributes \
-     __attribute__ ((__warning__ (msg)))
-# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
-/* Verify the existence of the function.  */
-#  define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
-extern rettype function parameters_and_attributes
-# else /* Unsupported.  */
-#  define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
-_GL_WARN_EXTERN_C int _gl_warn_on_use
-# endif
-#endif
-
-/* _GL_WARN_EXTERN_C declaration;
-   performs the declaration with C linkage.  */
-#ifndef _GL_WARN_EXTERN_C
-# if defined __cplusplus
-#  define _GL_WARN_EXTERN_C extern "C"
-# else
-#  define _GL_WARN_EXTERN_C extern
-# endif
-#endif
index 6fd3bd917c46dc623931471ad3d36cb93e28c3b2..6653ed42049fd84a9abc97d2aafbbf739d4fd78d 100644 (file)
@@ -9,8 +9,8 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
+snippet/warn-on-use
 sys_socket
-warn-on-use
 
 configure.ac:
 gl_HEADER_ARPA_INET
index fbbc541b225307fc3cebbda57598448a4b47bf68..ec000dc80148177f07a85a2e30efe21b0f088ab7 100644 (file)
@@ -8,7 +8,7 @@ m4/ctype.m4
 Depends-on:
 include_next
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_CTYPE_H
index e7e7b9b35310eca301b69916718fa84eb37272b8..2e4fbee17c1bf1857bfc190bf81abc92ab2504f7 100644 (file)
@@ -10,7 +10,7 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_DIRENT_H
index d3531e99b6390212ada102f5c31ff5f515c067df..a687eebee03f0db1b8b529139622d01034b93157 100644 (file)
@@ -11,8 +11,8 @@ extensions
 include_next
 snippet/arg-nonnull
 snippet/c++defs
+snippet/warn-on-use
 unistd
-warn-on-use
 
 configure.ac:
 gl_FCNTL_H
index 2f67794edab4c2f7e3f060ca86acc296bc8c3ceb..5a8b4aefe18c0aeb7f797b681ea5777606d09fa1 100644 (file)
@@ -12,7 +12,7 @@ Depends-on:
 extensions
 snippet/arg-nonnull
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 alloca          [test -n "$GLOB_H"]
 d-type          [test -n "$GLOB_H"]
 dirfd           [test -n "$GLOB_H"]
index 7240784f0bd028dffb6131367c0a0eb1a8716b05..e20b0738722e43ca795d708614ecc8fa44a9c273 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_ICONV_H
index 628a0681645bab4d43b1b01076b9fe972075c954..d9d53ac8740049a3ab227d01b9c4c263694e5a76 100644 (file)
@@ -9,8 +9,8 @@ Depends-on:
 include_next
 multiarch
 snippet/arg-nonnull
+snippet/warn-on-use
 stdint
-warn-on-use
 
 configure.ac:
 gl_INTTYPES_INCOMPLETE
index 6b5a8725ab4785a5c38f627c9420d04a1ed3d397..2519fc5612ef9bca9c04456ff8c1ae6487ae1d76 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 extensions
 include_next
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_LANGINFO_H
index 0aa8925afa13c5ed2b63265b3f28e366984599c1..4c66c84e2481e5529920ebb6711898068f812358 100644 (file)
@@ -10,8 +10,8 @@ extensions
 include_next
 snippet/arg-nonnull
 snippet/c++defs
+snippet/warn-on-use
 stddef
-warn-on-use
 
 configure.ac:
 gl_LOCALE_H
index 4f3f2289cbba5998fc585502947cb6acfa34065b..bc3d34c35569349774bf19edeb86871ee2658697 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_MATH_H
index 75cfd8b6c6ac67812673300cd5c6ca2799054dd1..b324866c1b152262c220173e84ee6e4b911b484d 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 sys_socket
 
 configure.ac:
index ab21341d8e0a7d8eb4a6ef6cc836c062f521dab0..7c03786e0c4b038a57e8a07f8171ed0c7292d601 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 extensions
 include_next
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_POLL_H
index beaa1ccd896728f7dfa66a2de066858fed00634c..d523d142ca1ede60c7d4feb561e6dc2da650df10 100644 (file)
@@ -8,7 +8,7 @@ m4/pty_h.m4
 Depends-on:
 include_next
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_PTY_H
index 66cd19d0e3b73b0fc06c6e8b52cc999f01dadb68..7adddc144d4bd336aba9c397bd373b6b2f6f7573 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_SEARCH_H
index 2e810ae09b7eb8d5316e1e0e85c2f48e3c159f8a..b8d96be1023fb006c95087153d8557afd4a2a764 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 extensions
 
 configure.ac:
diff --git a/modules/snippet/warn-on-use b/modules/snippet/warn-on-use
new file mode 100644 (file)
index 0000000..bd57028
--- /dev/null
@@ -0,0 +1,36 @@
+Description:
+A C macro for emitting a warning if a function is used.
+
+Applicability:
+all
+
+Files:
+build-aux/warn-on-use.h
+m4/warn-on-use.m4
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+BUILT_SOURCES += warn-on-use.h
+# The warn-on-use.h that gets inserted into generated .h files is the same as
+# build-aux/snippet/warn-on-use.h, except that it has the copyright header cut
+# off.
+warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h
+       $(AM_V_GEN)rm -f $@-t $@ && \
+       sed -n -e '/^.ifndef/,$$p' \
+         < $(top_srcdir)/build-aux/snippet/warn-on-use.h \
+         > $@-t && \
+       mv $@-t $@
+MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
+
+WARN_ON_USE_H=warn-on-use.h
+
+Include:
+
+License:
+LGPLv2+
+
+Maintainer:
+Eric Blake
index 12c28abacb744869c69d1fa61e3a7e0ec248e486..436a7fe8fa825e4af788081a0dd4b5804f9aa552 100644 (file)
@@ -10,7 +10,7 @@ include_next
 sched
 snippet/arg-nonnull
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_SPAWN_H
index 75a3c989ace322bd940c37d96651f68b733a5152..f8880df3f7c28ffcdce4bdbedfe17892be950a16 100644 (file)
@@ -9,8 +9,8 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
+snippet/warn-on-use
 stddef
-warn-on-use
 
 configure.ac:
 gl_STDIO_H
index ae51e9fd474e4b16ce3efd055bebb34524462515..380f13b6dbac0854385518858f668f9609401a6e 100644 (file)
@@ -10,9 +10,9 @@ _Noreturn
 include_next
 snippet/arg-nonnull
 snippet/c++defs
+snippet/warn-on-use
 stddef
 unistd
-warn-on-use
 
 configure.ac:
 gl_STDLIB_H
index afa4f3ca29c9a7dcc0ce4a7a10727f30820749a3..a78508cdebc100f6f163870fc70b5a25d4b994e9 100644 (file)
@@ -10,8 +10,8 @@ extensions
 include_next
 snippet/arg-nonnull
 snippet/c++defs
+snippet/warn-on-use
 stddef
-warn-on-use
 
 configure.ac:
 gl_HEADER_STRING_H
index ef1e13cb607233c66bda4b9f60772047bb60e7b3..631cabbae93840680c04a0008dfdbfc22981a857 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_HEADER_STRINGS_H
index 71df037547af6603b0bf806f839b03cfca9f2210..509c1da09974f496b21016aca0a948ad537d82a4 100644 (file)
@@ -7,7 +7,7 @@ m4/sys_file_h.m4
 
 Depends-on:
 include_next
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_HEADER_SYS_FILE_H
index 4fa807ff5b9dd6fe07c558a5b5f8c00d9b9fb83b..a008f212acaa92fe64b326aa81090610f1d5875d 100644 (file)
@@ -8,8 +8,8 @@ m4/sys_ioctl_h.m4
 Depends-on:
 include_next
 snippet/c++defs
+snippet/warn-on-use
 unistd
-warn-on-use
 
 configure.ac:
 gl_SYS_IOCTL_H
index 3d579f9ef83db8ee470c11cf234a64011d57f3ce..49a03606ad85256949bc7c9fc0f8492a483349d0 100644 (file)
@@ -10,8 +10,8 @@ Depends-on:
 include_next
 signal
 snippet/c++defs
+snippet/warn-on-use
 sys_time
-warn-on-use
 
 configure.ac:
 gl_HEADER_SYS_SELECT
index 5bcde537388aacc5683344a4fe2468d18d691595..df0844bf99d940d6b6689a113fa6141c769ee79f 100644 (file)
@@ -12,9 +12,9 @@ errno
 include_next
 snippet/arg-nonnull
 snippet/c++defs
+snippet/warn-on-use
 socklen
 sys_uio
-warn-on-use
 
 configure.ac:
 gl_HEADER_SYS_SOCKET
index 3bb367bf38bcc2af3c4f791f90bf739fb599313e..531562c98d47196df4dc6752ffbf173eb41dc103 100644 (file)
@@ -10,8 +10,8 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
+snippet/warn-on-use
 time
-warn-on-use
 
 configure.ac:
 gl_HEADER_SYS_STAT_H
index 1d271bc569142d2823eef5a6f0a812685b94e163..18700e83008b1cb748d63111654f5e87bf2ba6d3 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_HEADER_SYS_TIME_H
index 5d289d1349da13080257e327c6ddb85ca59ac2bc..66a36f135d4fb797756a7108f9e61c47fd2805e1 100644 (file)
@@ -8,7 +8,7 @@ m4/sys_times_h.m4
 Depends-on:
 include_next
 snippet/arg-nonnull
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_SYS_TIMES_H
index 8e6ed6aaf43d82bfb3a3b3902f79312624b71c19..82aa31bdf47861806c00fc8a69df5754d3a31285 100644 (file)
@@ -8,7 +8,7 @@ m4/sys_utsname_h.m4
 Depends-on:
 include_next
 snippet/arg-nonnull
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_SYS_UTSNAME_H
index 2159e55beeaf0aaba352e8354f6e744b1436a29b..a270d914cf5c6b9d9e3f4ced45ed993d2d0ae42c 100644 (file)
@@ -8,7 +8,7 @@ m4/sys_wait_h.m4
 Depends-on:
 include_next
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_SYS_WAIT_H
index 60e9b443361cae8e204f966acea30b2754eeae73..facebebde972b56e5b51cca23a81efe4004e2913 100644 (file)
@@ -8,7 +8,7 @@ m4/termios_h.m4
 Depends-on:
 include_next
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_TERMIOS_H
index 34d749a7c0782016af90209304748f69d60345be..8e946fcffc4c6d52edb800bba1cc54e7dff1486a 100644 (file)
@@ -10,7 +10,7 @@ extensions
 include_next
 snippet/arg-nonnull
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 stddef
 
 configure.ac:
index fa69a8b7b2f4b40d846d21cd9e98d16d8bf59a1c..6c8ea1e4066b07501590f477bb63625754640492 100644 (file)
@@ -9,8 +9,8 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
+snippet/warn-on-use
 stddef
-warn-on-use
 
 configure.ac:
 gl_UNISTD_H
diff --git a/modules/warn-on-use b/modules/warn-on-use
deleted file mode 100644 (file)
index f0ee83b..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-Description:
-A C macro for emitting a warning if a function is used.
-
-Applicability:
-all
-
-Files:
-build-aux/warn-on-use.h
-m4/warn-on-use.m4
-
-Depends-on:
-
-configure.ac:
-
-Makefile.am:
-BUILT_SOURCES += warn-on-use.h
-# The warn-on-use.h that gets inserted into generated .h files is the same as
-# build-aux/warn-on-use.h, except that it has the copyright header cut off.
-warn-on-use.h: $(top_srcdir)/build-aux/warn-on-use.h
-       $(AM_V_GEN)rm -f $@-t $@ && \
-       sed -n -e '/^.ifndef/,$$p' \
-         < $(top_srcdir)/build-aux/warn-on-use.h \
-         > $@-t && \
-       mv $@-t $@
-MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
-
-WARN_ON_USE_H=warn-on-use.h
-
-Include:
-
-License:
-LGPLv2+
-
-Maintainer:
-Eric Blake
index 04ff3459dc2ff5ed7a429a484c6673999a6e38a7..abaf6b7be651d000a54de8de3e903219b2cad915 100644 (file)
@@ -10,8 +10,8 @@ Depends-on:
 include_next
 snippet/arg-nonnull
 snippet/c++defs
+snippet/warn-on-use
 stddef
-warn-on-use
 
 configure.ac:
 gl_WCHAR_H
index 08c66c6c6fdaaa0b624045b4aaba0446015ce195..58491192c0ea74c925fef6a9caab08b34225e687 100644 (file)
@@ -9,7 +9,7 @@ m4/wint_t.m4
 Depends-on:
 include_next
 snippet/c++defs
-warn-on-use
+snippet/warn-on-use
 
 configure.ac:
 gl_WCTYPE_H