Mercurial > hg > xemacs-beta
comparison src/mc-alloc.h @ 3305:1043bbfa24cf
[xemacs-hg @ 2006-03-26 15:24:25 by crestani]
2006-03-26 Marcus Crestani <crestani@xemacs.org>
* alloc.c (malloc_warning): Move function into scope of
MALLOC_END, add MALLOC_END.
* alloc.c (memory_full): Add memory shortage indication, adjust
error messages.
* mc-alloc.c: Add memory_shortage.
* mc-alloc.c (expand_heap): If memory is short, allocate only the
needed pages, not more.
* mc-alloc.h: Add memory_shortage.
author | crestani |
---|---|
date | Sun, 26 Mar 2006 15:24:27 +0000 |
parents | 619edf713d55 |
children | 229bd619740a |
comparison
equal
deleted
inserted
replaced
3304:73051095a712 | 3305:1043bbfa24cf |
---|---|
25 | 25 |
26 /*--- prototypes -------------------------------------------------------*/ | 26 /*--- prototypes -------------------------------------------------------*/ |
27 | 27 |
28 BEGIN_C_DECLS | 28 BEGIN_C_DECLS |
29 | 29 |
30 /* Set to 1 if memory becomes short. */ | |
31 extern EMACS_INT memory_shortage; | |
30 | 32 |
31 | 33 |
32 /* Internal Allocator Functions: */ | 34 /* Internal Allocator Functions: */ |
33 | 35 |
34 /* Initialize the allocator. This has to be called prior to | 36 /* Initialize the allocator. This has to be called prior to |