Mercurial > emacs
changeset 51551:34f0347e6e45
(alloca): Declare arg as size_t.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 12 Jun 2003 22:09:14 +0000 |
parents | 5ffaa82e4d48 |
children | d84e9160d869 |
files | src/alloca.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alloca.c Thu Jun 12 22:09:06 2003 +0000 +++ b/src/alloca.c Thu Jun 12 22:09:14 2003 +0000 @@ -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 @@ pointer alloca (size) - unsigned size; + size_t size; { auto char probe; /* Probes stack depth: */ register char *depth = ADDRESS_FUNCTION (probe);