]> git.saurik.com Git - cycript.git/blobdiff - Driver.cpp
Casting an array/string pointer shouldn't copy it.
[cycript.git] / Driver.cpp
index fef1eb124d118dfd38a9604903910b868fb8cea8..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_(NewLineNone),
+    newline_(false),
     last_(false),
-    next_(false),
     data_(data),
     debug_(0),
     strict_(false),