diff options
author | Dirk Herrmann <dirk@dirk-herrmanns-seiten.de> | 2001-03-30 15:03:23 +0000 |
---|---|---|
committer | Dirk Herrmann <dirk@dirk-herrmanns-seiten.de> | 2001-03-30 15:03:23 +0000 |
commit | 22a52da14dd86801cc3a36837601929effde1904 (patch) | |
tree | 3742d5d516018e6fcf53ace4d6f68762e285891c /libguile/debug.c | |
parent | 8715ff170378801396575750c54f32fba3a0b624 (diff) | |
download | guile-22a52da14dd86801cc3a36837601929effde1904.tar.gz |
* Replaced a lot of calls to SCM_C[AD]R with more appropriate macros.
* Minor cleanups to hashtable implementation.
* Minor code beautifications.
Diffstat (limited to 'libguile/debug.c')
-rw-r--r-- | libguile/debug.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libguile/debug.c b/libguile/debug.c index 7c1cf8bc4..3b4f77fa9 100644 --- a/libguile/debug.c +++ b/libguile/debug.c @@ -504,11 +504,10 @@ SCM_REGISTER_PROC (s_reverse_lookup, "reverse-lookup", 2, 0, 0, scm_reverse_look SCM scm_reverse_lookup (SCM env, SCM data) { - SCM names, values; - while (SCM_NIMP (env) && SCM_SLOPPY_CONSP (SCM_CAR (env))) + while (SCM_CONSP (env) && SCM_CONSP (SCM_CAR (env))) { - names = SCM_CAAR (env); - values = SCM_CDAR (env); + SCM names = SCM_CAAR (env); + SCM values = SCM_CDAR (env); while (SCM_CONSP (names)) { if (SCM_EQ_P (SCM_CAR (values), data)) @@ -516,7 +515,7 @@ scm_reverse_lookup (SCM env, SCM data) names = SCM_CDR (names); values = SCM_CDR (values); } - if (! SCM_NULLP (names) && SCM_EQ_P (values, data)) + if (!SCM_NULLP (names) && SCM_EQ_P (values, data)) return names; env = SCM_CDR (env); } |