On 2024-11-04 22:29, Paul Eggert wrote:
I haven't yet messed with eealloc, which should be redundant now.

As you can see from my other emails today, other Gnulib modules no longer depend on eealloc code, so I installed the attached to deprecate eealloc.

From 671103c702804f673d12dbf9dbd3e3d79f4411ac Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Tue, 5 Nov 2024 23:07:09 -0800
Subject: [PATCH] eealloc: deprecate

Now that malloc-gnu and realloc-posix arrange for the
various memory allocators to return non-null on success,
should be no need for the eealloc module.
* NEWS, modules/eealloc: Mention this.
---
 ChangeLog       | 6 ++++++
 NEWS            | 3 +++
 modules/eealloc | 7 +++++++
 3 files changed, 16 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 23479f4450..fd4a4db560 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2024-11-05  Paul Eggert  <egg...@cs.ucla.edu>
 
+	eealloc: deprecate
+	Now that malloc-gnu and realloc-posix arrange for the
+	various memory allocators to return non-null on success,
+	should be no need for the eealloc module.
+	* NEWS, modules/eealloc: Mention this.
+
 	relocatable-prog-wrapper: remove eealloc.m4
 	* modules/relocatable-prog-wrapper (Files): Remove m4/eealloc.m4.
 	It wasn’t being used and evidently was listed only because
diff --git a/NEWS b/NEWS
index 7c48798dbf..9e08bd1048 100644
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,9 @@ User visible incompatible changes
 
 Date        Modules         Changes
 
+2024-11-05  eealloc         This module is deprecated.  Use malloc-gnu or
+                            realloc-posix instead.
+
 2024-10-22  spawn-pipe      The functions 'create_pipe_out', 'create_pipe_in',
                             'create_pipe_bidi' now take a 4th argument
                             'const char * const *dll_dirs'. To maintain the
diff --git a/modules/eealloc b/modules/eealloc
index fee6d7b013..10ee49c16c 100644
--- a/modules/eealloc
+++ b/modules/eealloc
@@ -1,6 +1,13 @@
 Description:
 Memory allocation with expensive empty allocations
 
+Status:
+deprecated
+
+Notice:
+The eealloc module is deprecated.
+New code should use the malloc-gnu and/or realloc-posix modules.
+
 Files:
 lib/eealloc.h
 lib/eealloc.c
-- 
2.43.0

Reply via email to