diff options
| author | Juanma Barranquero | 2002-12-10 07:40:21 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2002-12-10 07:40:21 +0000 |
| commit | b11f1d8a332465e124e6fdc02d445af4bc29014e (patch) | |
| tree | 631b443a255ce12154703522e21c1b6e1acdc4aa /src/editfns.c | |
| parent | 2573153f50c8451949c4333542aba5038cbbc375 (diff) | |
| download | emacs-b11f1d8a332465e124e6fdc02d445af4bc29014e.tar.gz emacs-b11f1d8a332465e124e6fdc02d445af4bc29014e.zip | |
(Fformat): Use alloca, not _alloca.
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/editfns.c b/src/editfns.c index 62bd324dfc1..6deb9b96f8a 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3212,7 +3212,7 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 3212 | string itself, will not be used. Element NARGS, corresponding to | 3212 | string itself, will not be used. Element NARGS, corresponding to |
| 3213 | no argument, *will* be assigned to in the case that a `%' and `.' | 3213 | no argument, *will* be assigned to in the case that a `%' and `.' |
| 3214 | occur after the final format specifier. */ | 3214 | occur after the final format specifier. */ |
| 3215 | int * precision = (int *) (_alloca(nargs * sizeof (int))); | 3215 | int *precision = (int *) (alloca(nargs * sizeof (int))); |
| 3216 | int longest_format; | 3216 | int longest_format; |
| 3217 | Lisp_Object val; | 3217 | Lisp_Object val; |
| 3218 | struct info | 3218 | struct info |
| @@ -3385,10 +3385,8 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 3385 | /* Note that we're using sprintf to print floats, | 3385 | /* Note that we're using sprintf to print floats, |
| 3386 | so we have to take into account what that function | 3386 | so we have to take into account what that function |
| 3387 | prints. */ | 3387 | prints. */ |
| 3388 | /* Filter out flag value of -1. This is a conditional with omitted | 3388 | /* Filter out flag value of -1. */ |
| 3389 | operand: the value is PRECISION[N] if the conditional is >=0 and | 3389 | thissize = MAX_10_EXP + 100 + ((precision[n] > 0) ? precision[n] : 0); |
| 3390 | otherwise is 0. */ | ||
| 3391 | thissize = MAX_10_EXP + 100 + ((precision[n] > 0)?precision[n]:0); | ||
| 3392 | } | 3390 | } |
| 3393 | else | 3391 | else |
| 3394 | { | 3392 | { |