mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
* modules.c, modules.h (scm_resolve_module): New function.
This commit is contained in:
parent
1f60d9d237
commit
90184345a0
2 changed files with 11 additions and 0 deletions
|
@ -114,6 +114,14 @@ scm_module_lookup_closure (SCM module)
|
|||
SCM_EOL);
|
||||
}
|
||||
|
||||
static SCM resolve_module;
|
||||
|
||||
SCM
|
||||
scm_resolve_module (SCM name)
|
||||
{
|
||||
return scm_apply (SCM_CDR (resolve_module), SCM_LIST1 (name), SCM_EOL);
|
||||
}
|
||||
|
||||
static SCM try_module_autoload;
|
||||
|
||||
SCM
|
||||
|
@ -139,5 +147,6 @@ scm_post_boot_init_modules ()
|
|||
make_modules_in = scm_intern0 ("make-modules-in");
|
||||
beautify_user_module_x = scm_intern0 ("beautify-user-module!");
|
||||
module_eval_closure = scm_intern0 ("module-eval-closure");
|
||||
resolve_module = scm_intern0 ("resolve-module");
|
||||
try_module_autoload = scm_intern0 ("try-module-autoload");
|
||||
}
|
||||
|
|
|
@ -48,11 +48,13 @@
|
|||
|
||||
|
||||
|
||||
extern SCM scm_the_root_module (void);
|
||||
extern SCM scm_selected_module (void);
|
||||
extern SCM scm_select_module (SCM module);
|
||||
extern SCM scm_make_module (SCM name);
|
||||
extern SCM scm_ensure_user_module (SCM name);
|
||||
extern SCM scm_module_lookup_closure (SCM module);
|
||||
extern SCM scm_resolve_module (SCM name);
|
||||
extern SCM scm_load_scheme_module (SCM name);
|
||||
extern void scm_init_modules (void);
|
||||
extern void scm_post_boot_init_modules (void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue