SHF_ERROR
if (shf->flags & SHF_ERROR) {
if (shf->flags & SHF_ERROR) {
shf->flags |= SHF_ERROR;
if (shf->flags & (SHF_EOF | SHF_ERROR)) {
if (shf->flags & SHF_ERROR)
shf->flags |= SHF_ERROR;
if ((shf->flags & SHF_ERROR) || c == EOF ||
if (shf->flags & SHF_ERROR) {
shf->flags |= SHF_ERROR;
shf->flags |= SHF_ERROR;
#define shf_error(shf) ((shf)->flags & SHF_ERROR)
#define shf_clearerr(shf) ((shf)->flags &= ~(SHF_EOF | SHF_ERROR))