mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 21:40:33 +02:00
(print_values): Print as a unreadable object, not as
multiple lines. Thanks to Matthias Köppe!
This commit is contained in:
parent
5f89fb1313
commit
9d47027ee6
1 changed files with 4 additions and 7 deletions
|
@ -61,13 +61,10 @@ print_values (SCM obj, SCM pwps)
|
||||||
SCM port = SCM_PORT_WITH_PS_PORT (pwps);
|
SCM port = SCM_PORT_WITH_PS_PORT (pwps);
|
||||||
scm_print_state *ps = SCM_PRINT_STATE (SCM_PORT_WITH_PS_PS (pwps));
|
scm_print_state *ps = SCM_PRINT_STATE (SCM_PORT_WITH_PS_PS (pwps));
|
||||||
|
|
||||||
while (SCM_CONSP (values))
|
scm_puts ("#<values ", port);
|
||||||
{
|
scm_iprin1 (values, port, ps);
|
||||||
scm_iprin1 (SCM_CAR (values), port, ps);
|
scm_puts (">", port);
|
||||||
values = SCM_CDR (values);
|
|
||||||
if (SCM_CONSP (values))
|
|
||||||
scm_newline (port);
|
|
||||||
}
|
|
||||||
return SCM_UNSPECIFIED;
|
return SCM_UNSPECIFIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue