mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
* arbiters.c (prinarb),
async.c (print_async), debug.c (prindebugobj, prinmemoized), eval.c (prinprom, prinmacro), filesys.c (scm_fd_print, scm_dir_print), kw.c (print_kw), mallocs.c (prinmalloc), numbers.c, numbers.h (scm_floprint, scm_bigprint), smob.h (scm_smobfuns), srcprop.c (prinsrcprops), throw.c (prinjb), unif.c, unif.h (scm_raprin1, rapr1), variable.c (prin_var): Changed argument `int writing' to `scm_print_state *pstate'.
This commit is contained in:
parent
1940267936
commit
9882ea1991
9 changed files with 65 additions and 60 deletions
|
@ -143,17 +143,20 @@ long scm_tc16_memoized;
|
|||
|
||||
#ifdef __STDC__
|
||||
static int
|
||||
prinmemoized (SCM obj, SCM port, int writing)
|
||||
prinmemoized (SCM obj, SCM port, scm_print_state *pstate)
|
||||
#else
|
||||
static int
|
||||
prinmemoized (obj, port, writing)
|
||||
prinmemoized (obj, port, pstate)
|
||||
SCM obj;
|
||||
SCM port;
|
||||
int writing;
|
||||
scm_print_state *pstate;
|
||||
#endif
|
||||
{
|
||||
int writingp = SCM_WRITINGP (pstate);
|
||||
scm_gen_puts (scm_regular_string, "#<memoized ", port);
|
||||
scm_iprin1 (scm_unmemoize (obj), port, 1);
|
||||
SCM_SET_WRITINGP (pstate, 1);
|
||||
scm_iprin1 (scm_unmemoize (obj), port, pstate);
|
||||
SCM_SET_WRITINGP (pstate, writingp);
|
||||
scm_gen_putc ('>', port);
|
||||
return 1;
|
||||
}
|
||||
|
@ -379,11 +382,13 @@ long scm_tc16_debugobj;
|
|||
|
||||
#ifdef __STDC__
|
||||
static int
|
||||
prindebugobj (SCM obj, SCM port, int writing)
|
||||
prindebugobj (SCM obj, SCM port, scm_print_state *pstate)
|
||||
#else
|
||||
static int
|
||||
prindebugobj (writing)
|
||||
SCM obj, SCM port, int writing;
|
||||
prindebugobj (pstate)
|
||||
SCM obj;
|
||||
SCM port;
|
||||
scm_print_state *pstate;
|
||||
#endif
|
||||
{
|
||||
scm_gen_puts (scm_regular_string, "#<debug-object ", port);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue