summaryrefslogtreecommitdiffstats
path: root/gl/xalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/xalloc.h')
-rw-r--r--gl/xalloc.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/gl/xalloc.h b/gl/xalloc.h
index f373c2f..75a5db3 100644
--- a/gl/xalloc.h
+++ b/gl/xalloc.h
@@ -1,6 +1,6 @@
1/* xalloc.h -- malloc with out-of-memory checking 1/* xalloc.h -- malloc with out-of-memory checking
2 2
3 Copyright (C) 1990-2000, 2003-2004, 2006-2023 Free Software Foundation, Inc. 3 Copyright (C) 1990-2000, 2003-2004, 2006-2024 Free Software Foundation, Inc.
4 4
5 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
@@ -18,6 +18,13 @@
18#ifndef XALLOC_H_ 18#ifndef XALLOC_H_
19#define XALLOC_H_ 19#define XALLOC_H_
20 20
21/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _Noreturn,
22 _GL_ATTRIBUTE_ALLOC_SIZE, _GL_ATTRIBUTE_MALLOC,
23 _GL_ATTRIBUTE_RETURNS_NONNULL. */
24#if !_GL_CONFIG_H_INCLUDED
25 #error "Please include config.h first."
26#endif
27
21#include <stddef.h> 28#include <stddef.h>
22#include <stdlib.h> 29#include <stdlib.h>
23 30
@@ -25,9 +32,6 @@
25# include "idx.h" 32# include "idx.h"
26#endif 33#endif
27 34
28#ifndef _GL_INLINE_HEADER_BEGIN
29 #error "Please include config.h first."
30#endif
31_GL_INLINE_HEADER_BEGIN 35_GL_INLINE_HEADER_BEGIN
32#ifndef XALLOC_INLINE 36#ifndef XALLOC_INLINE
33# define XALLOC_INLINE _GL_INLINE 37# define XALLOC_INLINE _GL_INLINE
@@ -46,7 +50,7 @@ extern "C" {
46 or by using gnulib's xalloc-die module. This is the 50 or by using gnulib's xalloc-die module. This is the
47 function to call when one wants the program to die because of a 51 function to call when one wants the program to die because of a
48 memory allocation failure. */ 52 memory allocation failure. */
49/*extern*/ _Noreturn void xalloc_die (void); 53_Noreturn void xalloc_die (void);
50 54
51#endif /* GNULIB_XALLOC_DIE */ 55#endif /* GNULIB_XALLOC_DIE */
52 56