X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/69688ca14305ec24bc7818ea9262ffec0a92458c..1504c9b837a7561d8ae2c81f1c4d57fe0f138781:/Handler.mm?ds=sidebyside diff --git a/Handler.mm b/Handler.mm index 9c1a8df..01c3cbc 100644 --- a/Handler.mm +++ b/Handler.mm @@ -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([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;