summaryrefslogtreecommitdiff
path: root/src/alloca.c
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2003-06-12 22:09:14 +0000
committerDave Love <fx@gnu.org>2003-06-12 22:09:14 +0000
commit2136598a91ddccec5607d233e2a5f9b941b87bae (patch)
tree292dab4729e8150b197de609a4fae09060d88e17 /src/alloca.c
parent4a15fdc6c87c3df6e152a5b30ca1b863e90f14b3 (diff)
downloademacs-2136598a91ddccec5607d233e2a5f9b941b87bae.tar.gz
(alloca): Declare arg as size_t.
Diffstat (limited to 'src/alloca.c')
-rw-r--r--src/alloca.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/alloca.c b/src/alloca.c
index 85e5d73c2d7..4b574374bff 100644
--- a/src/alloca.c
+++ b/src/alloca.c
@@ -1,6 +1,9 @@
/* alloca.c -- allocate automatically reclaimed memory
(Mostly) portable public-domain implementation -- D A Gwyn
+ NOTE: The canonical source of this file is maintained with gnulib.
+ Bugs can be reported to bug-gnulib@gnu.org.
+
This implementation of the PWB library alloca function,
which is used to allocate space off the run-time stack so
that it is automatically reclaimed upon procedure exit,
@@ -54,7 +57,7 @@
you
lose
-- must know STACK_DIRECTION at compile-time
-/* Using #error here is not wise since this file is for
+/* Using #error here is not wise since this file should work for
old and obscure compilers. */
# endif /* STACK_DIRECTION undefined */
# endif /* static */
@@ -180,7 +183,7 @@ static header *last_alloca_header = NULL; /* -> last alloca header. */
pointer
alloca (size)
- unsigned size;
+ size_t size;
{
auto char probe; /* Probes stack depth: */
register char *depth = ADDRESS_FUNCTION (probe);