aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 @@
1/* alloca.c -- allocate automatically reclaimed memory 1/* alloca.c -- allocate automatically reclaimed memory
2 (Mostly) portable public-domain implementation -- D A Gwyn 2 (Mostly) portable public-domain implementation -- D A Gwyn
3 3
4 NOTE: The canonical source of this file is maintained with gnulib.
5 Bugs can be reported to bug-gnulib@gnu.org.
6
4 This implementation of the PWB library alloca function, 7 This implementation of the PWB library alloca function,
5 which is used to allocate space off the run-time stack so 8 which is used to allocate space off the run-time stack so
6 that it is automatically reclaimed upon procedure exit, 9 that it is automatically reclaimed upon procedure exit,
@@ -54,7 +57,7 @@
54you 57you
55lose 58lose
56-- must know STACK_DIRECTION at compile-time 59-- must know STACK_DIRECTION at compile-time
57/* Using #error here is not wise since this file is for 60/* Using #error here is not wise since this file should work for
58 old and obscure compilers. */ 61 old and obscure compilers. */
59# endif /* STACK_DIRECTION undefined */ 62# endif /* STACK_DIRECTION undefined */
60# endif /* static */ 63# endif /* static */
@@ -180,7 +183,7 @@ static header *last_alloca_header = NULL; /* -> last alloca header. */
180 183
181pointer 184pointer
182alloca (size) 185alloca (size)
183 unsigned size; 186 size_t size;
184{ 187{
185 auto char probe; /* Probes stack depth: */ 188 auto char probe; /* Probes stack depth: */
186 register char *depth = ADDRESS_FUNCTION (probe); 189 register char *depth = ADDRESS_FUNCTION (probe);