From: Jay Freeman (saurik) Date: Tue, 17 Nov 2009 19:16:48 +0000 (+0000) Subject: Fixed some compilation errors on Mac OS X. X-Git-Tag: v0.9.432~151 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/0a35647487f508be5a48feaf18734086e6d460d4?ds=sidebyside Fixed some compilation errors on Mac OS X. --- diff --git a/ObjectiveC/Replace.mm b/ObjectiveC/Replace.mm index 5f86ff4..0993a11 100644 --- a/ObjectiveC/Replace.mm +++ b/ObjectiveC/Replace.mm @@ -38,7 +38,6 @@ /* }}} */ #include "Replace.hpp" -#include "Context.hpp" #include "ObjectiveC/Syntax.hpp" #include diff --git a/Parser.hpp b/Parser.hpp index d8eb56b..6bf18a7 100644 --- a/Parser.hpp +++ b/Parser.hpp @@ -325,6 +325,9 @@ struct CYScope { { } + virtual ~CYScope() { + } + void Declare(CYContext &context, CYIdentifier *identifier, CYIdentifierFlags flags); virtual CYIdentifier *Lookup(CYContext &context, CYIdentifier *identifier); void Merge(CYContext &context, CYIdentifier *identifier); @@ -363,6 +366,9 @@ struct CYContext : { } + virtual ~CYContext() { + } + template void Replace(Type_ *&value) { for (;;) if (value == NULL)