Commands now evaluate their reference Zone at runtime, thus handling of forward references in the parser is no more needed.

svn-id: r39738
This commit is contained in:
Nicola Mettifogo 2009-03-29 12:41:00 +00:00
parent d883cb209e
commit 011b73a09b
5 changed files with 15 additions and 34 deletions

View file

@ -204,17 +204,9 @@ protected:
void parseCommands(CommandList&);
void parseCommandFlags();
void parseCommandFlag(CommandPtr cmd, const char *flag, Table *table);
void saveCommandForward(const char *name, CommandPtr cmd);
void resolveCommandForwards();
void createCommand(uint id);
void addCommand();
struct CommandForwardReference {
char name[20];
CommandPtr cmd;
} _forwardedCommands[MAX_FORWARDS];
uint _numForwardedCommands;
void clearSet(OpcodeSet &opcodes) {
for (Common::Array<const Opcode*>::iterator i = opcodes.begin(); i != opcodes.end(); ++i)
delete *i;