]> Savannah Git Hosting - gnulib.git/commitdiff
xalloc: remove stray includes + dependencies
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Oct 2022 01:17:02 +0000 (18:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Oct 2022 01:45:24 +0000 (18:45 -0700)
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.

ChangeLog
lib/xalloc.h
lib/xmalloc.c
modules/xalloc-die
modules/xvasprintf

index 74b496ddee90e886f0de5de8b032b8179858e61d..c918d0e45e77bf1760edb272ebc03fa306215ccb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-10-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <eggert@cs.ucla.edu>
 
        assert-h: suppress Apple clang 13 false alarms
index 9f4bf8d4542e1b637b4f9f12be790e197bb57a68..01a9eec8dacc05a0b731fb1b6aa8e1acb5937688 100644 (file)
 
 #include <stddef.h>
 #include <stdlib.h>
-#include <stdint.h>
 
 #if GNULIB_XALLOC
 # include "idx.h"
-# include "intprops.h"
 #endif
 
 #ifndef _GL_INLINE_HEADER_BEGIN
index 3c3cb20799692018cdc90f8213193f8f04d22879..84cdf1f2fd1879914b7b18fbf46f82cc5780e957 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <stdckdint.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <string.h>
 
 static void * _GL_ATTRIBUTE_PURE
index e8ef52abe8b278ea75bb5dc1844d7908aa47e26d..177b68eb2e0aaf2247907387a41fe5214c4c473f 100644 (file)
@@ -10,7 +10,6 @@ error
 extern-inline
 gettext-h
 exitfail
-stdint
 
 configure.ac:
 gl_MODULE_INDICATOR([xalloc-die])
index ae233148d3804723fafdf6beff4dce712d009681..4ebbba470a32517209330143237bf7534c0b87ee 100644 (file)
@@ -15,7 +15,6 @@ xalloc
 xalloc-die
 xsize
 stdarg
-stdint
 errno
 
 configure.ac: