- Use a map for symbol tables instead of an array.

SVN r2258 (scripting)
This commit is contained in:
Randy Heit 2010-03-30 04:11:16 +00:00
commit d87d2c731f
4 changed files with 28 additions and 57 deletions

View file

@ -241,8 +241,10 @@ static void DoParse(const char *filename)
parser = ZCCParseAlloc(malloc);
failed = false;
#ifdef _DEBUG
FILE *f = fopen("trace.txt", "w");
ZCCParseTrace(f, "");
#endif
while (sc.GetToken())
{
if (sc.TokenType == TK_StringConst)
@ -294,10 +296,12 @@ static void DoParse(const char *filename)
ZCCParse(parser, ZCC_EOF, value, &sc);
ZCCParse(parser, 0, value, &sc);
ZCCParseFree(parser, free);
#ifdef _DEBUG
if (f != NULL)
{
fclose(f);
}
#endif
}
CCMD(parse)