diff options
author | Roland McGrath <roland@gnu.org> | 1992-10-12 19:59:52 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1992-10-12 19:59:52 +0000 |
commit | da396c5e1f1ca2c18c036d4d0e177e34f7ca33b5 (patch) | |
tree | e675270befc3b6d2859e300509be3c4e1ecf4ac5 /src/vm-limit.c | |
parent | aa3e02cec000874705b3a6fb2cbc9eb4f0b0117d (diff) | |
download | emacs-da396c5e1f1ca2c18c036d4d0e177e34f7ca33b5.tar.gz emacs-da396c5e1f1ca2c18c036d4d0e177e34f7ca33b5.tar.bz2 emacs-da396c5e1f1ca2c18c036d4d0e177e34f7ca33b5.zip |
(warnfunction): Renamed to warn_function (was used inconsistently).
(morecore_with_warning, memory_warnings): Change callers (were inconsistent).
Diffstat (limited to 'src/vm-limit.c')
-rw-r--r-- | src/vm-limit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vm-limit.c b/src/vm-limit.c index 5a20d4cd6fd..ea99ebdae9b 100644 --- a/src/vm-limit.c +++ b/src/vm-limit.c @@ -42,7 +42,7 @@ static int warnlevel; /* Function to call to issue a warning; 0 means don't issue them. */ -static void (*warnfunction) (); +static void (*warn_function) (); extern POINTER sbrk (); @@ -63,9 +63,9 @@ morecore_with_warning (size) /* Find current end of memory and issue warning if getting near max */ cp = sbrk (0); - data_size = cp - data_space_start; + data_size = (char *) cp - (char *) data_space_start; - if (warnfunction) + if (warn_function) switch (warnlevel) { case 0: @@ -111,7 +111,7 @@ morecore_with_warning (size) warnlevel = 2; if (EXCEEDS_LISP_PTR (cp)) - (*warnfunction) ("Warning: memory in use exceeds lisp pointer size"); + (*warn_function) ("Warning: memory in use exceeds lisp pointer size"); result = sbrk (size); if (result == (POINTER) -1) @@ -134,6 +134,6 @@ memory_warnings (start, warnfun) else data_space_start = start_of_data (); - warnfunction = warnfun; + warn_function = warnfun; __morecore = &morecore_with_warning; } |