diff options
Diffstat (limited to 'libguile/modules.h')
-rw-r--r-- | libguile/modules.h | 48 |
1 files changed, 21 insertions, 27 deletions
diff --git a/libguile/modules.h b/libguile/modules.h index 28df6c6ea..34edb328d 100644 --- a/libguile/modules.h +++ b/libguile/modules.h @@ -1,31 +1,29 @@ -/* classes: h_files */ - #ifndef SCM_MODULES_H #define SCM_MODULES_H -/* Copyright (C) 1998, 2000, 2001, 2002, 2003, 2006, 2007, 2008, 2011, 2012 Free Software Foundation, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 of - * the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301 USA - */ +/* Copyright 1998,2000-2003,2006-2008,2011-2012,2018 + Free Software Foundation, Inc. + + This file is part of Guile. + + Guile is free software: you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Guile is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with Guile. If not, see + <https://www.gnu.org/licenses/>. */ -#include "libguile/__scm.h" +#include "libguile/gc.h" -#include "libguile/validate.h" @@ -67,6 +65,7 @@ SCM_API scm_t_bits scm_module_tag; SCM_API SCM scm_current_module (void); +SCM_INTERNAL SCM scm_i_current_module (scm_thread *thread); SCM_API SCM scm_the_root_module (void); SCM_API SCM scm_interaction_environment (void); SCM_API SCM scm_set_current_module (SCM module); @@ -108,6 +107,7 @@ SCM_API SCM scm_c_private_ref (const char *module_name, const char *name); SCM_API SCM scm_c_resolve_module (const char *name); SCM_API SCM scm_resolve_module (SCM name); +SCM_API SCM scm_maybe_resolve_module (SCM name); SCM_API SCM scm_c_define_module (const char *name, void (*init)(void *), void *data); SCM_API void scm_c_use_module (const char *name); @@ -123,9 +123,3 @@ SCM_INTERNAL void scm_modules_prehistory (void); SCM_INTERNAL void scm_init_modules (void); #endif /* SCM_MODULES_H */ - -/* - Local Variables: - c-file-style: "gnu" - End: -*/ |