Mercurial > hg > xemacs-beta
comparison src/sheap.c @ 280:7df0dd720c89 r21-0b38
Import from CVS: tag r21-0b38
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:32:22 +0200 |
parents | 90d73dddcdc4 |
children | 57709be46d1b |
comparison
equal
deleted
inserted
replaced
279:c20b2fb5bb0a | 280:7df0dd720c89 |
---|---|
46 int size = (int) increment; | 46 int size = (int) increment; |
47 void *result; | 47 void *result; |
48 | 48 |
49 if (!static_heap_initialized) | 49 if (!static_heap_initialized) |
50 { | 50 { |
51 #ifdef VALMASK | |
51 if (((unsigned long) static_heap_base & ~VALMASK) != 0) | 52 if (((unsigned long) static_heap_base & ~VALMASK) != 0) |
52 { | 53 { |
53 printf ("error: The heap was allocated in upper memory.\n"); | 54 printf ("error: The heap was allocated in upper memory.\n"); |
54 exit (-1); | 55 exit (-1); |
55 } | 56 } |
57 #endif | |
56 static_heap_base=(char*)ALIGN_ALLOC(static_heap_buffer); | 58 static_heap_base=(char*)ALIGN_ALLOC(static_heap_buffer); |
57 static_heap_ptr=static_heap_base; | 59 static_heap_ptr=static_heap_base; |
58 static_heap_size=STATIC_HEAP_SIZE - | 60 static_heap_size=STATIC_HEAP_SIZE - |
59 (static_heap_base-static_heap_buffer); | 61 (static_heap_base-static_heap_buffer); |
60 #ifdef __CYGWIN32__ | 62 #ifdef __CYGWIN32__ |