]> git.saurik.com Git - cycript.git/blobdiff - Handler.mm
Universal binary!
[cycript.git] / Handler.mm
index 9c1a8dfb78c848ec4f165129fcd126671cd9900d..01c3cbcbf8dd1a58f1f8f460a5d0c45f947a95c3 100644 (file)
@@ -42,7 +42,6 @@
 
 #include "Pooling.hpp"
 #include "Parser.hpp"
-#include "Context.hpp"
 
 #include "Cycript.tab.hh"
 
@@ -75,7 +74,7 @@ struct CYExecute_ {
     CYExecute_ *execute(reinterpret_cast<CYExecute_ *>([value pointerValue]));
     const char *data(execute->data_);
     execute->data_ = NULL;
-    execute->data_ = CYExecute(execute->pool_, data);
+    execute->data_ = CYExecute(execute->pool_, CYUTF8String(data));
 }
 
 @end
@@ -118,7 +117,7 @@ struct CYClient :
                 return;
             data[size] = '\0';
 
-            CYDriver driver("");
+            CYDriver driver;
             cy::parser parser(driver);
 
             driver.data_ = data;