guile-backtrace function
[bpt/guile.git] / libguile / alist.c
index fd2ccde..82c70a0 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001, 2004, 2006, 2008, 2010 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001, 2004, 2006, 2008, 2010, 2011 Free Software Foundation, Inc.
  * 
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
@@ -40,9 +40,7 @@ SCM_DEFINE (scm_acons, "acons", 3, 0, 0,
            "function is @emph{not} destructive; @var{alist} is not modified.")
 #define FUNC_NAME s_scm_acons
 {
-  return scm_cell (SCM_UNPACK (scm_cell (SCM_UNPACK (key),
-                                        SCM_UNPACK (value))),
-                  SCM_UNPACK (alist));
+  return scm_cons (scm_cons (key, value), alist);
 }
 #undef FUNC_NAME
 
@@ -257,9 +255,9 @@ SCM_DEFINE (scm_assq_set_x, "assq-set!", 3, 0, 0,
             (SCM alist, SCM key, SCM val),
            "@deffnx {Scheme Procedure} assv-set! alist key value\n"
            "@deffnx {Scheme Procedure} assoc-set! alist key value\n"
-           "Reassociate @var{key} in @var{alist} with @var{value}: find any existing\n"
+           "Reassociate @var{key} in @var{alist} with @var{val}: find any existing\n"
            "@var{alist} entry for @var{key} and associate it with the new\n"
-           "@var{value}.  If @var{alist} does not contain an entry for @var{key},\n"
+           "@var{val}.  If @var{alist} does not contain an entry for @var{key},\n"
            "add a new one.  Return the (possibly new) alist.\n\n"
            "These functions do not attempt to verify the structure of @var{alist},\n"
            "and so may cause unusual results if passed an object that is not an\n"