1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00

(Fmake_list): Add a QUIT in the loop; unroll the loop.

This commit is contained in:
Gerd Moellmann 2001-01-31 12:22:58 +00:00
parent 7dd77513d4
commit ce070307f0
2 changed files with 36 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-01-31 Gerd Moellmann <gerd@gnu.org>
* alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
2001-01-31 Dave Love <fx@gnu.org>
* textprop.c (Fset_text_properties): Fix newline in doc string.

View File

@ -2142,8 +2142,38 @@ DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0,
size = XFASTINT (length);
val = Qnil;
while (size-- > 0)
val = Fcons (init, val);
while (size > 0)
{
val = Fcons (init, val);
--size;
if (size > 0)
{
val = Fcons (init, val);
--size;
if (size > 0)
{
val = Fcons (init, val);
--size;
if (size > 0)
{
val = Fcons (init, val);
--size;
if (size > 0)
{
val = Fcons (init, val);
--size;
}
}
}
}
QUIT;
}
return val;
}