[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xmemdup0: remove redundant code
From: |
Bruno Haible |
Subject: |
xmemdup0: remove redundant code |
Date: |
Fri, 04 Jan 2019 12:36:30 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) |
xalloc_die() is declared in xalloc.h. No need to declare it also in xmemdup0.h.
2019-01-04 Bruno Haible <address@hidden>
xmemdup0: Remove redundant code.
* lib/xmemdup0.h (xalloc_die): Remove declaration.
diff --git a/lib/xmemdup0.h b/lib/xmemdup0.h
index 5ef4995..768f0b2 100644
--- a/lib/xmemdup0.h
+++ b/lib/xmemdup0.h
@@ -25,13 +25,6 @@
extern "C" {
# endif
-/* This function is always triggered when memory is exhausted.
- It must be defined by the application, either explicitly
- 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);
-
char *xmemdup0 (void const *p, size_t s);
# ifdef __cplusplus
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- xmemdup0: remove redundant code,
Bruno Haible <=