--- a/src/Parser.h Sun Feb 09 21:27:55 2014 +0200 +++ b/src/Parser.h Sun Feb 09 22:43:58 2014 +0200 @@ -174,6 +174,8 @@ void WriteToFile (String outfile); Variable* FindVariable (const String& name); bool IsInGlobalState() const; + void SuggestHighestVarIndex (bool global, int index); + int GetHighestVarIndex (bool global); inline ScopeInfo& GetScope (int offset) { @@ -217,6 +219,8 @@ int mScopeCursor; bool mCanElse; List<UndefinedLabel> mUndefinedLabels; + int mHighestGlobalVarIndex; + int mHighestStateVarIndex; // How many bytes have we written to file? int mNumWrittenBytes;