]> git.saurik.com Git - cycript.git/blobdiff - Output.cpp
Fixed argument serialization comma bug.
[cycript.git] / Output.cpp
index 2b10d71c093c7600f9d6c0e4acf28838d1eb9bfc..647f47e0f0c34438ce3964c373d92a9a41c2fc19 100644 (file)
@@ -20,7 +20,7 @@ void CYArgument::Output(std::ostream &out, bool send) const {
     }
     if (next_ != NULL) {
         if (!send)
-            if (next_->name_ != NULL)
+            if (next_->name_ == NULL)
                 out << ',';
             else
                 out << ' ';
@@ -288,13 +288,23 @@ void CYReturn::Output(std::ostream &out) const {
 
 void CYSelector::Output(std::ostream &out) const {
     out << '"';
-    out << "<unimplemented>";
+    if (name_ != NULL)
+        name_->Output(out);
     out << '"';
 }
 
+void CYSelectorPart::Output(std::ostream &out) const {
+    if (name_ != NULL)
+        out << *name_;
+    if (value_)
+        out << ':';
+    if (next_ != NULL)
+        next_->Output(out);
+}
+
 void CYSource::Show(std::ostream &out) const {
     for (const CYSource *next(this); next != NULL; next = next->next_)
-        next->Output(out);
+        next->Output(out, false);
 }
 
 void CYSource::Output(std::ostream &out, bool block) const {