summaryrefslogtreecommitdiff
path: root/libguile/procprop.c
diff options
context:
space:
mode:
authorDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2001-04-19 14:46:01 +0000
committerDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2001-04-19 14:46:01 +0000
commit726d810a75c140442032ddb1daa6422a104e272f (patch)
tree063679caa69ab538ad6624bdada60759f999700f /libguile/procprop.c
parente038c04203e77522ba59c8181df4601ed15621a1 (diff)
downloadguile-726d810a75c140442032ddb1daa6422a104e272f.tar.gz
* Fixed scm_thunk_p's results when applied to closures.
* Extracted macro printing code from print.c to macros.c. * Minor cleanups.
Diffstat (limited to 'libguile/procprop.c')
-rw-r--r--libguile/procprop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libguile/procprop.c b/libguile/procprop.c
index bcd80c25a..7bfc96b3a 100644
--- a/libguile/procprop.c
+++ b/libguile/procprop.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995,1996,1998, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1998,2000,2001 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -128,15 +128,15 @@ scm_i_procedure_arity (SCM proc)
proc = SCM_PROCEDURE (proc);
goto loop;
case scm_tcs_closures:
- proc = SCM_CAR (SCM_CODE (proc));
- if (SCM_IMP (proc))
+ proc = SCM_CLOSURE_FORMALS (proc);
+ if (SCM_NULLP (proc))
break;
while (SCM_CONSP (proc))
{
++a;
proc = SCM_CDR (proc);
}
- if (SCM_NIMP (proc))
+ if (!SCM_NULLP (proc))
r = 1;
break;
case scm_tcs_cons_gloc: