mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 13:30:26 +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_print_state *ps = SCM_PRINT_STATE (SCM_PORT_WITH_PS_PS (pwps));
|
||||
|
||||
while (SCM_CONSP (values))
|
||||
{
|
||||
scm_iprin1 (SCM_CAR (values), port, ps);
|
||||
values = SCM_CDR (values);
|
||||
if (SCM_CONSP (values))
|
||||
scm_newline (port);
|
||||
}
|
||||
scm_puts ("#<values ", port);
|
||||
scm_iprin1 (values, port, ps);
|
||||
scm_puts (">", port);
|
||||
|
||||
return SCM_UNSPECIFIED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue