mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 23:50:19 +02:00
remove some deprecated things, undeprecate scm_the_root_module()
* libguile/deprecated.h * libguile/deprecated.c (SCM_ILOC00, SCM_IDINC, SCM_IDSTMSK) (scm_s_expression, scm_s_test, scm_s_body, scm_s_bindings) (scm_s_variable, scm_s_clauses, scm_s_formals, SCM_EVALIM2) (SCM_EVALIM, SCM_XEVAL, SCM_XEVALCAR): Remove these macros and constants, deprecated in 2003. (scm_the_root_module): Undeprecate, it's actually a useful function, that other parts of the code use. * libguile/modules.h (scm_the_root_module): Undeprecated. * libguile/modules.c (scm_the_root_module): Rename from the_root_module. Use it in the rest of this file.
This commit is contained in:
parent
1963682290
commit
f39fc3b38c
4 changed files with 6 additions and 62 deletions
|
@ -70,17 +70,6 @@ char *scm_isymnames[] =
|
|||
};
|
||||
|
||||
|
||||
/* From eval.c: Error messages of the evaluator. These were deprecated in
|
||||
* guile 1.7.0 on 2003-06-02. */
|
||||
const char scm_s_expression[] = "missing or extra expression";
|
||||
const char scm_s_test[] = "bad test";
|
||||
const char scm_s_body[] = "bad body";
|
||||
const char scm_s_bindings[] = "bad bindings";
|
||||
const char scm_s_variable[] = "bad variable";
|
||||
const char scm_s_clauses[] = "bad or missing clauses";
|
||||
const char scm_s_formals[] = "bad formals";
|
||||
|
||||
|
||||
SCM_REGISTER_PROC(s_substring_move_left_x, "substring-move-left!", 5, 0, 0, scm_substring_move_x);
|
||||
|
||||
SCM_REGISTER_PROC(s_substring_move_right_x, "substring-move-right!", 5, 0, 0, scm_substring_move_x);
|
||||
|
@ -271,17 +260,6 @@ init_module_stuff ()
|
|||
}
|
||||
}
|
||||
|
||||
SCM
|
||||
scm_the_root_module ()
|
||||
{
|
||||
init_module_stuff ();
|
||||
scm_c_issue_deprecation_warning ("`scm_the_root_module' is deprecated. "
|
||||
"Use `scm_c_resolve_module (\"guile\")' "
|
||||
"instead.");
|
||||
|
||||
return scm_c_resolve_module ("guile");
|
||||
}
|
||||
|
||||
static SCM
|
||||
scm_module_full_name (SCM name)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue