Add wuffs_base__io_reader__is_eof

This commit is contained in:
Nigel Tao committed 2018-05-02 20:19:50 +10:00
1 parent 128e6c06bb
commit abe08bc6f6
9 files changed
+59 -42

No files matched your search

+1 -2
View File
@@ -23,8 +23,7 @@
template short_read(string qPKGPREFIXq, string qnameq) {
short_read_qnameq:
if (a_qnameq.private_impl.buf && a_qnameq.private_impl.buf->closed &&
!a_qnameq.private_impl.limit.ptr_to_len) {
if (wuffs_base__io_reader__is_eof(a_qnameq)) {
status = qPKGPREFIXqERROR_UNEXPECTED_EOF;
goto exit;
}