From 36ef49fbb4e14fa034118f3039bbabb9c08a4b72 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Fri, 22 Apr 2005 23:47:10 +0000 Subject: [PATCH] (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. --- libguile/list.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/libguile/list.c b/libguile/list.c index 026c43d49..b5554af84 100644 --- a/libguile/list.c +++ b/libguile/list.c @@ -117,17 +117,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 - - #if (SCM_DEBUG_DEPRECATED == 0) SCM_REGISTER_PROC (s_list_star, "list*", 1, 0, 1, scm_cons_star); @@ -547,6 +536,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.) */