diff --git a/src/wcc.cpp b/src/wcc.cpp index 570b5f3..b488611 100644 --- a/src/wcc.cpp +++ b/src/wcc.cpp @@ -458,7 +458,6 @@ int main(int argc, const char **argv) const char off_5403C3[] = {'s', '\0', 'e', '\0'}; std::string v111; std::string v113; - std::map> v126; int compilerResult = 0; std::map v105; @@ -466,7 +465,7 @@ int main(int argc, const char **argv) fileContentMap, // a2 v111, // a3 v113, // a4 - v126, // a5 + componentListMap, // a5 v105, // a6 v53, // a7 gwxMark, // a8 diff --git a/src/wxml/compiler.cpp b/src/wxml/compiler.cpp index 470fadb..f49cda2 100644 --- a/src/wxml/compiler.cpp +++ b/src/wxml/compiler.cpp @@ -1410,7 +1410,7 @@ namespace WXML{ } v317 << "var nv_require=function(){var nnm={"; - for (auto m = v292.rbegin(); m != v292.rend(); m++) + for (auto m = v292.begin(); m != v292.end(); m++) { v317 << "\""; v317 << WXML::Rewrite::ToStringCode(m->first); @@ -1429,7 +1429,7 @@ namespace WXML{ v317 << "e.stack = $gstack(e.stack);"; v317 << "e.stack += '\\n at ' + n.substring(2);console.error(e);}" << lineEndMark; v317 << "}}}()" << lineEndMark; - for (auto n = v290.rbegin(); n != v290.rend(); n++) + for (auto n = v290.begin(); n != v290.end(); n++) { v317 << n->second << lineEndMark; } @@ -1478,8 +1478,8 @@ namespace WXML{ } std::stringstream v327; v327 << "m"; - inc++; v327 << inc; + inc++; std::string v314 = v327.str(); auto v276 = i->second->offset_272["get_page_z_name"]; std::string v320 = "r"; diff --git a/src/wxml/expr_lib/transit_table.cpp b/src/wxml/expr_lib/transit_table.cpp index 5938cd0..1cb7fbc 100644 --- a/src/wxml/expr_lib/transit_table.cpp +++ b/src/wxml/expr_lib/transit_table.cpp @@ -871,18 +871,27 @@ namespace WXML keyList.push_back("$DECIMAL"); keyList.push_back("$STRING"); keyList.push_back("("); - keyList.push_back("-"); - keyList.push_back("$KEYWORD"); - keyList.push_back("["); - keyList.push_back("$VAR"); - keyList.push_back("{"); - for (auto &&i : keyList) { t.clear(); t.push_back(19); Init_55F1E4(root, i, t); } + target = "-"; + Init_55F220_0(root, target, target); + + keyList.clear(); + keyList.push_back("$KEYWORD"); + keyList.push_back("["); + keyList.push_back("$VAR"); + keyList.push_back("{"); + for (auto &&i : keyList) + { + t.clear(); + t.push_back(19); + Init_55F1E4(root, i, t); + } + target = "-"; t.clear(); t.push_back(23);