X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/da2af935087da0e425bbfb06fe1cc24107e3f32d..210e14b3fd3765a57e5f151c159c2ad921dadc98:/Parser.hpp diff --git a/Parser.hpp b/Parser.hpp index d853939..b126d5a 100644 --- a/Parser.hpp +++ b/Parser.hpp @@ -19,8 +19,8 @@ **/ /* }}} */ -#ifndef CYPARSER_HPP -#define CYPARSER_HPP +#ifndef CYCRIPT_PARSER_HPP +#define CYCRIPT_PARSER_HPP #include @@ -303,6 +303,7 @@ struct CYScope { CYIdentifierValueSet identifiers_; CYScope(CYScopeType type, CYContext &context, CYStatement *&statements); + virtual ~CYScope(); void Close(); @@ -354,7 +355,7 @@ struct CYContext { void ReplaceAll(Type_ *&values) { Type_ **last(&values); CYForEach (next, values) { - Replace(*last); + Replace(*last = next); last = &(*last)->next_; } } @@ -1841,4 +1842,4 @@ CYAssignment_("&=", BitwiseAnd) CYAssignment_("^=", BitwiseXOr) CYAssignment_("|=", BitwiseOr) -#endif/*CYPARSER_HPP*/ +#endif/*CYCRIPT_PARSER_HPP*/