Mercurial > hg > xemacs-beta
diff src/vm-limit.c @ 185:3d6bfa290dbd r20-3b19
Import from CVS: tag r20-3b19
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:55:28 +0200 |
parents | 54cc21c15cbb |
children | 74fd4e045ea6 |
line wrap: on
line diff
--- a/src/vm-limit.c Mon Aug 13 09:54:24 2007 +0200 +++ b/src/vm-limit.c Mon Aug 13 09:55:28 2007 +0200 @@ -25,8 +25,8 @@ #include "lisp.h" #endif +#include <stddef.h> #ifndef emacs -#include <stddef.h> typedef size_t SIZE; typedef void *POINTER; #define EXCEEDS_LISP_PTR(x) 0 @@ -52,7 +52,7 @@ static void check_memory_limits (void) { - extern POINTER (*__morecore) (); + extern POINTER (*__morecore) (ptrdiff_t size); POINTER cp; unsigned long five_percent; @@ -69,7 +69,7 @@ if (warn_function) switch (warnlevel) { - case 0: + case 0: if (data_size > five_percent * 15) { warnlevel++; @@ -77,7 +77,7 @@ } break; - case 1: + case 1: if (data_size > five_percent * 17) { warnlevel++; @@ -85,7 +85,7 @@ } break; - case 2: + case 2: if (data_size > five_percent * 19) { warnlevel++; @@ -121,7 +121,7 @@ void memory_warnings (void *start, void (*warnfun) (CONST char *)) { - extern void (* __after_morecore_hook) (); /* From gmalloc.c */ + extern void (* __after_morecore_hook) (void); /* From gmalloc.c */ if (start) data_space_start = start;