Mercurial > emacs
diff src/vm-limit.c @ 109235:d53d2e9bef4f
Merge from mainline.
author | Katsumi Yamaoka <katsumi@flagship2> |
---|---|
date | Mon, 05 Jul 2010 11:22:19 +0000 |
parents | 7dceae91724c |
children | d0090a8b66c3 |
line wrap: on
line diff
--- a/src/vm-limit.c Sat Jul 03 11:08:43 2010 +0000 +++ b/src/vm-limit.c Mon Jul 05 11:22:19 2010 +0000 @@ -42,7 +42,7 @@ /* Function to call to issue a warning; 0 means don't issue them. */ -static void (*warn_function) (); +static void (*warn_function) (char *); /* Start of data space; can be changed by calling malloc_init. */ static POINTER data_space_start; @@ -53,7 +53,7 @@ #if defined (HAVE_GETRLIMIT) && defined (RLIMIT_AS) static void -get_lim_data () +get_lim_data (void) { struct rlimit rlimit; @@ -170,7 +170,7 @@ /* Verify amount of memory available, complaining if we're near the end. */ static void -check_memory_limits () +check_memory_limits (void) { #ifdef REL_ALLOC extern POINTER (*real_morecore) (); @@ -249,9 +249,7 @@ WARNFUN specifies the function to call to issue a warning. */ void -memory_warnings (start, warnfun) - POINTER start; - void (*warnfun) (); +memory_warnings (POINTER start, void (*warnfun) (char *)) { extern void (* __after_morecore_hook) (); /* From gmalloc.c */