summaryrefslogtreecommitdiff
path: root/libguile/filesys.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2016-04-22 17:12:58 +0200
committerAndy Wingo <wingo@pobox.com>2016-04-22 17:12:58 +0200
commitfb577b59af2619edd78fea71ce6250a36376abdd (patch)
treeba5b3da01cfe0ee9adb1a467ab32b10b2c449c67 /libguile/filesys.c
parent3e951f7dfc6260da597e7677120a5f012c943bff (diff)
downloadguile-fb577b59af2619edd78fea71ce6250a36376abdd.tar.gz
Refactor to internal get/peek-byte functions
* libguile/ports.h (scm_get_byte_or_eof_unlocked) (scm_peek_byte_or_eof_unlocked): Remove inline functions. The important uses are in ports.c anyway and we will use a static function there. (scm_slow_get_byte_or_eof_unlocked) (scm_slow_peek_byte_or_eof_unlocked): Remove declarations without definitions. * libguile/ports.c (looking_at_bytes): Use scm_peek_byte_or_eof instead of the _unlocked variant. (get_byte_or_eof, peek_byte_or_eof): New static functions. (scm_get_byte_or_eof, scm_peek_byte_or_eof): Don't lock: the port buffer mechanism means that we won't crash. More comments to come. (get_utf8_codepoint, get_latin1_codepoint, get_iconv_codepoint): Use new static functions. * libguile/read.c (read_token, scm_read_semicolon_comment): Use scm_get_byte_or_eof, not scm_get_byte_or_eof_unlocked.
Diffstat (limited to 'libguile/filesys.c')
0 files changed, 0 insertions, 0 deletions