X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/3e6377dbb8b69d8d6d0e3e28fe5e02fd7aabe5f8..fd5cdf97150f0c0f2126d61f6e91511cc6b22936:/Output.cpp diff --git a/Output.cpp b/Output.cpp index 9b9bc72..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 {