diff options
| author | Juanma Barranquero | 2010-07-05 12:36:06 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-07-05 12:36:06 +0200 |
| commit | d3da34e0dab1404e80dba5413b3c449a6ea8fa0c (patch) | |
| tree | c24d736f75b63d4abb1b8ddd49b088632ccd8aee /src/vm-limit.c | |
| parent | 00be444c737e95c7455aa1808d9da75d4affd51f (diff) | |
| download | emacs-d3da34e0dab1404e80dba5413b3c449a6ea8fa0c.tar.gz emacs-d3da34e0dab1404e80dba5413b3c449a6ea8fa0c.zip | |
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*.
Diffstat (limited to 'src/vm-limit.c')
| -rw-r--r-- | src/vm-limit.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/vm-limit.c b/src/vm-limit.c index 1f401601bbf..25f42d9904f 100644 --- a/src/vm-limit.c +++ b/src/vm-limit.c | |||
| @@ -42,7 +42,7 @@ static enum warnlevel warnlevel; | |||
| 42 | 42 | ||
| 43 | /* Function to call to issue a warning; | 43 | /* Function to call to issue a warning; |
| 44 | 0 means don't issue them. */ | 44 | 0 means don't issue them. */ |
| 45 | static void (*warn_function) (); | 45 | static void (*warn_function) (char *); |
| 46 | 46 | ||
| 47 | /* Start of data space; can be changed by calling malloc_init. */ | 47 | /* Start of data space; can be changed by calling malloc_init. */ |
| 48 | static POINTER data_space_start; | 48 | static POINTER data_space_start; |
| @@ -53,7 +53,7 @@ static unsigned long lim_data; | |||
| 53 | 53 | ||
| 54 | #if defined (HAVE_GETRLIMIT) && defined (RLIMIT_AS) | 54 | #if defined (HAVE_GETRLIMIT) && defined (RLIMIT_AS) |
| 55 | static void | 55 | static void |
| 56 | get_lim_data () | 56 | get_lim_data (void) |
| 57 | { | 57 | { |
| 58 | struct rlimit rlimit; | 58 | struct rlimit rlimit; |
| 59 | 59 | ||
| @@ -170,7 +170,7 @@ get_lim_data () | |||
| 170 | /* Verify amount of memory available, complaining if we're near the end. */ | 170 | /* Verify amount of memory available, complaining if we're near the end. */ |
| 171 | 171 | ||
| 172 | static void | 172 | static void |
| 173 | check_memory_limits () | 173 | check_memory_limits (void) |
| 174 | { | 174 | { |
| 175 | #ifdef REL_ALLOC | 175 | #ifdef REL_ALLOC |
| 176 | extern POINTER (*real_morecore) (); | 176 | extern POINTER (*real_morecore) (); |
| @@ -249,9 +249,7 @@ check_memory_limits () | |||
| 249 | WARNFUN specifies the function to call to issue a warning. */ | 249 | WARNFUN specifies the function to call to issue a warning. */ |
| 250 | 250 | ||
| 251 | void | 251 | void |
| 252 | memory_warnings (start, warnfun) | 252 | memory_warnings (POINTER start, void (*warnfun) (char *)) |
| 253 | POINTER start; | ||
| 254 | void (*warnfun) (); | ||
| 255 | { | 253 | { |
| 256 | extern void (* __after_morecore_hook) (); /* From gmalloc.c */ | 254 | extern void (* __after_morecore_hook) (); /* From gmalloc.c */ |
| 257 | 255 | ||