diff options
| author | Dave Love | 2003-06-12 22:09:14 +0000 |
|---|---|---|
| committer | Dave Love | 2003-06-12 22:09:14 +0000 |
| commit | 2136598a91ddccec5607d233e2a5f9b941b87bae (patch) | |
| tree | 292dab4729e8150b197de609a4fae09060d88e17 /src | |
| parent | 4a15fdc6c87c3df6e152a5b30ca1b863e90f14b3 (diff) | |
| download | emacs-2136598a91ddccec5607d233e2a5f9b941b87bae.tar.gz emacs-2136598a91ddccec5607d233e2a5f9b941b87bae.zip | |
(alloca): Declare arg as size_t.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloca.c | 7 |
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 @@ | |||
| 54 | you | 57 | you |
| 55 | lose | 58 | lose |
| 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 | ||
| 181 | pointer | 184 | pointer |
| 182 | alloca (size) | 185 | alloca (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); |