From: Jay Freeman (saurik) Date: Mon, 16 Nov 2009 12:32:28 +0000 (+0000) Subject: Ported Objective-C bridge to match up with the latest compiler changes. X-Git-Tag: v0.9.432~161 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/69688ca14305ec24bc7818ea9262ffec0a92458c Ported Objective-C bridge to match up with the latest compiler changes. --- 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 << ':'; }