summaryrefslogtreecommitdiff
path: root/libguile/gh_data.c
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2001-05-15 14:57:22 +0000
committerMarius Vollmer <mvo@zagadka.de>2001-05-15 14:57:22 +0000
commit86d31dfe7d0754b863863f6544c75097ef68fe8c (patch)
tree0f78f9d3ace802b80422dcedea25098cf901d05a /libguile/gh_data.c
parent7c33806ae676601f902dbdc0f39c1f0828d68951 (diff)
downloadguile-86d31dfe7d0754b863863f6544c75097ef68fe8c.tar.gz
Merge from mvo-vcell-cleanup-1-branch.
Diffstat (limited to 'libguile/gh_data.c')
-rw-r--r--libguile/gh_data.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libguile/gh_data.c b/libguile/gh_data.c
index 0ee8896a9..368b223f5 100644
--- a/libguile/gh_data.c
+++ b/libguile/gh_data.c
@@ -708,14 +708,14 @@ SCM
gh_module_lookup (SCM module, const char *sname)
#define FUNC_NAME "gh_module_lookup"
{
- SCM sym, cell;
+ SCM sym, var;
SCM_VALIDATE_MODULE (SCM_ARG1, module);
sym = gh_symbol2scm (sname);
- cell = scm_sym2vcell (sym, scm_module_lookup_closure (module), SCM_BOOL_F);
- if (cell != SCM_BOOL_F)
- return SCM_CDR (cell);
+ var = scm_sym2var (sym, scm_module_lookup_closure (module), SCM_BOOL_F);
+ if (var != SCM_BOOL_F)
+ return SCM_VARIABLE_REF (var);
else
return SCM_UNDEFINED;
}