mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-15 08:10:17 +02:00
Rename (system vm program) internal functions to remove rtl-
* module/system/vm/program.scm (program-name) (program-documentation): Rename (removing rtl-). * libguile/programs.c (scm_i_program_name): (scm_i_program_documentation): Adapt callers.
This commit is contained in:
parent
fd5621f868
commit
2e12c1a2b7
2 changed files with 12 additions and 17 deletions
|
@ -44,32 +44,31 @@ SCM_DEFINE (scm_program_code, "program-code", 1, 0, 0,
|
|||
SCM
|
||||
scm_i_program_name (SCM program)
|
||||
{
|
||||
static SCM rtl_program_name = SCM_BOOL_F;
|
||||
static SCM program_name = SCM_BOOL_F;
|
||||
|
||||
if (SCM_PRIMITIVE_P (program))
|
||||
return SCM_SUBR_NAME (program);
|
||||
|
||||
if (scm_is_false (rtl_program_name) && scm_module_system_booted_p)
|
||||
rtl_program_name =
|
||||
scm_c_private_variable ("system vm program", "rtl-program-name");
|
||||
if (scm_is_false (program_name) && scm_module_system_booted_p)
|
||||
program_name =
|
||||
scm_c_private_variable ("system vm program", "program-name");
|
||||
|
||||
return scm_call_1 (scm_variable_ref (rtl_program_name), program);
|
||||
return scm_call_1 (scm_variable_ref (program_name), program);
|
||||
}
|
||||
|
||||
SCM
|
||||
scm_i_program_documentation (SCM program)
|
||||
{
|
||||
static SCM rtl_program_documentation = SCM_BOOL_F;
|
||||
static SCM program_documentation = SCM_BOOL_F;
|
||||
|
||||
if (SCM_PRIMITIVE_P (program))
|
||||
return SCM_BOOL_F;
|
||||
|
||||
if (scm_is_false (rtl_program_documentation) && scm_module_system_booted_p)
|
||||
rtl_program_documentation =
|
||||
scm_c_private_variable ("system vm program",
|
||||
"rtl-program-documentation");
|
||||
if (scm_is_false (program_documentation) && scm_module_system_booted_p)
|
||||
program_documentation =
|
||||
scm_c_private_variable ("system vm program", "program-documentation");
|
||||
|
||||
return scm_call_1 (scm_variable_ref (rtl_program_documentation), program);
|
||||
return scm_call_1 (scm_variable_ref (program_documentation), program);
|
||||
}
|
||||
|
||||
SCM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue