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:
parent
7dd77513d4
commit
ce070307f0
@ -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.
|
||||
|
34
src/alloc.c
34
src/alloc.c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user