]> git.saurik.com Git - cycript.git/blobdiff - Library.cpp
Started working on variable name replacement strategies and generally improved compiler.
[cycript.git] / Library.cpp
index 8068e821bae4f8b2b3aa7a339c1459e93f60c9a0..610e11b97868bf3b95ed7fa94c0176da57e07bcb 100644 (file)
@@ -43,6 +43,7 @@
 #include "cycript.hpp"
 
 #include "Pooling.hpp"
 #include "cycript.hpp"
 
 #include "Pooling.hpp"
+#include "Context.hpp"
 
 #include <sys/mman.h>
 
 
 #include <sys/mman.h>
 
@@ -251,10 +252,11 @@ extern "C" void CydgetPoolParse(apr_pool_t *pool, const uint16_t **data, size_t
     if (parser.parse() != 0 || !driver.errors_.empty())
         return;
 
     if (parser.parse() != 0 || !driver.errors_.empty())
         return;
 
-    CYContext context(driver.pool_);
+    CYOptions options;
+    CYContext context(driver.pool_, options);
     driver.program_->Replace(context);
     std::ostringstream str;
     driver.program_->Replace(context);
     std::ostringstream str;
-    CYOutput out(str);
+    CYOutput out(str, options);
     out << *driver.program_;
     std::string code(str.str());
 
     out << *driver.program_;
     std::string code(str.str());