mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 01:00:20 +02:00
Merge from mvo-vcell-cleanup-1-branch.
This commit is contained in:
parent
7c33806ae6
commit
86d31dfe7d
54 changed files with 1538 additions and 1293 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue