X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/a846a8cdfbbb59f5f545db03dd7c5fee43c2056a..56a66df3a7e954e0821180d4313b43c53e92180e:/Parser.hpp?ds=sidebyside diff --git a/Parser.hpp b/Parser.hpp index 9ff1d38..f48e81b 100644 --- a/Parser.hpp +++ b/Parser.hpp @@ -50,6 +50,7 @@ #include #include +#include #include #include "location.hh" @@ -356,9 +357,7 @@ struct CYProgram : virtual void Output(CYOutput &out) const; }; -struct CYContext : - CYScope -{ +struct CYContext { apr_pool_t *pool_; CYOptions &options_; CYScope *scope_; @@ -367,7 +366,7 @@ struct CYContext : CYContext(apr_pool_t *pool, CYOptions &options) : pool_(pool), options_(options), - scope_(this) + scope_(NULL) { }