changeset 15415:768296dab89a

Rename module 'arg-nonnull' to 'snippet/arg-nonnull'. * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull. (Files, Makefile.am): Update. * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h. * modules/argv-iter (Depends-on): Update. * modules/arpa_inet (Depends-on): Update. * modules/dirent (Depends-on): Update. * modules/fcntl-h (Depends-on): Update. * modules/fnmatch (Depends-on): Update. * modules/getopt-posix (Depends-on): Update. * modules/glob (Depends-on): Update. * modules/iconv-h (Depends-on): Update. * modules/inttypes-incomplete (Depends-on): Update. * modules/locale (Depends-on): Update. * modules/math (Depends-on): Update. * modules/netdb (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_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/time (Depends-on): Update. * modules/unistd (Depends-on): Update. * modules/wchar (Depends-on): Update. * MODULES.html.sh (Support for building libraries and executables): Update.
author Bruno Haible <bruno@clisp.org>
date Tue, 12 Jul 2011 11:34:36 +0200
parents 8b9638e15677
children 10b35faca629
files ChangeLog MODULES.html.sh build-aux/arg-nonnull.h build-aux/snippet/arg-nonnull.h modules/arg-nonnull modules/argv-iter modules/arpa_inet modules/dirent modules/fcntl-h modules/fnmatch modules/getopt-posix modules/glob modules/iconv-h modules/inttypes-incomplete modules/locale modules/math modules/netdb modules/pselect modules/pselect-tests modules/search modules/signal modules/snippet/arg-nonnull modules/spawn modules/stdio modules/stdlib modules/string modules/strings modules/sys_socket modules/sys_stat modules/sys_time modules/sys_times modules/sys_utsname modules/time modules/unistd modules/wchar
diffstat 35 files changed, 132 insertions(+), 95 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,39 @@
+2011-07-12  Bruno Haible  <bruno@clisp.org>
+
+	Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
+	* modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
+	(Files, Makefile.am): Update.
+	* build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
+	* modules/argv-iter (Depends-on): Update.
+	* modules/arpa_inet (Depends-on): Update.
+	* modules/dirent (Depends-on): Update.
+	* modules/fcntl-h (Depends-on): Update.
+	* modules/fnmatch (Depends-on): Update.
+	* modules/getopt-posix (Depends-on): Update.
+	* modules/glob (Depends-on): Update.
+	* modules/iconv-h (Depends-on): Update.
+	* modules/inttypes-incomplete (Depends-on): Update.
+	* modules/locale (Depends-on): Update.
+	* modules/math (Depends-on): Update.
+	* modules/netdb (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_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/time (Depends-on): Update.
+	* modules/unistd (Depends-on): Update.
+	* modules/wchar (Depends-on): Update.
+	* MODULES.html.sh (Support for building libraries and executables):
+	Update.
+
 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
 
 	Improvements on _Noreturn and related modules.
--- a/MODULES.html.sh
+++ b/MODULES.html.sh
@@ -3439,7 +3439,7 @@
 
   func_begin_table
   func_module absolute-header
-  func_module arg-nonnull
+  func_module snippet/arg-nonnull
   func_module config-h
   func_module configmake
   func_module dummy
deleted file mode 100644
--- a/build-aux/arg-nonnull.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/* A C macro for declaring that specific arguments must not be NULL.
-   Copyright (C) 2009-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_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
-   that the values passed as arguments n, ..., m must be non-NULL pointers.
-   n = 1 stands for the first argument, n = 2 for the second argument etc.  */
-#ifndef _GL_ARG_NONNULL
-# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
-#  define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
-# else
-#  define _GL_ARG_NONNULL(params)
-# endif
-#endif
new file mode 100644
--- /dev/null
+++ b/build-aux/snippet/arg-nonnull.h
@@ -0,0 +1,26 @@
+/* A C macro for declaring that specific arguments must not be NULL.
+   Copyright (C) 2009-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_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
+   that the values passed as arguments n, ..., m must be non-NULL pointers.
+   n = 1 stands for the first argument, n = 2 for the second argument etc.  */
+#ifndef _GL_ARG_NONNULL
+# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
+#  define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
+# else
+#  define _GL_ARG_NONNULL(params)
+# endif
+#endif
deleted file mode 100644
--- a/modules/arg-nonnull
+++ /dev/null
@@ -1,39 +0,0 @@
-Description:
-A C macro for declaring that specific arguments must not be NULL.
-
-Applicability:
-all
-
-Files:
-build-aux/arg-nonnull.h
-
-Depends-on:
-
-configure.ac:
-
-Makefile.am:
-# The BUILT_SOURCES created by this Makefile snippet are not used via #include
-# statements but through direct file reference. Therefore this snippet must be
-# present in all Makefile.am that need it. This is ensured by the applicability
-# 'all' defined above.
-
-BUILT_SOURCES += arg-nonnull.h
-# The arg-nonnull.h that gets inserted into generated .h files is the same as
-# build-aux/arg-nonnull.h, except that it has the copyright header cut off.
-arg-nonnull.h: $(top_srcdir)/build-aux/arg-nonnull.h
-	$(AM_V_GEN)rm -f $@-t $@ && \
-	sed -n -e '/GL_ARG_NONNULL/,$$p' \
-	  < $(top_srcdir)/build-aux/arg-nonnull.h \
-	  > $@-t && \
-	mv $@-t $@
-MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
-
-ARG_NONNULL_H=arg-nonnull.h
-
-Include:
-
-License:
-LGPLv2+
-
-Maintainer:
-Bruno Haible
--- a/modules/argv-iter
+++ b/modules/argv-iter
@@ -6,8 +6,8 @@
 lib/argv-iter.h
 
 Depends-on:
-arg-nonnull
 getdelim
+snippet/arg-nonnull
 stdbool
 
 configure.ac:
--- a/modules/arpa_inet
+++ b/modules/arpa_inet
@@ -6,9 +6,9 @@
 m4/arpa_inet_h.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 include_next
+snippet/arg-nonnull
 sys_socket
 warn-on-use
 
--- a/modules/dirent
+++ b/modules/dirent
@@ -7,9 +7,9 @@
 m4/unistd_h.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 include_next
+snippet/arg-nonnull
 warn-on-use
 
 configure.ac:
--- a/modules/fcntl-h
+++ b/modules/fcntl-h
@@ -7,10 +7,10 @@
 m4/fcntl-o.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 extensions
 include_next
+snippet/arg-nonnull
 unistd
 warn-on-use
 
--- a/modules/fnmatch
+++ b/modules/fnmatch
@@ -9,8 +9,8 @@
 m4/fnmatch.m4
 
 Depends-on:
-arg-nonnull
 extensions
+snippet/arg-nonnull
 alloca          [test -n "$FNMATCH_H"]
 stdbool         [test -n "$FNMATCH_H"]
 wchar           [test -n "$FNMATCH_H"]
--- a/modules/getopt-posix
+++ b/modules/getopt-posix
@@ -12,7 +12,7 @@
 unistd
 extensions
 include_next
-arg-nonnull
+snippet/arg-nonnull
 gettext-h       [test $REPLACE_GETOPT = 1]
 
 configure.ac:
--- a/modules/glob
+++ b/modules/glob
@@ -9,9 +9,9 @@
 m4/glob.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 extensions
+snippet/arg-nonnull
 warn-on-use
 alloca          [test -n "$GLOB_H"]
 d-type          [test -n "$GLOB_H"]
--- a/modules/iconv-h
+++ b/modules/iconv-h
@@ -8,7 +8,7 @@
 Depends-on:
 include_next
 c++defs
-arg-nonnull
+snippet/arg-nonnull
 warn-on-use
 
 configure.ac:
--- a/modules/inttypes-incomplete
+++ b/modules/inttypes-incomplete
@@ -6,9 +6,9 @@
 m4/inttypes.m4
 
 Depends-on:
-arg-nonnull
 include_next
 multiarch
+snippet/arg-nonnull
 stdint
 warn-on-use
 
--- a/modules/locale
+++ b/modules/locale
@@ -6,10 +6,10 @@
 m4/locale_h.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 extensions
 include_next
+snippet/arg-nonnull
 stddef
 warn-on-use
 
--- a/modules/math
+++ b/modules/math
@@ -6,9 +6,9 @@
 m4/math_h.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 include_next
+snippet/arg-nonnull
 warn-on-use
 
 configure.ac:
--- a/modules/netdb
+++ b/modules/netdb
@@ -8,7 +8,7 @@
 Depends-on:
 c++defs
 include_next
-arg-nonnull
+snippet/arg-nonnull
 warn-on-use
 sys_socket
 
--- a/modules/pselect
+++ b/modules/pselect
@@ -23,7 +23,7 @@
 <sys/select.h>
 
 Link:
-$(LIBSOCKET)
+$(LIBSOCKET) $(LIB_PTHREAD_SIGMASK)
 
 License:
 LGPLv2+
--- a/modules/pselect-tests
+++ b/modules/pselect-tests
@@ -9,4 +9,4 @@
 Makefile.am:
 TESTS += test-pselect
 check_PROGRAMS += test-pselect
-test_pselect_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)
+test_pselect_LDADD = $(LDADD) @LIBSOCKET@ @LIB_PTHREAD_SIGMASK@ $(INET_PTON_LIB)
--- a/modules/search
+++ b/modules/search
@@ -6,9 +6,9 @@
 m4/search_h.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 include_next
+snippet/arg-nonnull
 warn-on-use
 
 configure.ac:
--- a/modules/signal
+++ b/modules/signal
@@ -6,9 +6,9 @@
 m4/signal_h.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 include_next
+snippet/arg-nonnull
 warn-on-use
 extensions
 
new file mode 100644
--- /dev/null
+++ b/modules/snippet/arg-nonnull
@@ -0,0 +1,40 @@
+Description:
+A C macro for declaring that specific arguments must not be NULL.
+
+Applicability:
+all
+
+Files:
+build-aux/snippet/arg-nonnull.h
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+# The BUILT_SOURCES created by this Makefile snippet are not used via #include
+# statements but through direct file reference. Therefore this snippet must be
+# present in all Makefile.am that need it. This is ensured by the applicability
+# 'all' defined above.
+
+BUILT_SOURCES += arg-nonnull.h
+# The arg-nonnull.h that gets inserted into generated .h files is the same as
+# build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut
+# off.
+arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h
+	$(AM_V_GEN)rm -f $@-t $@ && \
+	sed -n -e '/GL_ARG_NONNULL/,$$p' \
+	  < $(top_srcdir)/build-aux/snippet/arg-nonnull.h \
+	  > $@-t && \
+	mv $@-t $@
+MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
+
+ARG_NONNULL_H=arg-nonnull.h
+
+Include:
+
+License:
+LGPLv2+
+
+Maintainer:
+Bruno Haible
--- a/modules/spawn
+++ b/modules/spawn
@@ -6,10 +6,10 @@
 m4/spawn_h.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 include_next
 sched
+snippet/arg-nonnull
 warn-on-use
 
 configure.ac:
--- a/modules/stdio
+++ b/modules/stdio
@@ -7,8 +7,8 @@
 
 Depends-on:
 include_next
-arg-nonnull
 c++defs
+snippet/arg-nonnull
 stddef
 warn-on-use
 
--- a/modules/stdlib
+++ b/modules/stdlib
@@ -7,9 +7,9 @@
 
 Depends-on:
 _Noreturn
-arg-nonnull
 c++defs
 include_next
+snippet/arg-nonnull
 stddef
 unistd
 warn-on-use
--- a/modules/string
+++ b/modules/string
@@ -6,10 +6,10 @@
 m4/string_h.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 extensions
 include_next
+snippet/arg-nonnull
 stddef
 warn-on-use
 
--- a/modules/strings
+++ b/modules/strings
@@ -6,9 +6,9 @@
 m4/strings_h.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 include_next
+snippet/arg-nonnull
 warn-on-use
 
 configure.ac:
--- a/modules/sys_socket
+++ b/modules/sys_socket
@@ -8,10 +8,10 @@
 
 Depends-on:
 alignof
-arg-nonnull
 c++defs
 errno
 include_next
+snippet/arg-nonnull
 socklen
 sys_uio
 warn-on-use
--- a/modules/sys_stat
+++ b/modules/sys_stat
@@ -7,9 +7,9 @@
 m4/unistd_h.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 include_next
+snippet/arg-nonnull
 time
 warn-on-use
 
--- a/modules/sys_time
+++ b/modules/sys_time
@@ -7,8 +7,8 @@
 
 Depends-on:
 include_next
-arg-nonnull
 c++defs
+snippet/arg-nonnull
 warn-on-use
 
 configure.ac:
--- a/modules/sys_times
+++ b/modules/sys_times
@@ -6,8 +6,8 @@
 m4/sys_times_h.m4
 
 Depends-on:
-arg-nonnull
 include_next
+snippet/arg-nonnull
 warn-on-use
 
 configure.ac:
--- a/modules/sys_utsname
+++ b/modules/sys_utsname
@@ -6,8 +6,8 @@
 m4/sys_utsname_h.m4
 
 Depends-on:
-arg-nonnull
 include_next
+snippet/arg-nonnull
 warn-on-use
 
 configure.ac:
--- a/modules/time
+++ b/modules/time
@@ -8,8 +8,8 @@
 Depends-on:
 extensions
 include_next
-arg-nonnull
 c++defs
+snippet/arg-nonnull
 warn-on-use
 stddef
 
--- a/modules/unistd
+++ b/modules/unistd
@@ -6,9 +6,9 @@
 lib/unistd.in.h
 
 Depends-on:
-arg-nonnull
 c++defs
 include_next
+snippet/arg-nonnull
 stddef
 warn-on-use
 
--- a/modules/wchar
+++ b/modules/wchar
@@ -7,9 +7,9 @@
 m4/wint_t.m4
 
 Depends-on:
-arg-nonnull
 c++defs
 include_next
+snippet/arg-nonnull
 stddef
 warn-on-use