From 69688ca14305ec24bc7818ea9262ffec0a92458c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 16 Nov 2009 12:32:28 +0000 Subject: [PATCH] Ported Objective-C bridge to match up with the latest compiler changes. --- Handler.mm | 5 +++-- ObjectiveC/Replace.mm | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Handler.mm b/Handler.mm index 40b79f8..9c1a8df 100644 --- a/Handler.mm +++ b/Handler.mm @@ -131,10 +131,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()}; diff --git a/ObjectiveC/Replace.mm b/ObjectiveC/Replace.mm index 6d40c3c..5f86ff4 100644 --- a/ObjectiveC/Replace.mm +++ b/ObjectiveC/Replace.mm @@ -127,7 +127,7 @@ CYString *CYSelectorPart::Replace(CYContext &context) { std::ostringstream str; for (const CYSelectorPart *part(this); part != NULL; part = part->next_) { if (part->name_ != NULL) - str << part->name_->Value(); + str << part->name_->Word(); if (part->value_) str << ':'; } -- 2.49.0