diff options
author | Paul Smith <psmith@gnu.org> | 2002-10-14 21:54:04 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2002-10-14 21:54:04 +0000 |
commit | 6374309c6d4d17ab1e4109133ab8aad55f77d51c (patch) | |
tree | 91011a11f637df979b9c5dd8b0f1fc4bfc2be831 /alloca.c | |
parent | 8bbdbb02b30ffd39c2fac9259b3a91cb62e1711d (diff) | |
download | gunmake-6374309c6d4d17ab1e4109133ab8aad55f77d51c.tar.gz |
Convert the source code to use ANSI C style function definitions and
enable the automake ansi2knr capability.
Right now this doesn't quite build using a K&R compiler because of a
problem with the loadavg test program, but the rest of the code works. I'm
asking the automake list about this problem.
Diffstat (limited to 'alloca.c')
-rw-r--r-- | alloca.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -114,7 +114,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. */ @@ -168,8 +168,7 @@ static header *last_alloca_header = NULL; /* -> last alloca header. */ implementations of C, for example under Gould's UTX/32. */ pointer -alloca (size) - unsigned size; +alloca (unsigned size) { auto char probe; /* Probes stack depth: */ register char *depth = ADDRESS_FUNCTION (probe); |