diff options
author | Andy Wingo <wingo@pobox.com> | 2011-11-08 00:36:48 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-11-08 00:55:05 +0100 |
commit | 0607ebbfcf63dc81e4bc2b10f3a8c3bc0d348c09 (patch) | |
tree | 8d7b9e0b211acf00ebcd43e57b7a860fa966ea07 /libguile/promises.c | |
parent | 4251ae2e282385be6d08b0fffab761fcc0fa93aa (diff) | |
download | guile-0607ebbfcf63dc81e4bc2b10f3a8c3bc0d348c09.tar.gz |
locking for putc, puts
* libguile/ports.c (scm_putc, scm_puts):
* libguile/ports.h (scm_putc_unlocked, scm_puts_unlocked): Separate into
_unlocked and locked variants. Change all callers to use the
_unlocked versions.
Diffstat (limited to 'libguile/promises.c')
-rw-r--r-- | libguile/promises.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/promises.c b/libguile/promises.c index 4aff15092..57a208104 100644 --- a/libguile/promises.c +++ b/libguile/promises.c @@ -88,11 +88,11 @@ static int promise_print (SCM exp, SCM port, scm_print_state *pstate) { int writingp = SCM_WRITINGP (pstate); - scm_puts ("#<promise ", port); + scm_puts_unlocked ("#<promise ", port); SCM_SET_WRITINGP (pstate, 1); scm_iprin1 (SCM_PROMISE_DATA (exp), port, pstate); SCM_SET_WRITINGP (pstate, writingp); - scm_putc ('>', port); + scm_putc_unlocked ('>', port); return !0; } |