diff options
author | Mikael Djurfeldt <djurfeldt@nada.kth.se> | 1996-09-22 22:41:10 +0000 |
---|---|---|
committer | Mikael Djurfeldt <djurfeldt@nada.kth.se> | 1996-09-22 22:41:10 +0000 |
commit | 19402679360bfd4d2cd1b87d78bbc5687d03f92b (patch) | |
tree | 1bef6dfdc7f76e2e3ec430810be7c3bcf5f13722 /libguile/srcprop.c | |
parent | 2c36c351d0b9598a6a89218b983614257387ae11 (diff) | |
download | guile-19402679360bfd4d2cd1b87d78bbc5687d03f92b.tar.gz |
* eval.c, numbers.h, unif.h, smob.h, srcprop.c: Added #include
"print.h"
* 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'.
Diffstat (limited to 'libguile/srcprop.c')
-rw-r--r-- | libguile/srcprop.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libguile/srcprop.c b/libguile/srcprop.c index d577738ad..e2c7af9b1 100644 --- a/libguile/srcprop.c +++ b/libguile/srcprop.c @@ -51,6 +51,7 @@ #include "hashtab.h" #include "hash.h" #include "weaks.h" +#include "print.h" #include "srcprop.h" @@ -108,17 +109,20 @@ freesrcprops (obj) #ifdef __STDC__ static int -prinsrcprops (SCM obj, SCM port, int writing) +prinsrcprops (SCM obj, SCM port, scm_print_state *pstate) #else static int -prinsrcprops (obj, port, writing) +prinsrcprops (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, "#<srcprops ", port); - scm_iprin1 (scm_srcprops_to_plist (obj), port, 1); + SCM_SET_WRITINGP (pstate, 1); + scm_iprin1 (scm_srcprops_to_plist (obj), port, pstate); + SCM_SET_WRITINGP (pstate, writingp); scm_gen_putc ('>', port); return 1; } |