Add --autoflush option

This commit is contained in:
Wilson Snyder
2008-07-16 14:06:08 -04:00
parent f0a06182ca
commit 4591f35b7c
11 changed files with 82 additions and 9 deletions
+4 -2
View File
@@ -586,8 +586,10 @@ private:
widthCheck(nodep,"file_descriptor (see docs)",nodep->filep(),64,64);
}
virtual void visit(AstFFlush* nodep, AstNUser*) {
nodep->filep()->iterateAndNext(*this,WidthVP(64,64,BOTH).p());
widthCheck(nodep,"file_descriptor (see docs)",nodep->filep(),64,64);
if (nodep->filep()) {
nodep->filep()->iterateAndNext(*this,WidthVP(64,64,BOTH).p());
widthCheck(nodep,"file_descriptor (see docs)",nodep->filep(),64,64);
}
}
virtual void visit(AstFGetC* nodep, AstNUser* vup) {
nodep->filep()->iterateAndNext(*this,WidthVP(64,64,BOTH).p());