X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/bb1c419ccbc0db9f1f4cec0c7d0602871be33018..6a9812501258df26b7c487e50744b91abe8ebe39:/Handler.mm?ds=sidebyside

diff --git a/Handler.mm b/Handler.mm
index 79528c4..4e4ccfe 100644
--- a/Handler.mm
+++ b/Handler.mm
@@ -38,6 +38,7 @@
 /* }}} */
 
 #include "cycript.hpp"
+#include "JavaScript.hpp"
 
 #include "Pooling.hpp"
 #include "Parser.hpp"
@@ -129,10 +130,11 @@ struct CYClient :
             } else {
                 NSAutoreleasePool *ar = [[NSAutoreleasePool alloc] init];
 
-                CYContext context(driver.pool_);
+                CYOptions options;
+                CYContext context(driver.pool_, options);
                 driver.program_->Replace(context);
                 std::ostringstream str;
-                CYOutput out(str);
+                CYOutput out(str, options);
                 out << *driver.program_;
                 std::string code(str.str());
                 CYExecute_ execute = {pool, code.c_str()};
@@ -173,7 +175,7 @@ extern "C" void CYHandleClient(apr_pool_t *pool, int socket) {
 }
 
 extern "C" void CYHandleServer(pid_t pid) {
-    CYInitialize();
+    CYInitializeDynamic();
 
     int socket(_syscall(::socket(PF_UNIX, SOCK_STREAM, 0))); try {
         struct sockaddr_un address;