Mercurial > projects > dil
diff trunk/src/cmd/Statistics.d @ 797:cf2ad5df025c
Added documentation comments.
Removed Lexer.loadKeywords() and revised Lexer.isReservedIdentifier().
Also removed Lexer.getTokens().
Renamed keywords to g_reservedIds.
Renamed classNames to g_classNames.
Added PRE and DMDBUG macros.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 29 Feb 2008 22:51:24 +0100 |
parents | 3b34f6a95a27 |
children |
line wrap: on
line diff
--- a/trunk/src/cmd/Statistics.d Fri Feb 29 19:25:21 2008 +0100 +++ b/trunk/src/cmd/Statistics.d Fri Feb 29 22:51:24 2008 +0100 @@ -32,7 +32,7 @@ if (allocateTokensTable) s.tokensTable = new uint[TOK.MAX]; if (allocateNodesTable) - s.nodesTable = new uint[classNames.length]; + s.nodesTable = new uint[g_classNames.length]; return s; } @@ -129,7 +129,7 @@ Stdout.formatln(" {,10} | {}", "Count", "Node kind"); Stdout("-----------------------------").newline; foreach (i, count; total.nodesTable) - Stdout.formatln(" {,10} | {}", count, classNames[i]); + Stdout.formatln(" {,10} | {}", count, g_classNames[i]); Stdout("// End of nodes table.").newline; } }