summaryrefslogtreecommitdiff
path: root/lib/xalloc.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-07-12 01:16:08 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-07-12 01:16:08 -0700
commit4b69a607a11db64d663d264aa53292b2314f7152 (patch)
treec88893493b2b26dc5810369d3a45ad57244c148a /lib/xalloc.h
parent29b9f9415f47e9bd19fc9a0ce923f013e5a41f68 (diff)
downloadgnulib-4b69a607a11db64d663d264aa53292b2314f7152.tar.gz
stdnoreturn, stdnoreturn-tests: remove modules
They're not needed here and a bit premature for use elsewhere. See <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>. * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests: * tests/test-stdnoreturn.c: Remove files. * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section. * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h: * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h> and using noreturn. * modules/openat, modules/sigpipe-die, modules/xalloc: * modules/xmemdup0, modules/xstrtol: Remove dependency on stdnoreturn.
Diffstat (limited to 'lib/xalloc.h')
-rw-r--r--lib/xalloc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/xalloc.h b/lib/xalloc.h
index 7dbcc79bb3..b792aeffdd 100644
--- a/lib/xalloc.h
+++ b/lib/xalloc.h
@@ -19,7 +19,6 @@
# define XALLOC_H_
# include <stddef.h>
-# include <stdnoreturn.h>
# include "xalloc-oversized.h"
@@ -45,7 +44,7 @@ extern "C" {
or by using gnulib's xalloc-die module. This is the
function to call when one wants the program to die because of a
memory allocation failure. */
-extern noreturn void xalloc_die (void);
+extern _Noreturn void xalloc_die (void);
void *xmalloc (size_t s)
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_ALLOC_SIZE ((1));