From: Paul Eggert Date: Tue, 11 Oct 2022 01:17:02 +0000 (-0700) Subject: xalloc: remove stray includes + dependencies X-Git-Tag: v1.0~1990 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=788bb2cd0625b20b0131b8440889f01128e581d4;p=gnulib.git xalloc: remove stray includes + dependencies These used to be needed, but are not needed now. * lib/xalloc.h: Do not include stdlib.h. [GNULIB_XALLOC]: Do not include "intprops.h". * lib/xmalloc.c: Include stdint.h here instead, for SIZE_MAX. * modules/xalloc-die, modules/xvasprintf (Depends-on): Remove stdint. --- diff --git a/ChangeLog b/ChangeLog index 74b496ddee..c918d0e45e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2022-10-10 Paul Eggert + + xalloc: remove stray includes + dependencies + These used to be needed, but are not needed now. + * lib/xalloc.h: Do not include stdlib.h. + [GNULIB_XALLOC]: Do not include "intprops.h". + * lib/xmalloc.c: Include stdint.h here instead, for SIZE_MAX. + * modules/xalloc-die, modules/xvasprintf (Depends-on): Remove stdint. + 2022-09-30 Paul Eggert assert-h: suppress Apple clang 13 false alarms diff --git a/lib/xalloc.h b/lib/xalloc.h index 9f4bf8d454..01a9eec8da 100644 --- a/lib/xalloc.h +++ b/lib/xalloc.h @@ -20,11 +20,9 @@ #include #include -#include #if GNULIB_XALLOC # include "idx.h" -# include "intprops.h" #endif #ifndef _GL_INLINE_HEADER_BEGIN diff --git a/lib/xmalloc.c b/lib/xmalloc.c index 3c3cb20799..84cdf1f2fd 100644 --- a/lib/xmalloc.c +++ b/lib/xmalloc.c @@ -26,6 +26,7 @@ #include #include +#include #include static void * _GL_ATTRIBUTE_PURE diff --git a/modules/xalloc-die b/modules/xalloc-die index e8ef52abe8..177b68eb2e 100644 --- a/modules/xalloc-die +++ b/modules/xalloc-die @@ -10,7 +10,6 @@ error extern-inline gettext-h exitfail -stdint configure.ac: gl_MODULE_INDICATOR([xalloc-die]) diff --git a/modules/xvasprintf b/modules/xvasprintf index ae233148d3..4ebbba470a 100644 --- a/modules/xvasprintf +++ b/modules/xvasprintf @@ -15,7 +15,6 @@ xalloc xalloc-die xsize stdarg -stdint errno configure.ac: