projects
/
cycript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
75b0a45
)
Fixed a namespace scoping serialization bug (cyt instead of cyv) in array comprehensions.
author
Jay Freeman (saurik)
<saurik@saurik.com>
Mon, 19 Oct 2009 01:54:58 +0000
(
01:54
+0000)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Mon, 19 Oct 2009 01:54:58 +0000
(
01:54
+0000)
Output.cpp
patch
|
blob
|
blame
|
history
diff --git
a/Output.cpp
b/Output.cpp
index 1d4a510e36a4090751f39c34eed89bf361654634..100e25a5f88b0ea0db0595afd9fe20a542e7bbba 100644
(file)
--- a/
Output.cpp
+++ b/
Output.cpp
@@
-80,14
+80,14
@@
void CYArrayComprehension::Output(std::ostream &out, CYFlags flags) const {
if (const char *name = comprehension->Name())
out << ',' << name;
out << "){";
if (const char *name = comprehension->Name())
out << ',' << name;
out << "){";
- out << "$cy
t
=[];";
+ out << "$cy
v
=[];";
comprehensions_->Output(out);
comprehensions_->Output(out);
- out << "$cy
t
.push(";
+ out << "$cy
v
.push(";
expression_->Output(out, CYPA, CYNoFlags);
out << ");";
for (CYComprehension *comprehension(comprehensions_); comprehension != NULL; comprehension = comprehension->next_)
comprehension->End_(out);
expression_->Output(out, CYPA, CYNoFlags);
out << ");";
for (CYComprehension *comprehension(comprehensions_); comprehension != NULL; comprehension = comprehension->next_)
comprehension->End_(out);
- out << "return $cy
t
;";
+ out << "return $cy
v
;";
out << "}())";
}
out << "}())";
}