]> Savannah Git Hosting - gnulib.git/commitdiff
malloc-gnu, eealloc: Make code more future-proof.
authorBruno Haible <bruno@clisp.org>
Thu, 31 Oct 2024 21:04:42 +0000 (22:04 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 31 Oct 2024 21:04:42 +0000 (22:04 +0100)
* m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Protect evaluation of
$gl_cross_guess_normal.
* m4/eealloc.m4 (gl_EEMALLOC, gl_EEREALLOC): Likewise.

ChangeLog
m4/eealloc.m4
m4/malloc.m4

index dc16a1fda998c3f7abe04fb1c2488341c34e5950..e791d614285f3b4f508b6f47c646e331b5c3c647 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-10-31  Bruno Haible  <bruno@clisp.org>
+
+       malloc-gnu, eealloc: Make code more future-proof.
+       * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Protect evaluation of
+       $gl_cross_guess_normal.
+       * m4/eealloc.m4 (gl_EEMALLOC, gl_EEREALLOC): Likewise.
+
 2024-10-31  Bruno Haible  <bruno@clisp.org>
 
        malloc-posix, calloc-posix, realloc-posix: Optimize on MSVC.
index 42ab030f38a63d4484768e7aef2d2f796a6f9d29..0ad90c687b94666c7b36453b8e193ed2a7d51cf7 100644 (file)
@@ -1,5 +1,5 @@
 # eealloc.m4
-# serial 4
+# serial 5
 dnl Copyright (C) 2003, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -17,7 +17,7 @@ AC_DEFUN([gl_EEMALLOC],
   _AC_FUNC_MALLOC_IF(
     [gl_cv_func_malloc_0_nonnull=1],
     [gl_cv_func_malloc_0_nonnull=0],
-    [$gl_cross_guess_normal])
+    ["$gl_cross_guess_normal"])
   AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull],
     [If malloc(0) is != NULL, define this to 1.  Otherwise define this
      to 0.])
@@ -28,7 +28,7 @@ AC_DEFUN([gl_EEREALLOC],
   _AC_FUNC_REALLOC_IF(
     [gl_cv_func_realloc_0_nonnull=1],
     [gl_cv_func_realloc_0_nonnull=0],
-    [$gl_cross_guess_normal])
+    ["$gl_cross_guess_normal"])
   AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull],
     [If realloc(NULL,0) is != NULL, define this to 1.  Otherwise define this
      to 0.])
index d7684f418c71863d00a20a02724bf70d3c26a4fd..d5985fc75fb2940d0ad4594e8bb0518612831308 100644 (file)
@@ -1,5 +1,5 @@
 # malloc.m4
-# serial 37
+# serial 38
 dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -62,7 +62,7 @@ AC_DEFUN([gl_FUNC_MALLOC_GNU],
   REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX"
   if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then
     _AC_FUNC_MALLOC_IF([], [REPLACE_MALLOC_FOR_MALLOC_GNU=1],
-      [$gl_cross_guess_normal])
+      ["$gl_cross_guess_normal"])
   fi
 ])