mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
remove evaluator-specific code from macros.c
* libguile/macros.c (macro_print): No special printing for macros whose code is an interpreted procedure.
This commit is contained in:
parent
9d019f9be0
commit
058234dd9c
1 changed files with 0 additions and 10 deletions
|
@ -75,16 +75,6 @@ macro_print (SCM macro, SCM port, scm_print_state *pstate)
|
||||||
scm_putc (' ', port);
|
scm_putc (' ', port);
|
||||||
scm_iprin1 (scm_macro_name (macro), port, pstate);
|
scm_iprin1 (scm_macro_name (macro), port, pstate);
|
||||||
|
|
||||||
if (SCM_CLOSUREP (code) && SCM_PRINT_SOURCE_P)
|
|
||||||
{
|
|
||||||
SCM formals = SCM_CLOSURE_FORMALS (code);
|
|
||||||
SCM env = SCM_ENV (code);
|
|
||||||
SCM xenv = SCM_EXTEND_ENV (formals, SCM_EOL, env);
|
|
||||||
SCM src = scm_i_unmemocopy_body (SCM_CODE (code), xenv);
|
|
||||||
scm_putc (' ', port);
|
|
||||||
scm_iprin1 (src, port, pstate);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (SCM_MACRO_IS_EXTENDED (macro))
|
if (SCM_MACRO_IS_EXTENDED (macro))
|
||||||
{
|
{
|
||||||
scm_putc (' ', port);
|
scm_putc (' ', port);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue