diff options
| author | Roland McGrath | 1992-10-12 19:59:52 +0000 |
|---|---|---|
| committer | Roland McGrath | 1992-10-12 19:59:52 +0000 |
| commit | da396c5e1f1ca2c18c036d4d0e177e34f7ca33b5 (patch) | |
| tree | e675270befc3b6d2859e300509be3c4e1ecf4ac5 /src | |
| parent | aa3e02cec000874705b3a6fb2cbc9eb4f0b0117d (diff) | |
| download | emacs-da396c5e1f1ca2c18c036d4d0e177e34f7ca33b5.tar.gz emacs-da396c5e1f1ca2c18c036d4d0e177e34f7ca33b5.zip | |
(warnfunction): Renamed to warn_function (was used inconsistently).
(morecore_with_warning, memory_warnings): Change callers (were inconsistent).
Diffstat (limited to 'src')
| -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; | |||
| 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 (*warnfunction) (); | 45 | static void (*warn_function) (); |
| 46 | 46 | ||
| 47 | extern POINTER sbrk (); | 47 | extern POINTER sbrk (); |
| 48 | 48 | ||
| @@ -63,9 +63,9 @@ morecore_with_warning (size) | |||
| 63 | 63 | ||
| 64 | /* Find current end of memory and issue warning if getting near max */ | 64 | /* Find current end of memory and issue warning if getting near max */ |
| 65 | cp = sbrk (0); | 65 | cp = sbrk (0); |
| 66 | data_size = cp - data_space_start; | 66 | data_size = (char *) cp - (char *) data_space_start; |
| 67 | 67 | ||
| 68 | if (warnfunction) | 68 | if (warn_function) |
| 69 | switch (warnlevel) | 69 | switch (warnlevel) |
| 70 | { | 70 | { |
| 71 | case 0: | 71 | case 0: |
| @@ -111,7 +111,7 @@ morecore_with_warning (size) | |||
| 111 | warnlevel = 2; | 111 | warnlevel = 2; |
| 112 | 112 | ||
| 113 | if (EXCEEDS_LISP_PTR (cp)) | 113 | if (EXCEEDS_LISP_PTR (cp)) |
| 114 | (*warnfunction) ("Warning: memory in use exceeds lisp pointer size"); | 114 | (*warn_function) ("Warning: memory in use exceeds lisp pointer size"); |
| 115 | 115 | ||
| 116 | result = sbrk (size); | 116 | result = sbrk (size); |
| 117 | if (result == (POINTER) -1) | 117 | if (result == (POINTER) -1) |
| @@ -134,6 +134,6 @@ memory_warnings (start, warnfun) | |||
| 134 | else | 134 | else |
| 135 | data_space_start = start_of_data (); | 135 | data_space_start = start_of_data (); |
| 136 | 136 | ||
| 137 | warnfunction = warnfun; | 137 | warn_function = warnfun; |
| 138 | __morecore = &morecore_with_warning; | 138 | __morecore = &morecore_with_warning; |
| 139 | } | 139 | } |