Remove the idea of limited reads and writes.

This commit is contained in:
Nigel Tao committed 2017-10-07 15:32:00 +11:00
1 parent a12292d094
commit d275b379a3
11 files changed
+48 -102

No files matched your search

+2 -6
View File
@@ -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;
}