X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/9cad30fab188a57c3db8df0912a1691099468e64..6a9812501258df26b7c487e50744b91abe8ebe39:/Console.cpp?ds=sidebyside diff --git a/Console.cpp b/Console.cpp index 44cadc7..65eeb4f 100644 --- a/Console.cpp +++ b/Console.cpp @@ -115,7 +115,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 +325,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 +608,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());