comparison src/editfns.c @ 48782:b02bdb795a5c

(Fformat): Use alloca, not _alloca.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 10 Dec 2002 07:40:11 +0000
parents d17f48c1b40f
children d5680dc3113e
comparison
equal deleted inserted replaced
48781:d17f48c1b40f 48782:b02bdb795a5c
3210 /* Precision for each spec, or -1, a flag value meaning no precision 3210 /* Precision for each spec, or -1, a flag value meaning no precision
3211 was given in that spec. Element 0, corresonding to the format 3211 was given in that spec. Element 0, corresonding to the format
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
3219 { 3219 {
3220 int start, end; 3220 int start, end;
3383 } 3383 }
3384 3384
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 {
3395 /* Anything but a string, convert to a string using princ. */ 3393 /* Anything but a string, convert to a string using princ. */
3396 register Lisp_Object tem; 3394 register Lisp_Object tem;