Mercurial > hg > xemacs-beta
diff src/emacs.c @ 94:1040fe1366ac xemacs-20-0f2
Import from CVS: tag xemacs-20-0f2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:12:09 +0200 |
parents | 1ce6082ce73f |
children | 0d2f883870bc |
line wrap: on
line diff
--- a/src/emacs.c Mon Aug 13 09:11:41 2007 +0200 +++ b/src/emacs.c Mon Aug 13 09:12:09 2007 +0200 @@ -64,6 +64,12 @@ extern void memory_warnings (void *, void (*warnfun) (CONST char *)); +#ifndef SYSTEM_MALLOC +extern void *(*__malloc_hook)(size_t); +extern void *(*__realloc_hook)(void *, size_t); +extern void (*__free_hook)(void *); +#endif /* not SYSTEM_MALLOC */ + /* Command line args from shell, as list of strings */ Lisp_Object Vcommand_line_args; @@ -441,6 +447,14 @@ Lisp_Object load_me; int inhibit_window_system; +#ifndef SYSTEM_MALLOC + /* Make sure that any libraries we link against haven't installed a + hook for a gmalloc of a potentially incompatible version. */ + __malloc_hook = NULL; + __realloc_hook = NULL; + __free_hook = NULL; +#endif /* not SYSTEM_MALLOC */ + noninteractive = 0; #ifdef NeXT