From ca825ce3c2bcb246be95e42464ebc236e4ed67cb Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 12 Jul 2011 00:57:02 -0700 Subject: [PATCH] _Noreturn: new module * MODULES.html.sh (Support for systems lacking draft ISO C 1X): New section, mentioning it. * build-aux/_Noreturn.h, modules/_Noreturn: New files. --- ChangeLog | 5 +++++ MODULES.html.sh | 15 +++++++++++++++ build-aux/_Noreturn.h | 8 ++++++++ modules/_Noreturn | 27 +++++++++++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 build-aux/_Noreturn.h create mode 100644 modules/_Noreturn diff --git a/ChangeLog b/ChangeLog index d9254b133..ff32cd219 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-07-12 Paul Eggert + _Noreturn: new module + * MODULES.html.sh (Support for systems lacking draft ISO C 1X): + New section, mentioning it. + * build-aux/_Noreturn.h, modules/_Noreturn: New files. + * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn. 2011-07-11 Eric Blake diff --git a/MODULES.html.sh b/MODULES.html.sh index 923fba52f..464f1d892 100755 --- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -2306,6 +2306,21 @@ func_all_modules () func_module mbfile func_end_table + element="Support for systems lacking draft ISO C 1X" + func_section_wrap c1x_sup + func_wrap H2 + func_echo "$element" + + element="Core language properties" + element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"` + func_section_wrap c1x_core_properties + func_wrap H3 + func_echo "$element" + + func_begin_table + func_module _Noreturn + func_end_table + element="Support for obsolete systems lacking POSIX:2008" func_section_wrap posix_sup_obsolete func_wrap H2 diff --git a/build-aux/_Noreturn.h b/build-aux/_Noreturn.h new file mode 100644 index 000000000..e30929218 --- /dev/null +++ b/build-aux/_Noreturn.h @@ -0,0 +1,8 @@ +#if ! defined _Noreturn && __STDC_VERSION__ < 201000 +# if (3 <= __GNUC__ || __GNUC__ == 2 && 8 <= __GNUC_MINOR__ \ + || 0x5110 <= __SUNPRO_C) +# define _Noreturn __attribute__ ((__noreturn__)) +# else +# define _Noreturn +# endif +#endif diff --git a/modules/_Noreturn b/modules/_Noreturn new file mode 100644 index 000000000..68ba4f71b --- /dev/null +++ b/modules/_Noreturn @@ -0,0 +1,27 @@ +Description: +The _Noreturn keyword of C1X. + +Applicability: +all + +Files: +build-aux/_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/_Noreturn.h + +Include: + +License: +LGPLv2+ + +Maintainer: +all -- 2.11.0