comparison src/emacs.c @ 24364:2c148fbec289

(main): [!SYSTEM_MALLOC]: Call realloc and free as well as malloc before calling uninterrupt_malloc, for consistency. This also enables profiling to work on WINDOWSNT.
author Andrew Innes <andrewi@gnu.org>
date Sat, 20 Feb 1999 20:43:58 +0000
parents 9365b6b93858
children 80d0a3294c24
comparison
equal deleted inserted replaced
24363:b7ccfe3bfb94 24364:2c148fbec289
707 707
708 #ifndef SYSTEM_MALLOC 708 #ifndef SYSTEM_MALLOC
709 /* Arrange to get warning messages as memory fills up. */ 709 /* Arrange to get warning messages as memory fills up. */
710 memory_warnings (0, malloc_warning); 710 memory_warnings (0, malloc_warning);
711 711
712 /* Call malloc at least once, to run the initial __malloc_hook. */ 712 /* Call malloc at least once, to run the initial __malloc_hook.
713 malloc (4); 713 Also call realloc and free for consistency. */
714 free (realloc (malloc (4), 4));
714 715
715 /* Arrange to disable interrupt input inside malloc etc. */ 716 /* Arrange to disable interrupt input inside malloc etc. */
716 uninterrupt_malloc (); 717 uninterrupt_malloc ();
717 #endif /* not SYSTEM_MALLOC */ 718 #endif /* not SYSTEM_MALLOC */
718 719