aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmalloc.c')
-rw-r--r--src/gmalloc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c
index ca862767bb2..282216a947b 100644
--- a/src/gmalloc.c
+++ b/src/gmalloc.c
@@ -56,7 +56,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
56extern void (*__MALLOC_HOOK_VOLATILE __after_morecore_hook) (void); 56extern void (*__MALLOC_HOOK_VOLATILE __after_morecore_hook) (void);
57extern void (*__MALLOC_HOOK_VOLATILE __malloc_initialize_hook) (void); 57extern void (*__MALLOC_HOOK_VOLATILE __malloc_initialize_hook) (void);
58extern void *(*__morecore) (ptrdiff_t); 58extern void *(*__morecore) (ptrdiff_t);
59extern void *__default_morecore (ptrdiff_t);
60#endif 59#endif
61 60
62/* If HYBRID_MALLOC is defined, then temacs will use malloc, 61/* If HYBRID_MALLOC is defined, then temacs will use malloc,
@@ -1512,8 +1511,8 @@ extern void *__sbrk (ptrdiff_t increment);
1512/* Allocate INCREMENT more bytes of data space, 1511/* Allocate INCREMENT more bytes of data space,
1513 and return the start of data space, or NULL on errors. 1512 and return the start of data space, or NULL on errors.
1514 If INCREMENT is negative, shrink data space. */ 1513 If INCREMENT is negative, shrink data space. */
1515void * 1514static void *
1516__default_morecore (ptrdiff_t increment) 1515gdefault_morecore (ptrdiff_t increment)
1517{ 1516{
1518 void *result; 1517 void *result;
1519#ifdef HYBRID_MALLOC 1518#ifdef HYBRID_MALLOC
@@ -1528,7 +1527,7 @@ __default_morecore (ptrdiff_t increment)
1528 return result; 1527 return result;
1529} 1528}
1530 1529
1531void *(*__morecore) (ptrdiff_t) = __default_morecore; 1530void *(*__morecore) (ptrdiff_t) = gdefault_morecore;
1532 1531
1533/* Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc. 1532/* Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc.
1534 1533