diff 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
line wrap: on
line diff
--- a/src/mc-alloc.h	Sun Mar 26 14:33:39 2006 +0000
+++ b/src/mc-alloc.h	Sun Mar 26 15:24:27 2006 +0000
@@ -27,6 +27,8 @@
 
 BEGIN_C_DECLS
 
+/* Set to 1 if memory becomes short. */
+extern EMACS_INT memory_shortage;
 
 
 /* Internal Allocator Functions: */