]> git.eshelyaron.com Git - emacs.git/commit
Let Gnulib deal with malloc/realloc 0
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 17 Jan 2025 07:28:34 +0000 (23:28 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 18 Jan 2025 22:00:53 +0000 (23:00 +0100)
commit20a82009fd52d84b33f982f2425f4b361ad04058
tree3b77498f3434e6a0ff718c8f20bf9151648da28d
parent35445b92a53756edc0cbb640416414de89ffd840
Let Gnulib deal with malloc/realloc 0

Instead of worrying about whether malloc and realloc yield a
non-null pointer when given size 0 (the traditional behavior
recommended by Doug McIlroy, and the only behavior that makes
sense for Emacs), let Gnulib arrange for the traditional behavior.
* admin/merge-gnulib (GNULIB_MODULES): Add malloc-gnu (which we
were already depending on indirectly) and realloc-posix.
* lib/gnulib.mk.in, m4/gnulib-comp.m4:
Regenerate by running admin/merge-gnulib.

(cherry picked from commit 29794c71452c58c596c58fd6148741d213d3ee7b)
admin/merge-gnulib
lib/gnulib.mk.in
m4/gnulib-comp.m4