comparison src/ralloc.c @ 36187:72f30168f26c

(__morecore) [!SYSTEM_MALLOC]: Move declaration to the start of the file.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 19 Feb 2001 12:19:40 +0000
parents d8d68cbd1113
children 23a1cea22d13
comparison
equal deleted inserted replaced
36186:e391cbe3a2fe 36187:72f30168f26c
111 #define ROUND_TO_PAGE(addr) (addr & (~(page_size - 1))) 111 #define ROUND_TO_PAGE(addr) (addr & (~(page_size - 1)))
112 112
113 #define MEM_ALIGN sizeof(double) 113 #define MEM_ALIGN sizeof(double)
114 #define MEM_ROUNDUP(addr) (((unsigned long int)(addr) + MEM_ALIGN - 1) \ 114 #define MEM_ROUNDUP(addr) (((unsigned long int)(addr) + MEM_ALIGN - 1) \
115 & ~(MEM_ALIGN - 1)) 115 & ~(MEM_ALIGN - 1))
116
117 /* The hook `malloc' uses for the function which gets more space
118 from the system. */
119
120 #ifndef SYSTEM_MALLOC
121 extern POINTER (*__morecore) ();
122 #endif
123
116 124
117 125
118 /*********************************************************************** 126 /***********************************************************************
119 Implementation using sbrk 127 Implementation using sbrk
120 ***********************************************************************/ 128 ***********************************************************************/
1220 1228
1221 /*********************************************************************** 1229 /***********************************************************************
1222 Initialization 1230 Initialization
1223 ***********************************************************************/ 1231 ***********************************************************************/
1224 1232
1225 /* The hook `malloc' uses for the function which gets more space
1226 from the system. */
1227
1228 #ifndef SYSTEM_MALLOC
1229 extern POINTER (*__morecore) ();
1230 #endif
1231
1232
1233 /* Initialize various things for memory allocation. */ 1233 /* Initialize various things for memory allocation. */
1234 1234
1235 static void 1235 static void
1236 r_alloc_init () 1236 r_alloc_init ()
1237 { 1237 {