]> git.saurik.com Git - cycript.git/blobdiff - Driver.cpp
Implement synchronous lstat: node.js binding demo.
[cycript.git] / Driver.cpp
index df31a036935f95f033f1617fa5c83f948854a3fb..031625c5dac72512cb738b939697f8c3cd5611cc 100644 (file)
 
 bool CYParser(CYPool &pool, bool debug);
 
-CYDriver::CYDriver(CYPool &pool, std::istream &data, const std::string &filename) :
+CYDriver::CYDriver(CYPool &pool, std::streambuf &data, const std::string &filename) :
     pool_(pool),
     newline_(false),
     last_(false),
-    next_(false),
     data_(data),
     debug_(0),
     strict_(false),
@@ -41,6 +40,7 @@ CYDriver::CYDriver(CYPool &pool, std::istream &data, const std::string &filename
 {
     in_.push(false);
     return_.push(false);
+    super_.push(false);
     template_.push(false);
     yield_.push(false);