summaryrefslogtreecommitdiff
path: root/libguile/objects.c
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2005-01-02 20:49:04 +0000
committerMarius Vollmer <mvo@zagadka.de>2005-01-02 20:49:04 +0000
commit4057a3e05afde62a4a5039668d129411958f330a (patch)
treef7240b20d7c05a0a944bfe7e2672ca9dd66f3cc8 /libguile/objects.c
parentf60539dba44057dbcf6179f30d4f03f44c46f0b6 (diff)
downloadguile-4057a3e05afde62a4a5039668d129411958f330a.tar.gz
Use new vector elements API or simple vector API, as appropriate.
Removed SCM_HAVE_ARRAYS ifdefery. Replaced all uses of SCM_HASHTABLE_BUCKETS with SCM_HASHTABLE_BUCKET.
Diffstat (limited to 'libguile/objects.c')
-rw-r--r--libguile/objects.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libguile/objects.c b/libguile/objects.c
index 060ebb0b3..279340131 100644
--- a/libguile/objects.c
+++ b/libguile/objects.c
@@ -229,12 +229,12 @@ scm_mcache_lookup_cmethod (SCM cache, SCM args)
n = scm_to_ulong (SCM_CAR (z)); /* maximum number of specializers */
methods = SCM_CADR (z);
- if (SCM_VECTORP (methods))
+ if (scm_is_simple_vector (methods))
{
/* cache format #1: prepare for linear search */
mask = -1;
i = 0;
- end = SCM_VECTOR_LENGTH (methods);
+ end = SCM_SIMPLE_VECTOR_LENGTH (methods);
}
else
{
@@ -262,7 +262,7 @@ scm_mcache_lookup_cmethod (SCM cache, SCM args)
do
{
long j = n;
- z = SCM_VELTS (methods)[i];
+ z = SCM_SIMPLE_VECTOR_REF (methods, i);
ls = args; /* list of arguments */
if (!scm_is_null (ls))
do