1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-17 17:58:46 +00:00
* src/alloc.c (reset_malloc_hooks): Protoize.
* src/cm.c (losecursor): Likewise.
* src/ralloc.c (r_alloc_check): Likewise.
This commit is contained in:
Andreas Schwab 2011-07-10 10:52:10 +02:00
parent 1dae0f0aad
commit 268c2c36f4
4 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,9 @@
2011-07-10 Andreas Schwab <schwab@linux-m68k.org>
* alloc.c (reset_malloc_hooks): Protoize.
* buffer.c (mmap_init, mmap_find, mmap_free_1, mmap_enlarge)
(mmap_set_vars, mmap_alloc, mmap_free, mmap_realloc): Protoize.
(mmap_set_vars, mmap_alloc, mmap_free, mmap_realloc): Likewise.
* cm.c (losecursor): Likewise.
* data.c (fmod): Likewise.
* dispnew.c (swap_glyphs_in_rows): Likewise.
* emacs.c (memory_warning_signal): Likewise.
@ -16,6 +18,7 @@
(inc_interval_count, count_intervals, root_interval)
(adjust_intervals_for_insertion, make_new_interval): Likewise.
* lread.c (defalias): Likewise.
* ralloc.c (r_alloc_check): Likewise.
* regex.c (set_image_of_range_1, set_image_of_range)
(regex_grow_registers): Likewise.
* sysdep.c (strerror): Likewise.

View File

@ -1258,7 +1258,7 @@ emacs_blocked_realloc (void *ptr, size_t size, const void *ptr2)
calls malloc because it is the first call, and we have an endless loop. */
void
reset_malloc_hooks ()
reset_malloc_hooks (void)
{
__free_hook = old_free_hook;
__malloc_hook = old_malloc_hook;

View File

@ -305,7 +305,8 @@ calccost (struct tty_display_info *tty,
}
#if 0
losecursor ()
void
losecursor (void)
{
curY = -1;
}

View File

@ -1079,7 +1079,7 @@ r_alloc_reinit (void)
#include <assert.h>
void
r_alloc_check ()
r_alloc_check (void)
{
int found = 0;
heap_ptr h, ph = 0;