From: Gerd Moellmann Date: Mon, 19 Feb 2001 12:20:08 +0000 (+0000) Subject: (__morecore) [!SYSTEM_MALLOC]: Move declaration X-Git-Tag: emacs-pretest-21.0.99~298 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aeac019e2f2b9e6a13fc50d9a7291131754a26ed;p=emacs.git (__morecore) [!SYSTEM_MALLOC]: Move declaration to the start of the file. --- diff --git a/src/ChangeLog b/src/ChangeLog index 4c1e2b123f4..44015eb9296 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-02-19 Gerd Moellmann + + * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration + to the start of the file. + 2001-02-16 Gerd Moellmann * window.c (set_window_buffer): Fix last change. diff --git a/src/ralloc.c b/src/ralloc.c index 2e9004baa2f..9d31320bfcf 100644 --- a/src/ralloc.c +++ b/src/ralloc.c @@ -114,6 +114,14 @@ static int extra_bytes; #define MEM_ROUNDUP(addr) (((unsigned long int)(addr) + MEM_ALIGN - 1) \ & ~(MEM_ALIGN - 1)) +/* The hook `malloc' uses for the function which gets more space + from the system. */ + +#ifndef SYSTEM_MALLOC +extern POINTER (*__morecore) (); +#endif + + /*********************************************************************** Implementation using sbrk @@ -1222,14 +1230,6 @@ r_alloc_check () Initialization ***********************************************************************/ -/* The hook `malloc' uses for the function which gets more space - from the system. */ - -#ifndef SYSTEM_MALLOC -extern POINTER (*__morecore) (); -#endif - - /* Initialize various things for memory allocation. */ static void