X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/09eee478cd3085633d87ddc8a7997ff3d000102e..029bc65b46de676c6733fff684000c7363eda512:/Console.cpp diff --git a/Console.cpp b/Console.cpp index 44cadc7..0ed0bfe 100644 --- a/Console.cpp +++ b/Console.cpp @@ -38,6 +38,7 @@ /* }}} */ #include "cycript.hpp" +#include "Context.hpp" #ifdef CY_EXECUTE #include "JavaScript.hpp" @@ -115,7 +116,8 @@ void Setup(CYDriver &driver, cy::parser &parser) { void Setup(CYOutput &out, CYDriver &driver) { out.pretty_ = pretty_; - CYContext context(driver.pool_); + CYOptions options; + CYContext context(driver.pool_, options); driver.program_->Replace(context); } @@ -324,7 +326,8 @@ static void Console(apr_pool_t *pool, int client) { code = command; else { std::ostringstream str; - CYOutput out(str); + CYOptions options; + CYOutput out(str, options); Setup(out, driver); out << *driver.program_; code = str.str(); @@ -606,7 +609,8 @@ int Main(int argc, char const * const argv[], char const * const envp[]) { Run(client, code, stdout); } else { std::ostringstream str; - CYOutput out(str); + CYOptions options; + CYOutput out(str, options); Setup(out, driver); out << *driver.program_; std::string code(str.str());