X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fmalloc.c;h=0fc31a006ee36eda6c2c01f3124b2a32c83e587e;hb=0c693dc08f0794304711787b2eb47c144ea4bef1;hp=158228695dbfc3b82623fe2278967cd0f103a0ff;hpb=b267e52aa03bee2c488c8a78824d96cf2d9a6ccc;p=chise%2Fxemacs-chise.git.1 diff --git a/src/malloc.c b/src/malloc.c index 1582286..0fc31a0 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -184,7 +184,7 @@ what you give them. Help stamp out software-hoarding! */ #include #endif /* BSD4_2 */ -#ifdef __STDC_ +#ifdef __STDC__ #ifndef HPUX /* not sure where this for NetBSD should really go and it probably applies to other systems */ @@ -198,13 +198,11 @@ extern char *sbrk (); extern void *sbrk (); #endif /* __STDC__ */ -extern char *start_of_data (); +extern char *start_of_data (void); #ifdef BSD -#ifndef DATA_SEG_BITS #define start_of_data() &etext #endif -#endif #ifndef emacs #define start_of_data() &etext @@ -740,7 +738,7 @@ malloc_stats (size) return v; } int -malloc_mem_used () +malloc_mem_used (void) { int i; int size_used; @@ -759,7 +757,7 @@ malloc_mem_used () } int -malloc_mem_free () +malloc_mem_free (void) { int i; int size_unused; @@ -789,7 +787,7 @@ malloc_mem_free () #ifdef USG static void -get_lim_data () +get_lim_data (void) { #ifdef ULIMIT_BREAK_VALUE lim_data = ULIMIT_BREAK_VALUE; @@ -804,7 +802,7 @@ get_lim_data () #ifndef BSD4_2 static void -get_lim_data () +get_lim_data (void) { lim_data = vlimit (LIM_DATA, -1); } @@ -812,7 +810,7 @@ get_lim_data () #else /* BSD4_2 */ static void -get_lim_data () +get_lim_data (void) { struct rlimit XXrlimit;