summaryrefslogtreecommitdiff
path: root/libguile/hooks.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2011-11-08 00:36:48 +0100
committerAndy Wingo <wingo@pobox.com>2011-11-08 00:55:05 +0100
commit0607ebbfcf63dc81e4bc2b10f3a8c3bc0d348c09 (patch)
tree8d7b9e0b211acf00ebcd43e57b7a860fa966ea07 /libguile/hooks.c
parent4251ae2e282385be6d08b0fffab761fcc0fa93aa (diff)
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/hooks.c')
-rw-r--r--libguile/hooks.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libguile/hooks.c b/libguile/hooks.c
index 14335f879..782636e4e 100644
--- a/libguile/hooks.c
+++ b/libguile/hooks.c
@@ -134,22 +134,22 @@ static int
hook_print (SCM hook, SCM port, scm_print_state *pstate)
{
SCM ls, name;
- scm_puts ("#<hook ", port);
+ scm_puts_unlocked ("#<hook ", port);
scm_intprint (SCM_HOOK_ARITY (hook), 10, port);
- scm_putc (' ', port);
+ scm_putc_unlocked (' ', port);
scm_uintprint (SCM_UNPACK (hook), 16, port);
ls = SCM_HOOK_PROCEDURES (hook);
while (scm_is_pair (ls))
{
- scm_putc (' ', port);
+ scm_putc_unlocked (' ', port);
name = scm_procedure_name (SCM_CAR (ls));
if (scm_is_true (name))
scm_iprin1 (name, port, pstate);
else
- scm_putc ('?', port);
+ scm_putc_unlocked ('?', port);
ls = SCM_CDR (ls);
}
- scm_putc ('>', port);
+ scm_putc_unlocked ('>', port);
return 1;
}