diff options
author | Andy Wingo <wingo@pobox.com> | 2016-04-22 21:45:55 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2016-04-23 21:53:54 +0200 |
commit | cd83872df8c495f1f5a4aa304dfb9b2d99ce5b22 (patch) | |
tree | 2e0628db81a1556e050c0844618f81b06fe99c17 /libguile/ports.h | |
parent | 9632b24c4d6ee24a4672cdf0907364d26adb4bd9 (diff) | |
download | guile-cd83872df8c495f1f5a4aa304dfb9b2d99ce5b22.tar.gz |
Replace scm_getc with scm_getc_unlocked
* libguile/ports.h (scm_getc_unlocked): Remove, or rather rename to
scm_getc. This probably introduces some thread-related bugs but we'll
fix them in a different way.
* libguile/ports.c (scm_getc): Rename from scm_getc_unlocked, replacing
the locky implementation.
(scm_read_char): Use scm_getc.
* libguile/r6rs-ports.c (scm_get_string_n_x): Use scm_getc.
* libguile/rdelim.c (scm_read_delimited_x, scm_read_line): Use
scm_getc.
* libguile/read.c: Use scm_getc.
Diffstat (limited to 'libguile/ports.h')
-rw-r--r-- | libguile/ports.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libguile/ports.h b/libguile/ports.h index 4b5242ecd..23ceb2be4 100644 --- a/libguile/ports.h +++ b/libguile/ports.h @@ -300,7 +300,6 @@ SCM_API int scm_peek_byte_or_eof (SCM port); SCM_API size_t scm_c_read (SCM port, void *buffer, size_t size); SCM_API size_t scm_c_read_bytes (SCM port, SCM dst, size_t start, size_t count); SCM_API scm_t_wchar scm_getc (SCM port); -SCM_API scm_t_wchar scm_getc_unlocked (SCM port); SCM_API SCM scm_read_char (SCM port); /* Pushback. */ |