From: Paul Eggert <eggert@cs.ucla.edu>
Date: Tue, 28 Jul 2020 00:21:51 +0000 (-0700)
Subject: xalloc-die: don’t depend on xalloc
X-Git-Tag: v1.0~3847
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=41db73df3f47be5cbeed4c86c95ce4fb147ee363;p=gnulib.git

xalloc-die: don’t depend on xalloc

This removes a circular dependency, as xalloc depends on xalloc-die.
* modules/xalloc-die (Files): Add lib/xalloc.h.
(Depends-on): Remove xalloc.
Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
---

diff --git a/ChangeLog b/ChangeLog
index d3297232fd..1b3f49aa25 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
 
+	xalloc-die: don’t depend on xalloc
+	This removes a circular dependency, as xalloc depends on xalloc-die.
+	* modules/xalloc-die (Files): Add lib/xalloc.h.
+	(Depends-on): Remove xalloc.
+	Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
+
 	dfa-tests: port to MSVC
 	Problem reported by Gisle Vanem in:
 	https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
diff --git a/modules/xalloc-die b/modules/xalloc-die
index b9f875c486..23ade89e70 100644
--- a/modules/xalloc-die
+++ b/modules/xalloc-die
@@ -2,13 +2,16 @@ Description:
 Report a memory allocation failure and exit.
 
 Files:
+lib/xalloc.h
 lib/xalloc-die.c
 
 Depends-on:
-xalloc
 error
+extern-inline
 gettext-h
 exitfail
+stdint
+xalloc-oversized
 
 configure.ac: