[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/19] _Noreturn: new module
From: |
Paul Eggert |
Subject: |
[PATCH 02/19] _Noreturn: new module |
Date: |
Sun, 10 Jul 2011 22:19:50 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 |
* 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 | 20 ++++++++++++++++++++
build-aux/_Noreturn.h | 8 ++++++++
modules/_Noreturn | 27 +++++++++++++++++++++++++++
4 files changed, 60 insertions(+), 0 deletions(-)
create mode 100644 build-aux/_Noreturn.h
create mode 100644 modules/_Noreturn
diff --git a/ChangeLog b/ChangeLog
index 000365f..6d6ef9d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2011-07-10 Paul Eggert <address@hidden>
+ _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-09 Paul Eggert <address@hidden>
diff --git a/MODULES.html.sh b/MODULES.html.sh
index f46cc56..81df44b 100755
--- a/MODULES.html.sh
+++ b/MODULES.html.sh
@@ -2310,6 +2310,26 @@ func_all_modules ()
func_wrap H2
func_echo "$element"
+ 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
+ func_echo "$element"
+
func_begin_table
func_module strdup
func_end_table
diff --git a/build-aux/_Noreturn.h b/build-aux/_Noreturn.h
new file mode 100644
index 0000000..e309292
--- /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 0000000..68ba4f7
--- /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
--
1.7.4.4
- [PATCH 02/19] _Noreturn: new module,
Paul Eggert <=
- Re: [PATCH 02/19] _Noreturn: new module, Bruno Haible, 2011/07/11
- Re: [PATCH 02/19] _Noreturn: new module, Paul Eggert, 2011/07/11
- Re: code snippet modules, Bruno Haible, 2011/07/11
- Re: code snippet modules, Paul Eggert, 2011/07/11
- Re: code snippet modules, Bruno Haible, 2011/07/11
- Re: code snippet modules, Paul Eggert, 2011/07/12
- Re: code snippet modules, Bruno Haible, 2011/07/12
Re: [PATCH 02/19] _Noreturn: new module, Paul Eggert, 2011/07/11