Use `scheme-mode` for the Guile init file
[emacs.git] / m4 / eealloc.m4
blob8a15e705541537327f6bb75dfbd6c7bfa416b9b6
1 # eealloc.m4
2 # serial 3
3 dnl Copyright (C) 2003, 2009-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 AC_DEFUN([gl_EEALLOC],
10   AC_REQUIRE([gl_EEMALLOC])
11   AC_REQUIRE([gl_EEREALLOC])
14 AC_DEFUN([gl_EEMALLOC],
16   _AC_FUNC_MALLOC_IF(
17     [gl_cv_func_malloc_0_nonnull=1],
18     [gl_cv_func_malloc_0_nonnull=0])
19   AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull],
20     [If malloc(0) is != NULL, define this to 1.  Otherwise define this
21      to 0.])
24 AC_DEFUN([gl_EEREALLOC],
26   _AC_FUNC_REALLOC_IF(
27     [gl_cv_func_realloc_0_nonnull=1],
28     [gl_cv_func_realloc_0_nonnull=0])
29   AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull],
30     [If realloc(NULL,0) is != NULL, define this to 1.  Otherwise define this
31      to 0.])