summaryrefslogtreecommitdiff
path: root/libguile/list.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2005-04-22 23:43:06 +0000
committerKevin Ryde <user42@zip.com.au>2005-04-22 23:43:06 +0000
commitfad3aaf11a4083299fca5f4d19bbd81bdff8d77a (patch)
tree882cc3b8c9d23e5cec10ac761ee80d6bb4b72697 /libguile/list.c
parent87c08ac0f7e23c36b35d227f7e994d12ef1bbea0 (diff)
downloadguile-fad3aaf11a4083299fca5f4d19bbd81bdff8d77a.tar.gz
(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.
Diffstat (limited to 'libguile/list.c')
-rw-r--r--libguile/list.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/libguile/list.c b/libguile/list.c
index 74f7f46cc..d32fff597 100644
--- a/libguile/list.c
+++ b/libguile/list.c
@@ -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.) */