mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 01:00:20 +02:00
* modules.c (module_variable): Fixed (and thus simplified) the
definition of SCM_BOUND_THING_P to reflect the fact that since after the 1.4 series of guile, obarrays only hold variable objects.
This commit is contained in:
parent
2297981dde
commit
2d0b85acf8
2 changed files with 8 additions and 2 deletions
|
@ -277,8 +277,7 @@ static SCM
|
|||
module_variable (SCM module, SCM sym)
|
||||
{
|
||||
#define SCM_BOUND_THING_P(b) \
|
||||
(!SCM_FALSEP(b) && \
|
||||
(!SCM_VARIABLEP(b) || !SCM_UNBNDP (SCM_VARIABLE_REF (b))))
|
||||
(SCM_VARIABLEP (b) && !SCM_UNBNDP (SCM_VARIABLE_REF (b)))
|
||||
|
||||
/* 1. Check module obarray */
|
||||
SCM b = scm_hashq_ref (SCM_MODULE_OBARRAY (module), sym, SCM_UNDEFINED);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue