mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 20:30:28 +02:00
Remove scm_putc_unlocked.
* libguile/ports.h (scm_putc_unlocked): Remove. * libguile/ports.c (scm_putc): Replace implementation with scm_putc_unlocked's implementation. (scm_port_print): Use scm_putc. * libguile/arbiters.c: * libguile/arrays.c: * libguile/bitvectors.c: * libguile/bytevectors.c: * libguile/continuations.c: * libguile/dynl.c: * libguile/eval.c: * libguile/filesys.c: * libguile/fluids.c: * libguile/foreign.c: * libguile/fports.c: * libguile/frames.c: * libguile/hashtab.c: * libguile/hooks.c: * libguile/macros.c: * libguile/mallocs.c: * libguile/print.c: * libguile/programs.c: * libguile/promises.c: * libguile/r6rs-ports.c: * libguile/smob.c: * libguile/srcprop.c: * libguile/struct.c: * libguile/variable.c: * libguile/weak-set.c: * libguile/weak-table.c: Use scm_putc instead of scm_putc_unlocked.
This commit is contained in:
parent
796676028b
commit
206b3f6e03
28 changed files with 70 additions and 81 deletions
|
@ -735,15 +735,15 @@ scm_i_print_array_dimension (scm_t_array_handle *h, int dim, int pos,
|
|||
else
|
||||
{
|
||||
ssize_t i;
|
||||
scm_putc_unlocked ('(', port);
|
||||
scm_putc ('(', port);
|
||||
for (i = h->dims[dim].lbnd; i <= h->dims[dim].ubnd;
|
||||
i++, pos += h->dims[dim].inc)
|
||||
{
|
||||
scm_i_print_array_dimension (h, dim+1, pos, port, pstate);
|
||||
if (i < h->dims[dim].ubnd)
|
||||
scm_putc_unlocked (' ', port);
|
||||
scm_putc (' ', port);
|
||||
}
|
||||
scm_putc_unlocked (')', port);
|
||||
scm_putc (')', port);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
@ -760,7 +760,7 @@ scm_i_print_array (SCM array, SCM port, scm_print_state *pstate)
|
|||
|
||||
scm_array_get_handle (array, &h);
|
||||
|
||||
scm_putc_unlocked ('#', port);
|
||||
scm_putc ('#', port);
|
||||
if (SCM_I_ARRAYP (array))
|
||||
scm_intprint (h.ndims, 10, port);
|
||||
if (h.element_type != SCM_ARRAY_ELEMENT_TYPE_SCM)
|
||||
|
@ -781,12 +781,12 @@ scm_i_print_array (SCM array, SCM port, scm_print_state *pstate)
|
|||
{
|
||||
if (print_lbnds)
|
||||
{
|
||||
scm_putc_unlocked ('@', port);
|
||||
scm_putc ('@', port);
|
||||
scm_intprint (h.dims[i].lbnd, 10, port);
|
||||
}
|
||||
if (print_lens)
|
||||
{
|
||||
scm_putc_unlocked (':', port);
|
||||
scm_putc (':', port);
|
||||
scm_intprint (h.dims[i].ubnd - h.dims[i].lbnd + 1,
|
||||
10, port);
|
||||
}
|
||||
|
@ -814,9 +814,9 @@ scm_i_print_array (SCM array, SCM port, scm_print_state *pstate)
|
|||
not really the same as Scheme values since they are boxed and
|
||||
can be modified with array-set!, say.
|
||||
*/
|
||||
scm_putc_unlocked ('(', port);
|
||||
scm_putc ('(', port);
|
||||
scm_i_print_array_dimension (&h, 0, 0, port, pstate);
|
||||
scm_putc_unlocked (')', port);
|
||||
scm_putc (')', port);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue