summaryrefslogtreecommitdiff
path: root/libguile/alist.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2011-10-24 17:14:27 +0200
committerAndy Wingo <wingo@pobox.com>2011-10-24 17:14:27 +0200
commit8c0e89ac9093aee52620bbdbec07936532f05f3d (patch)
tree01cf4ab8d2a3816a9d951f34f9d8b585b3824eb3 /libguile/alist.c
parent633f3a18b7c6804b75ecd8ae94cf6cf82c9bcbed (diff)
de-inline cons in scm_acons
* libguile/alist.c (scm_acons): Don't inline the conses.
Diffstat (limited to 'libguile/alist.c')
-rw-r--r--libguile/alist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libguile/alist.c b/libguile/alist.c
index fd2ccde21..799e9f10e 100644
--- a/libguile/alist.c
+++ b/libguile/alist.c
@@ -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