1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

(list): Use scm_list_copy, so as to produce a fresh list when

list is called using apply, under the debugging evaluator.
(scm_list): Remove.
This commit is contained in:
Kevin Ryde 2005-04-22 23:43:06 +00:00
parent 87c08ac0f7
commit fad3aaf11a

View file

@ -98,17 +98,6 @@ scm_list_n (SCM elt, ...)
}
SCM_DEFINE (scm_list, "list", 0, 0, 1,
(SCM objs),
"Return a list containing @var{objs}, the arguments to\n"
"@code{list}.")
#define FUNC_NAME s_scm_list
{
return objs;
}
#undef FUNC_NAME
SCM_DEFINE (scm_cons_star, "cons*", 1, 0, 1,
(SCM arg, SCM rest),
"Like @code{list}, but the last arg provides the tail of the\n"
@ -554,6 +543,13 @@ SCM_DEFINE (scm_list_copy, "list-copy", 1, 0, 0,
}
#undef FUNC_NAME
SCM_PROC (s_list, "list", 0, 0, 1, scm_list_copy);
SCM_SNARF_DOCS (register, scm_list_copy, "list", (SCM objs), 0, 0, 1,
"Return a list containing @var{objs}, the arguments to\n"
"@code{list}.")
/* membership tests (memq, memv, etc.) */