diff options
Diffstat (limited to 'gnu/lib/libmalloc')
-rw-r--r-- | gnu/lib/libmalloc/mem-limits.h | 4 | ||||
-rw-r--r-- | gnu/lib/libmalloc/ralloc.c | 10 | ||||
-rw-r--r-- | gnu/lib/libmalloc/vm-limit.c | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/gnu/lib/libmalloc/mem-limits.h b/gnu/lib/libmalloc/mem-limits.h index ab594fc..6ad994f 100644 --- a/gnu/lib/libmalloc/mem-limits.h +++ b/gnu/lib/libmalloc/mem-limits.h @@ -69,12 +69,12 @@ extern char etext; #endif #endif -#else /* Not emacs */ +#else /* Not emacs */ extern char etext; #define start_of_data() &etext #endif /* Not emacs */ - + /* start of data space; can be changed by calling malloc_init */ static POINTER data_space_start; diff --git a/gnu/lib/libmalloc/ralloc.c b/gnu/lib/libmalloc/ralloc.c index 78b9f62..32094d2 100644 --- a/gnu/lib/libmalloc/ralloc.c +++ b/gnu/lib/libmalloc/ralloc.c @@ -1,4 +1,4 @@ -/* Block-relocating memory allocator. +/* Block-relocating memory allocator. Copyright (C) 1993 Free Software Foundation, Inc. @@ -104,7 +104,7 @@ static POINTER page_break_value; /* This is the size of a page. We round memory requests to this boundary. */ static int page_size; -/* Whenever we get memory from the system, get this many extra bytes. This +/* Whenever we get memory from the system, get this many extra bytes. This must be a multiple of page_size. */ static int extra_bytes; @@ -173,7 +173,7 @@ relinquish (size) break_value -= size; new_page_break = (POINTER) ROUNDUP (break_value); excess = (char *) page_break_value - (char *) new_page_break; - + if (excess > extra_bytes * 2) { /* Keep extra_bytes worth of empty space. @@ -286,7 +286,7 @@ relocate_some_blocs (bloc, address) register SIZE offset = address - bloc->data; register SIZE data_size = 0; register bloc_ptr b; - + for (b = bloc; b != NIL_BLOC; b = b->next) { data_size += b->size; @@ -346,7 +346,7 @@ static int use_relocatable_buffers; __morecore hook values - in particular, __default_morecore in the GNU malloc package. */ -POINTER +POINTER r_alloc_sbrk (size) long size; { diff --git a/gnu/lib/libmalloc/vm-limit.c b/gnu/lib/libmalloc/vm-limit.c index a2ac96c..06ea071 100644 --- a/gnu/lib/libmalloc/vm-limit.c +++ b/gnu/lib/libmalloc/vm-limit.c @@ -68,7 +68,7 @@ check_memory_limits () if (warn_function) switch (warnlevel) { - case 0: + case 0: if (data_size > five_percent * 15) { warnlevel++; @@ -76,7 +76,7 @@ check_memory_limits () } break; - case 1: + case 1: if (data_size > five_percent * 17) { warnlevel++; @@ -84,7 +84,7 @@ check_memory_limits () } break; - case 2: + case 2: if (data_size > five_percent * 19) { warnlevel++; |