mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
add scm_c_public_ref et al
* libguile/modules.h: * libguile/modules.c (scm_public_lookup, scm_private_lookup) (scm_c_public_lookup, scm_c_private_lookup, scm_public_ref) (scm_private_ref, scm_c_public_ref, scm_c_private_ref) (scm_public_variable, scm_private_variable, scm_c_public_variable) (scm_c_private_variable): New helpers to get at variables and values in modules.
This commit is contained in:
parent
65ea26c582
commit
ef8e9356de
2 changed files with 138 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
#ifndef SCM_MODULES_H
|
||||
#define SCM_MODULES_H
|
||||
|
||||
/* Copyright (C) 1998, 2000, 2001, 2002, 2003, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1998, 2000, 2001, 2002, 2003, 2006, 2007, 2008, 2011 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
|
||||
|
@ -93,6 +93,21 @@ SCM_API SCM scm_module_define (SCM module, SCM symbol, SCM val);
|
|||
SCM_API SCM scm_module_export (SCM module, SCM symbol_list);
|
||||
SCM_API SCM scm_module_reverse_lookup (SCM module, SCM variable);
|
||||
|
||||
SCM_API SCM scm_public_variable (SCM module_name, SCM name);
|
||||
SCM_API SCM scm_private_variable (SCM module_name, SCM name);
|
||||
SCM_API SCM scm_c_public_variable (const char *module_name, const char *name);
|
||||
SCM_API SCM scm_c_private_variable (const char *module_name, const char *name);
|
||||
|
||||
SCM_API SCM scm_public_lookup (SCM module_name, SCM name);
|
||||
SCM_API SCM scm_private_lookup (SCM module_name, SCM name);
|
||||
SCM_API SCM scm_c_public_lookup (const char *module_name, const char *name);
|
||||
SCM_API SCM scm_c_private_lookup (const char *module_name, const char *name);
|
||||
|
||||
SCM_API SCM scm_public_ref (SCM module_name, SCM name);
|
||||
SCM_API SCM scm_private_ref (SCM module_name, SCM name);
|
||||
SCM_API SCM scm_c_public_ref (const char *module_name, const char *name);
|
||||
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_c_define_module (const char *name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue