(list): Use scm_list_copy, so as to produce a fresh list when
authorKevin Ryde <user42@zip.com.au>
Fri, 22 Apr 2005 23:43:06 +0000 (23:43 +0000)
committerKevin Ryde <user42@zip.com.au>
Fri, 22 Apr 2005 23:43:06 +0000 (23:43 +0000)
list is called using apply, under the debugging evaluator.
(scm_list): Remove.

libguile/list.c

index 74f7f46..d32fff5 100644 (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}.")
+
+
 \f
 /* membership tests (memq, memv, etc.) */