diff options
Diffstat (limited to 'lib/malloc/alloca.c')
-rw-r--r-- | lib/malloc/alloca.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/malloc/alloca.c b/lib/malloc/alloca.c index 26319c2d..7627e164 100644 --- a/lib/malloc/alloca.c +++ b/lib/malloc/alloca.c @@ -77,7 +77,7 @@ typedef char *pointer; #ifndef emacs #define malloc xmalloc -extern pointer xmalloc (); +extern pointer xmalloc (size_t); #endif /* Define STACK_DIRECTION if you know the direction of stack @@ -102,7 +102,7 @@ static int stack_dir; /* 1 or -1 once known. */ #define STACK_DIR stack_dir static void -find_stack_direction () +find_stack_direction (void) { static char *addr = NULL; /* Address of first `dummy', once known. */ auto char dummy; /* To get stack address. */ @@ -156,8 +156,7 @@ static header *last_alloca_header = NULL; /* -> last alloca header. */ implementations of C, for example under Gould's UTX/32. */ pointer -alloca (size) - size_t size; +alloca (size_t size) { auto char probe; /* Probes stack depth: */ register char *depth = ADDRESS_FUNCTION (probe); |