]> git.saurik.com Git - cycript.git/blobdiff - Driver.hpp
Print the sort-of stack trace from JavaScriptCore.
[cycript.git] / Driver.hpp
index bbce9fd4ac1bee3572d3c312fa60528f00c14b93..adb03f20f612c9e864e3a677fbb9d78fed1ac4c2 100644 (file)
@@ -64,7 +64,7 @@ class _visible CYDriver {
     bool newline_;
     bool last_;
 
-    std::istream &data_;
+    std::streambuf &data_;
 
     int debug_;
     bool strict_;
@@ -120,10 +120,10 @@ class _visible CYDriver {
     void ScannerDestroy();
 
   public:
-    CYDriver(CYPool &pool, std::istream &data, const std::string &filename = "");
+    CYDriver(CYPool &pool, std::streambuf &data, const std::string &filename = "");
     ~CYDriver();
 
-    bool Parse(CYMark mark = CYMarkScript);
+    bool Parse(CYMark mark = CYMarkModule);
     void Replace(CYOptions &options);
 
     void SetRegEx(bool equal);