Mercurial > emacs
diff src/vm-limit.c @ 109144:7dceae91724c
Convert most remaining function definitions to standard C.
* buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
* xdisp.c: Convert function definitions to standard C.
* cm.c (cmputc): Arg C is now int, not char.
* process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
| author | Juanma Barranquero <lekktu@gmail.com> |
|---|---|
| date | Mon, 05 Jul 2010 12:36:06 +0200 |
| parents | ed7496d92467 |
| children | d0090a8b66c3 |
line wrap: on
line diff
--- a/src/vm-limit.c Mon Jul 05 12:28:27 2010 +0200 +++ b/src/vm-limit.c Mon Jul 05 12:36:06 2010 +0200 @@ -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 */
