diff options
Diffstat (limited to 'gnulib/modules/snippet')
m--------- | gnulib | 0 | ||||
-rw-r--r-- | gnulib/modules/snippet/_Noreturn | 27 | ||||
-rw-r--r-- | gnulib/modules/snippet/arg-nonnull | 40 | ||||
-rw-r--r-- | gnulib/modules/snippet/c++defs | 39 | ||||
-rw-r--r-- | gnulib/modules/snippet/link-warning | 42 | ||||
-rw-r--r-- | gnulib/modules/snippet/unused-parameter | 40 | ||||
-rw-r--r-- | gnulib/modules/snippet/warn-on-use | 36 |
7 files changed, 224 insertions, 0 deletions
diff --git a/gnulib b/gnulib deleted file mode 160000 -Subproject 443bc5ffcf7429e557f4a371b0661abe98ddbc1 diff --git a/gnulib/modules/snippet/_Noreturn b/gnulib/modules/snippet/_Noreturn new file mode 100644 index 0000000..2b93a70 --- /dev/null +++ b/gnulib/modules/snippet/_Noreturn @@ -0,0 +1,27 @@ +Description: +The _Noreturn keyword of C1X. + +Applicability: +all + +Files: +build-aux/snippet/_Noreturn.h + +Depends-on: + +configure.ac: + +Makefile.am: +# Because this Makefile snippet defines a variable used by other +# gnulib Makefile snippets, it must be present in all Makefile.am that +# need it. This is ensured by the applicability 'all' defined above. + +_NORETURN_H=$(top_srcdir)/build-aux/snippet/_Noreturn.h + +Include: + +License: +LGPLv2+ + +Maintainer: +all diff --git a/gnulib/modules/snippet/arg-nonnull b/gnulib/modules/snippet/arg-nonnull new file mode 100644 index 0000000..a85a5e2 --- /dev/null +++ b/gnulib/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 diff --git a/gnulib/modules/snippet/c++defs b/gnulib/modules/snippet/c++defs new file mode 100644 index 0000000..e624bed --- /dev/null +++ b/gnulib/modules/snippet/c++defs @@ -0,0 +1,39 @@ +Description: +Function declaration macros with C++ support. + +Applicability: +all + +Files: +build-aux/snippet/c++defs.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 += c++defs.h +# The c++defs.h that gets inserted into generated .h files is the same as +# build-aux/snippet/c++defs.h, except that it has the copyright header cut off. +c++defs.h: $(top_srcdir)/build-aux/snippet/c++defs.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/_GL_CXXDEFS/,$$p' \ + < $(top_srcdir)/build-aux/snippet/c++defs.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += c++defs.h c++defs.h-t + +CXXDEFS_H=c++defs.h + +Include: + +License: +LGPLv2+ + +Maintainer: +Bruno Haible diff --git a/gnulib/modules/snippet/link-warning b/gnulib/modules/snippet/link-warning new file mode 100644 index 0000000..77945c1 --- /dev/null +++ b/gnulib/modules/snippet/link-warning @@ -0,0 +1,42 @@ +Description: +A C macro for emitting link time warnings. + +Applicability: +all + +Files: +build-aux/snippet/link-warning.h + +Depends-on: + +configure.ac: +AC_REQUIRE([gl_FEATURES_H]) + +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 += link-warning.h +# The link-warning.h that gets inserted into generated .h files is the same as +# build-aux/snippet/link-warning.h, except that it has the copyright header cut +# off. +link-warning.h: $(top_srcdir)/build-aux/snippet/link-warning.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/HAVE_FEATURES_H/,$$p' \ + < $(top_srcdir)/build-aux/snippet/link-warning.h \ + | sed -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += link-warning.h link-warning.h-t + +LINK_WARNING_H=link-warning.h + +Include: + +License: +LGPLv2+ + +Maintainer: +Bruno Haible diff --git a/gnulib/modules/snippet/unused-parameter b/gnulib/modules/snippet/unused-parameter new file mode 100644 index 0000000..1738eb8 --- /dev/null +++ b/gnulib/modules/snippet/unused-parameter @@ -0,0 +1,40 @@ +Description: +A C macro for declaring that specific function parameters are not used. + +Applicability: +all + +Files: +build-aux/snippet/unused-parameter.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 += unused-parameter.h +# The unused-parameter.h that gets inserted into generated .h files is the same +# as build-aux/snippet/unused-parameter.h, except that it has the copyright +# header cut off. +unused-parameter.h: $(top_srcdir)/build-aux/snippet/unused-parameter.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \ + < $(top_srcdir)/build-aux/snippet/unused-parameter.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += unused-parameter.h unused-parameter.h-t + +UNUSED_PARAMETER_H=unused-parameter.h + +Include: + +License: +LGPLv2+ + +Maintainer: +Bruno Haible diff --git a/gnulib/modules/snippet/warn-on-use b/gnulib/modules/snippet/warn-on-use new file mode 100644 index 0000000..77f0f77 --- /dev/null +++ b/gnulib/modules/snippet/warn-on-use @@ -0,0 +1,36 @@ +Description: +A C macro for emitting a warning if a function is used. + +Applicability: +all + +Files: +build-aux/snippet/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 |