]> git.saurik.com Git - cycript.git/blobdiff - Driver.cpp
Casting an array/string pointer shouldn't copy it.
[cycript.git] / Driver.cpp
index df31a036935f95f033f1617fa5c83f948854a3fb..0bdd62d1ff0aa71de877623a058ab96ff7a092d2 100644 (file)
@@ -1,5 +1,5 @@
-/* Cycript - Optimizing JavaScript Compiler/Runtime
- * Copyright (C) 2009-2015  Jay Freeman (saurik)
+/* Cycript - The Truly Universal Scripting Language
+ * Copyright (C) 2009-2016  Jay Freeman (saurik)
 */
 
 /* GNU Affero General Public License, Version 3 {{{ */
 
 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);