2018-06-20 19:17:06 +02:00
|
|
|
|
/* Copyright 1995-2001,2004,2006,2008,2010-2011,2018
|
2018-06-20 20:01:49 +02:00
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
|
|
|
|
This file is part of Guile.
|
|
|
|
|
|
|
|
|
|
|
|
Guile is free software: you can redistribute it and/or modify it
|
|
|
|
|
|
under the terms of the GNU Lesser General Public License as published
|
|
|
|
|
|
by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
|
|
|
|
Guile is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
|
|
|
|
|
License for more details.
|
|
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
|
License along with Guile. If not, see
|
|
|
|
|
|
<https://www.gnu.org/licenses/>. */
|
1999-12-12 02:36:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
2018-06-20 18:31:24 +02:00
|
|
|
|
|
2008-09-13 15:35:27 +02:00
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
|
|
# include <config.h>
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
2018-06-20 17:19:31 +02:00
|
|
|
|
#include "boolean.h"
|
|
|
|
|
|
#include "eq.h"
|
2018-06-20 18:31:24 +02:00
|
|
|
|
#include "gsubr.h"
|
2018-06-20 17:19:31 +02:00
|
|
|
|
#include "list.h"
|
|
|
|
|
|
#include "numbers.h"
|
2018-06-20 18:31:24 +02:00
|
|
|
|
#include "pairs.h"
|
|
|
|
|
|
|
2018-06-20 17:19:31 +02:00
|
|
|
|
#include "alist.h"
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
2018-06-20 18:31:24 +02:00
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:25:37 +00:00
|
|
|
|
SCM_DEFINE (scm_acons, "acons", 3, 0, 0,
|
2000-01-04 22:23:42 +00:00
|
|
|
|
(SCM key, SCM value, SCM alist),
|
2001-11-16 15:04:17 +00:00
|
|
|
|
"Add a new key-value pair to @var{alist}. A new pair is\n"
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"created whose car is @var{key} and whose cdr is @var{value}, and the\n"
|
|
|
|
|
|
"pair is consed onto @var{alist}, and the new list is returned. This\n"
|
|
|
|
|
|
"function is @emph{not} destructive; @var{alist} is not modified.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_acons
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
2011-10-24 17:14:27 +02:00
|
|
|
|
return scm_cons (scm_cons (key, value), alist);
|
1996-07-25 22:56:11 +00:00
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_sloppy_assq, "sloppy-assq", 2, 0, 0,
|
2000-01-04 22:23:42 +00:00
|
|
|
|
(SCM key, SCM alist),
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Behaves like @code{assq} but does not do any error checking.\n"
|
|
|
|
|
|
"Recommended only for use in Guile internals.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_sloppy_assq
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
2004-09-22 17:41:37 +00:00
|
|
|
|
for (; scm_is_pair (alist); alist = SCM_CDR (alist))
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
2000-01-08 01:09:11 +00:00
|
|
|
|
SCM tmp = SCM_CAR (alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (tmp) && scm_is_eq (SCM_CAR (tmp), key))
|
1996-10-15 21:56:27 +00:00
|
|
|
|
return tmp;
|
1996-07-25 22:56:11 +00:00
|
|
|
|
}
|
|
|
|
|
|
return SCM_BOOL_F;
|
|
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_sloppy_assv, "sloppy-assv", 2, 0, 0,
|
2000-01-04 22:23:42 +00:00
|
|
|
|
(SCM key, SCM alist),
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Behaves like @code{assv} but does not do any error checking.\n"
|
|
|
|
|
|
"Recommended only for use in Guile internals.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_sloppy_assv
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
2016-02-11 12:31:48 +01:00
|
|
|
|
/* In Guile, `assv' is the same as `assq' for keys of all types except
|
|
|
|
|
|
numbers. */
|
|
|
|
|
|
if (!SCM_NUMP (key))
|
|
|
|
|
|
return scm_sloppy_assq (key, alist);
|
|
|
|
|
|
|
2004-09-22 17:41:37 +00:00
|
|
|
|
for (; scm_is_pair (alist); alist = SCM_CDR (alist))
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
2000-01-08 01:09:11 +00:00
|
|
|
|
SCM tmp = SCM_CAR (alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (tmp)
|
2004-07-06 10:59:25 +00:00
|
|
|
|
&& scm_is_true (scm_eqv_p (SCM_CAR (tmp), key)))
|
1996-10-15 21:56:27 +00:00
|
|
|
|
return tmp;
|
1996-07-25 22:56:11 +00:00
|
|
|
|
}
|
|
|
|
|
|
return SCM_BOOL_F;
|
|
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_sloppy_assoc, "sloppy-assoc", 2, 0, 0,
|
2000-01-04 22:23:42 +00:00
|
|
|
|
(SCM key, SCM alist),
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Behaves like @code{assoc} but does not do any error checking.\n"
|
|
|
|
|
|
"Recommended only for use in Guile internals.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_sloppy_assoc
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
2016-02-11 12:31:48 +01:00
|
|
|
|
/* Immediate values can be checked using `eq?'. */
|
|
|
|
|
|
if (SCM_IMP (key))
|
|
|
|
|
|
return scm_sloppy_assq (key, alist);
|
|
|
|
|
|
|
2004-09-22 17:41:37 +00:00
|
|
|
|
for (; scm_is_pair (alist); alist = SCM_CDR (alist))
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
2000-01-08 01:09:11 +00:00
|
|
|
|
SCM tmp = SCM_CAR (alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (tmp)
|
2004-07-06 10:59:25 +00:00
|
|
|
|
&& scm_is_true (scm_equal_p (SCM_CAR (tmp), key)))
|
1996-10-15 21:56:27 +00:00
|
|
|
|
return tmp;
|
1996-07-25 22:56:11 +00:00
|
|
|
|
}
|
|
|
|
|
|
return SCM_BOOL_F;
|
|
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:25:37 +00:00
|
|
|
|
SCM_DEFINE (scm_assq, "assq", 2, 0, 0,
|
2000-01-04 22:23:42 +00:00
|
|
|
|
(SCM key, SCM alist),
|
2001-11-16 15:04:17 +00:00
|
|
|
|
"@deffnx {Scheme Procedure} assv key alist\n"
|
|
|
|
|
|
"@deffnx {Scheme Procedure} assoc key alist\n"
|
|
|
|
|
|
"Fetch the entry in @var{alist} that is associated with @var{key}. To\n"
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"decide whether the argument @var{key} matches a particular entry in\n"
|
|
|
|
|
|
"@var{alist}, @code{assq} compares keys with @code{eq?}, @code{assv}\n"
|
|
|
|
|
|
"uses @code{eqv?} and @code{assoc} uses @code{equal?}. If @var{key}\n"
|
|
|
|
|
|
"cannot be found in @var{alist} (according to whichever equality\n"
|
2001-11-16 15:04:17 +00:00
|
|
|
|
"predicate is in use), then return @code{#f}. These functions\n"
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"return the entire alist entry found (i.e. both the key and the value).")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assq
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
2000-08-13 21:05:03 +00:00
|
|
|
|
SCM ls = alist;
|
2004-09-22 17:41:37 +00:00
|
|
|
|
for(; scm_is_pair (ls); ls = SCM_CDR (ls))
|
2000-01-06 18:00:33 +00:00
|
|
|
|
{
|
2000-08-13 21:05:03 +00:00
|
|
|
|
SCM tmp = SCM_CAR (ls);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
SCM_ASSERT_TYPE (scm_is_pair (tmp), alist, SCM_ARG2, FUNC_NAME,
|
2000-08-13 21:05:03 +00:00
|
|
|
|
"association list");
|
2004-07-27 15:41:49 +00:00
|
|
|
|
if (scm_is_eq (SCM_CAR (tmp), key))
|
2000-01-08 01:09:11 +00:00
|
|
|
|
return tmp;
|
2000-01-06 18:00:33 +00:00
|
|
|
|
}
|
2002-01-22 23:31:39 +00:00
|
|
|
|
SCM_ASSERT_TYPE (SCM_NULL_OR_NIL_P (ls), alist, SCM_ARG2, FUNC_NAME,
|
2000-08-13 21:05:03 +00:00
|
|
|
|
"association list");
|
1999-12-12 02:36:16 +00:00
|
|
|
|
return SCM_BOOL_F;
|
1996-07-25 22:56:11 +00:00
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:25:37 +00:00
|
|
|
|
SCM_DEFINE (scm_assv, "assv", 2, 0, 0,
|
2000-01-04 22:23:42 +00:00
|
|
|
|
(SCM key, SCM alist),
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Behaves like @code{assq} but uses @code{eqv?} for key comparison.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assv
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
2000-08-13 21:05:03 +00:00
|
|
|
|
SCM ls = alist;
|
2016-02-11 12:31:48 +01:00
|
|
|
|
|
|
|
|
|
|
/* In Guile, `assv' is the same as `assq' for keys of all types except
|
|
|
|
|
|
numbers. */
|
|
|
|
|
|
if (!SCM_NUMP (key))
|
|
|
|
|
|
return scm_assq (key, alist);
|
|
|
|
|
|
|
2004-09-22 17:41:37 +00:00
|
|
|
|
for(; scm_is_pair (ls); ls = SCM_CDR (ls))
|
2000-01-06 18:00:33 +00:00
|
|
|
|
{
|
2000-08-13 21:05:03 +00:00
|
|
|
|
SCM tmp = SCM_CAR (ls);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
SCM_ASSERT_TYPE (scm_is_pair (tmp), alist, SCM_ARG2, FUNC_NAME,
|
2000-08-13 21:05:03 +00:00
|
|
|
|
"association list");
|
2004-07-06 10:59:25 +00:00
|
|
|
|
if (scm_is_true (scm_eqv_p (SCM_CAR (tmp), key)))
|
2000-01-08 01:09:11 +00:00
|
|
|
|
return tmp;
|
2000-01-06 18:00:33 +00:00
|
|
|
|
}
|
2002-01-22 23:31:39 +00:00
|
|
|
|
SCM_ASSERT_TYPE (SCM_NULL_OR_NIL_P (ls), alist, SCM_ARG2, FUNC_NAME,
|
2000-08-13 21:05:03 +00:00
|
|
|
|
"association list");
|
1996-07-25 22:56:11 +00:00
|
|
|
|
return SCM_BOOL_F;
|
|
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:25:37 +00:00
|
|
|
|
SCM_DEFINE (scm_assoc, "assoc", 2, 0, 0,
|
2000-01-04 22:23:42 +00:00
|
|
|
|
(SCM key, SCM alist),
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Behaves like @code{assq} but uses @code{equal?} for key comparison.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assoc
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
2000-08-13 21:05:03 +00:00
|
|
|
|
SCM ls = alist;
|
2016-02-11 12:31:48 +01:00
|
|
|
|
|
|
|
|
|
|
/* Immediate values can be checked using `eq?'. */
|
|
|
|
|
|
if (SCM_IMP (key))
|
|
|
|
|
|
return scm_assq (key, alist);
|
|
|
|
|
|
|
2004-09-22 17:41:37 +00:00
|
|
|
|
for(; scm_is_pair (ls); ls = SCM_CDR (ls))
|
2000-01-06 18:00:33 +00:00
|
|
|
|
{
|
2000-08-13 21:05:03 +00:00
|
|
|
|
SCM tmp = SCM_CAR (ls);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
SCM_ASSERT_TYPE (scm_is_pair (tmp), alist, SCM_ARG2, FUNC_NAME,
|
2000-08-13 21:05:03 +00:00
|
|
|
|
"association list");
|
2004-07-06 10:59:25 +00:00
|
|
|
|
if (scm_is_true (scm_equal_p (SCM_CAR (tmp), key)))
|
2000-01-08 01:09:11 +00:00
|
|
|
|
return tmp;
|
2000-01-06 18:00:33 +00:00
|
|
|
|
}
|
2002-01-22 23:31:39 +00:00
|
|
|
|
SCM_ASSERT_TYPE (SCM_NULL_OR_NIL_P (ls), alist, SCM_ARG2, FUNC_NAME,
|
2000-08-13 21:05:03 +00:00
|
|
|
|
"association list");
|
1999-12-12 02:36:16 +00:00
|
|
|
|
return SCM_BOOL_F;
|
1996-07-25 22:56:11 +00:00
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-10-25 11:01:03 +00:00
|
|
|
|
/* Dirk:API2.0:: We should not return #f if the key was not found. In the
|
|
|
|
|
|
* current solution we can not distinguish between finding a (key . #f) pair
|
|
|
|
|
|
* and not finding the key at all.
|
|
|
|
|
|
*
|
|
|
|
|
|
* Possible alternative solutions:
|
|
|
|
|
|
* 1) Remove assq-ref from the API: assq is sufficient.
|
|
|
|
|
|
* 2) Signal an error (what error type?) if the key is not found.
|
|
|
|
|
|
* 3) provide an additional 'default' parameter.
|
|
|
|
|
|
* 3.1) The default parameter is mandatory.
|
|
|
|
|
|
* 3.2) The default parameter is optional, but if no default is given and
|
|
|
|
|
|
* the key is not found, signal an error (what error type?).
|
|
|
|
|
|
*/
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_assq_ref, "assq-ref", 2, 0, 0,
|
1999-12-12 02:36:16 +00:00
|
|
|
|
(SCM alist, SCM key),
|
2001-11-16 15:04:17 +00:00
|
|
|
|
"@deffnx {Scheme Procedure} assv-ref alist key\n"
|
|
|
|
|
|
"@deffnx {Scheme Procedure} assoc-ref alist key\n"
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Like @code{assq}, @code{assv} and @code{assoc}, except that only the\n"
|
|
|
|
|
|
"value associated with @var{key} in @var{alist} is returned. These\n"
|
|
|
|
|
|
"functions are equivalent to\n\n"
|
|
|
|
|
|
"@lisp\n"
|
|
|
|
|
|
"(let ((ent (@var{associator} @var{key} @var{alist})))\n"
|
|
|
|
|
|
" (and ent (cdr ent)))\n"
|
|
|
|
|
|
"@end lisp\n\n"
|
|
|
|
|
|
"where @var{associator} is one of @code{assq}, @code{assv} or @code{assoc}.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assq_ref
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
SCM handle;
|
|
|
|
|
|
|
|
|
|
|
|
handle = scm_sloppy_assq (key, alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (handle))
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
return SCM_CDR (handle);
|
|
|
|
|
|
}
|
|
|
|
|
|
return SCM_BOOL_F;
|
|
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_assv_ref, "assv-ref", 2, 0, 0,
|
1999-12-12 02:36:16 +00:00
|
|
|
|
(SCM alist, SCM key),
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Behaves like @code{assq-ref} but uses @code{eqv?} for key comparison.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assv_ref
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
SCM handle;
|
|
|
|
|
|
|
|
|
|
|
|
handle = scm_sloppy_assv (key, alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (handle))
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
return SCM_CDR (handle);
|
|
|
|
|
|
}
|
|
|
|
|
|
return SCM_BOOL_F;
|
|
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_assoc_ref, "assoc-ref", 2, 0, 0,
|
1999-12-12 02:36:16 +00:00
|
|
|
|
(SCM alist, SCM key),
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Behaves like @code{assq-ref} but uses @code{equal?} for key comparison.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assoc_ref
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
SCM handle;
|
|
|
|
|
|
|
|
|
|
|
|
handle = scm_sloppy_assoc (key, alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (handle))
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
return SCM_CDR (handle);
|
|
|
|
|
|
}
|
|
|
|
|
|
return SCM_BOOL_F;
|
|
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_assq_set_x, "assq-set!", 3, 0, 0,
|
1999-12-12 02:36:16 +00:00
|
|
|
|
(SCM alist, SCM key, SCM val),
|
2001-11-16 15:04:17 +00:00
|
|
|
|
"@deffnx {Scheme Procedure} assv-set! alist key value\n"
|
|
|
|
|
|
"@deffnx {Scheme Procedure} assoc-set! alist key value\n"
|
2012-01-11 23:33:01 -05:00
|
|
|
|
"Reassociate @var{key} in @var{alist} with @var{val}: find any existing\n"
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"@var{alist} entry for @var{key} and associate it with the new\n"
|
2012-01-11 23:33:01 -05:00
|
|
|
|
"@var{val}. If @var{alist} does not contain an entry for @var{key},\n"
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"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"
|
|
|
|
|
|
"association list.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assq_set_x
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
SCM handle;
|
|
|
|
|
|
|
|
|
|
|
|
handle = scm_sloppy_assq (key, alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (handle))
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
Attempt to mutate residualized literal pair throws exception
* libguile/validate.h (SCM_VALIDATE_MUTABLE_PAIR):
* libguile/pairs.h (scm_is_mutable_pair): New internal definitions.
* libguile/pairs.c (scm_set_car_x, scm_set_cdr_x): Validate mutable
pairs.
* libguile/alist.c (scm_assq_set_x, scm_assv_set_x, scm_assoc_set_x):
* libguile/list.c (scm_reverse_x, scm_list_set_x, scm_list_cdr_set_x):
* libguile/srcprop.c (scm_make_srcprops):
* libguile/srfi-1.c (scm_srfi1_append_reverse_x)
(scm_srfi1_delete_duplicates_x):
* libguile/symbols.c (scm_symbol_fset_x, scm_symbol_pset_x):
* libguile/sort.c (scm_merge_list_x): Use scm_set_car_x / scm_set_cdr_x
instead of the macros, so as to check for mutable pairs.
(SCM_VALIDATE_MUTABLE_LIST): New internal helper macro.
(scm_sort_x, scm_stable_sort_x, scm_sort_list_x): Use
SCM_VALIDATE_MUTABLE_LIST.
* libguile/vm-engine.c (VM_VALIDATE_MUTABLE_PAIR): New definition.
(set-car!, set-cdr!): Use VM_VALIDATE_MUTABLE_PAIR. Fix error message
for set-cdr!.
2017-04-17 11:26:17 +02:00
|
|
|
|
scm_set_cdr_x (handle, val);
|
1996-07-25 22:56:11 +00:00
|
|
|
|
return alist;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
return scm_acons (key, val, alist);
|
|
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_assv_set_x, "assv-set!", 3, 0, 0,
|
1999-12-12 02:36:16 +00:00
|
|
|
|
(SCM alist, SCM key, SCM val),
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Behaves like @code{assq-set!} but uses @code{eqv?} for key comparison.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assv_set_x
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
SCM handle;
|
|
|
|
|
|
|
|
|
|
|
|
handle = scm_sloppy_assv (key, alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (handle))
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
Attempt to mutate residualized literal pair throws exception
* libguile/validate.h (SCM_VALIDATE_MUTABLE_PAIR):
* libguile/pairs.h (scm_is_mutable_pair): New internal definitions.
* libguile/pairs.c (scm_set_car_x, scm_set_cdr_x): Validate mutable
pairs.
* libguile/alist.c (scm_assq_set_x, scm_assv_set_x, scm_assoc_set_x):
* libguile/list.c (scm_reverse_x, scm_list_set_x, scm_list_cdr_set_x):
* libguile/srcprop.c (scm_make_srcprops):
* libguile/srfi-1.c (scm_srfi1_append_reverse_x)
(scm_srfi1_delete_duplicates_x):
* libguile/symbols.c (scm_symbol_fset_x, scm_symbol_pset_x):
* libguile/sort.c (scm_merge_list_x): Use scm_set_car_x / scm_set_cdr_x
instead of the macros, so as to check for mutable pairs.
(SCM_VALIDATE_MUTABLE_LIST): New internal helper macro.
(scm_sort_x, scm_stable_sort_x, scm_sort_list_x): Use
SCM_VALIDATE_MUTABLE_LIST.
* libguile/vm-engine.c (VM_VALIDATE_MUTABLE_PAIR): New definition.
(set-car!, set-cdr!): Use VM_VALIDATE_MUTABLE_PAIR. Fix error message
for set-cdr!.
2017-04-17 11:26:17 +02:00
|
|
|
|
scm_set_cdr_x (handle, val);
|
1996-07-25 22:56:11 +00:00
|
|
|
|
return alist;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
return scm_acons (key, val, alist);
|
|
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_assoc_set_x, "assoc-set!", 3, 0, 0,
|
1999-12-12 02:36:16 +00:00
|
|
|
|
(SCM alist, SCM key, SCM val),
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Behaves like @code{assq-set!} but uses @code{equal?} for key comparison.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assoc_set_x
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
SCM handle;
|
|
|
|
|
|
|
|
|
|
|
|
handle = scm_sloppy_assoc (key, alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (handle))
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
Attempt to mutate residualized literal pair throws exception
* libguile/validate.h (SCM_VALIDATE_MUTABLE_PAIR):
* libguile/pairs.h (scm_is_mutable_pair): New internal definitions.
* libguile/pairs.c (scm_set_car_x, scm_set_cdr_x): Validate mutable
pairs.
* libguile/alist.c (scm_assq_set_x, scm_assv_set_x, scm_assoc_set_x):
* libguile/list.c (scm_reverse_x, scm_list_set_x, scm_list_cdr_set_x):
* libguile/srcprop.c (scm_make_srcprops):
* libguile/srfi-1.c (scm_srfi1_append_reverse_x)
(scm_srfi1_delete_duplicates_x):
* libguile/symbols.c (scm_symbol_fset_x, scm_symbol_pset_x):
* libguile/sort.c (scm_merge_list_x): Use scm_set_car_x / scm_set_cdr_x
instead of the macros, so as to check for mutable pairs.
(SCM_VALIDATE_MUTABLE_LIST): New internal helper macro.
(scm_sort_x, scm_stable_sort_x, scm_sort_list_x): Use
SCM_VALIDATE_MUTABLE_LIST.
* libguile/vm-engine.c (VM_VALIDATE_MUTABLE_PAIR): New definition.
(set-car!, set-cdr!): Use VM_VALIDATE_MUTABLE_PAIR. Fix error message
for set-cdr!.
2017-04-17 11:26:17 +02:00
|
|
|
|
scm_set_cdr_x (handle, val);
|
1996-07-25 22:56:11 +00:00
|
|
|
|
return alist;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
return scm_acons (key, val, alist);
|
|
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_assq_remove_x, "assq-remove!", 2, 0, 0,
|
1999-12-12 02:36:16 +00:00
|
|
|
|
(SCM alist, SCM key),
|
2001-11-16 15:04:17 +00:00
|
|
|
|
"@deffnx {Scheme Procedure} assv-remove! alist key\n"
|
|
|
|
|
|
"@deffnx {Scheme Procedure} assoc-remove! alist key\n"
|
2000-07-25 19:06:22 +00:00
|
|
|
|
"Delete the first entry in @var{alist} associated with @var{key}, and return\n"
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"the resulting alist.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assq_remove_x
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
SCM handle;
|
|
|
|
|
|
|
|
|
|
|
|
handle = scm_sloppy_assq (key, alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (handle))
|
2000-07-30 13:40:46 +00:00
|
|
|
|
alist = scm_delq1_x (handle, alist);
|
2000-07-25 19:06:22 +00:00
|
|
|
|
|
2000-07-23 11:50:05 +00:00
|
|
|
|
return alist;
|
1996-07-25 22:56:11 +00:00
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_assv_remove_x, "assv-remove!", 2, 0, 0,
|
1999-12-12 02:36:16 +00:00
|
|
|
|
(SCM alist, SCM key),
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Behaves like @code{assq-remove!} but uses @code{eqv?} for key comparison.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assv_remove_x
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
SCM handle;
|
|
|
|
|
|
|
|
|
|
|
|
handle = scm_sloppy_assv (key, alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (handle))
|
2000-07-30 13:40:46 +00:00
|
|
|
|
alist = scm_delq1_x (handle, alist);
|
2000-07-25 19:06:22 +00:00
|
|
|
|
|
2000-07-23 11:50:05 +00:00
|
|
|
|
return alist;
|
1996-07-25 22:56:11 +00:00
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2000-01-05 19:05:23 +00:00
|
|
|
|
SCM_DEFINE (scm_assoc_remove_x, "assoc-remove!", 2, 0, 0,
|
1999-12-12 02:36:16 +00:00
|
|
|
|
(SCM alist, SCM key),
|
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
|
|
|
|
"Behaves like @code{assq-remove!} but uses @code{equal?} for key comparison.")
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#define FUNC_NAME s_scm_assoc_remove_x
|
1996-07-25 22:56:11 +00:00
|
|
|
|
{
|
|
|
|
|
|
SCM handle;
|
|
|
|
|
|
|
|
|
|
|
|
handle = scm_sloppy_assoc (key, alist);
|
2004-09-22 17:41:37 +00:00
|
|
|
|
if (scm_is_pair (handle))
|
2000-07-30 13:40:46 +00:00
|
|
|
|
alist = scm_delq1_x (handle, alist);
|
2000-07-25 19:06:22 +00:00
|
|
|
|
|
2000-07-23 11:50:05 +00:00
|
|
|
|
return alist;
|
1996-07-25 22:56:11 +00:00
|
|
|
|
}
|
1999-12-12 02:36:16 +00:00
|
|
|
|
#undef FUNC_NAME
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* __scm.h, alist.c, alist.h, append.c, append.h, appinit.c,
arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h,
chars.c, chars.h, continuations.c, continuations.h, debug.c,
debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c,
eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c,
filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c,
gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h,
hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h,
kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c,
markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h,
objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h,
root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c,
simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h,
stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h,
strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h,
struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c,
unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c,
version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to
declare functions with prototypes. (Patch thanks to Marius
Vollmer.)
1996-10-14 01:33:50 +00:00
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
|
void
|
|
|
|
|
|
scm_init_alist ()
|
|
|
|
|
|
{
|
2018-06-20 17:19:31 +02:00
|
|
|
|
#include "alist.x"
|
1996-07-25 22:56:11 +00:00
|
|
|
|
}
|
|
|
|
|
|
|