mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 20:30:28 +02:00
scm_ungetc, scm_ungets instead of _unlocked variants
* libguile/ports.h (scm_ungetc_unlocked, scm_ungets_unlocked): Remove; replace with scm_ungetc, scm_ungets. * libguile/ports.c (scm_ungetc, scm_ungets, scm_unread_char) (scm_unread_string): Adapt. * libguile/rdelim.c (scm_read_delimited_x): Use scm_ungetc. * libguile/read.c: Unread characers with scm_ungetc, not scm_ungetc_unlocked.
This commit is contained in:
parent
21650f8d52
commit
122c8e6b37
4 changed files with 27 additions and 49 deletions
|
@ -85,7 +85,7 @@ SCM_DEFINE (scm_read_delimited_x, "%read-delimited!", 3, 3, 0,
|
|||
if (scm_i_string_ref (delims, k) == c)
|
||||
{
|
||||
if (scm_is_false (gobble))
|
||||
scm_ungetc_unlocked (c, port);
|
||||
scm_ungetc (c, port);
|
||||
|
||||
return scm_cons (SCM_MAKE_CHAR (c),
|
||||
scm_from_size_t (j - cstart));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue