mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 17:01:35 +01:00
Remove the idea of limited reads and writes.
This commit is contained in:
1 parent
a12292d094
commit
d275b379a3
11 files changed
+48
-102
No files matched your search
@@ -9,14 +9,10 @@
|
||||
|
||||
template short_read(string qPKGPREFIXq, string qnameq) {
|
||||
short_read_qnameq:
|
||||
// TODO: is ptr_to_len the right check?
|
||||
if (a_qnameq.limit.ptr_to_len) {
|
||||
status = qPKGPREFIXqSUSPENSION_LIMITED_READ;
|
||||
} else if (a_qnameq.buf && a_qnameq.buf->closed) {
|
||||
if (a_qnameq.buf && a_qnameq.buf->closed && !a_qnameq.limit.ptr_to_len) {
|
||||
status = qPKGPREFIXqERROR_UNEXPECTED_EOF;
|
||||
goto exit;
|
||||
} else {
|
||||
status = qPKGPREFIXqSUSPENSION_SHORT_READ;
|
||||
}
|
||||
status = qPKGPREFIXqSUSPENSION_SHORT_READ;
|
||||
goto suspend;
|
||||
}
|
||||
Reference in new issue
Block a user