X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/3fe283c53edc2a98d0164d893a4a667245da8e78..47f55bc70a0eef068c8a27ca0618a11c512dbf20:/Output.cpp diff --git a/Output.cpp b/Output.cpp index 42d1854..6022514 100644 --- a/Output.cpp +++ b/Output.cpp @@ -194,19 +194,13 @@ void CYComment::Output(CYOutput &out, CYFlags flags) const { } void CYCompound::Output(CYOutput &out, CYFlags flags) const { - if (CYExpression *expression = expressions_) - if (CYExpression *next = expression->next_) { - expression->Output(out, CYLeft(flags)); - CYFlags center(CYCenter(flags)); - while (next != NULL) { - expression = next; - out << ',' << ' '; - next = expression->next_; - CYFlags right(next != NULL ? center : CYRight(flags)); - expression->Output(out, right); - } - } else - expression->Output(out, flags); + if (next_ == NULL) + expression_->Output(out, flags); + else { + expression_->Output(out, CYLeft(flags)); + out << ',' << ' '; + next_->Output(out, CYRight(flags)); + } } void CYCondition::Output(CYOutput &out, CYFlags flags) const { @@ -748,6 +742,10 @@ void Try::Output(CYOutput &out, CYFlags flags) const { } } +void CYTypeError::Output(CYOutput &out) const { + out << "@error"; +} + void CYTypeLong::Output(CYOutput &out) const { out << "long" << specifier_; }