changeset 554:d6212e3b9f36

Fixed code in cmd.Statistics.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Thu, 20 Dec 2007 23:33:30 +0100
parents 164b4ecd9793
children d9e328c3bab9
files trunk/src/cmd/Statistics.d
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/cmd/Statistics.d	Thu Dec 20 23:29:51 2007 +0100
+++ b/trunk/src/cmd/Statistics.d	Thu Dec 20 23:33:30 2007 +0100
@@ -128,7 +128,7 @@
   if (printTokensTable)
   {
     stats.tokensTable[TOK.HEAD] = 1;
-    stats.tokensTable[TOK.Newline & ~TOK.Whitespace] = 1;
+    stats.tokensTable[TOK.Newline] = 1;
   }
   // Traverse linked list.
   while (1)
@@ -136,12 +136,7 @@
     stats.tokenCount += 1;
 
     if (printTokensTable)
-    {
-      if (token.isWhitespace)
-        stats.tokensTable[token.type & ~TOK.Whitespace] += 1;
-      else
-        stats.tokensTable[token.type] += 1;
-    }
+      stats.tokensTable[token.type] += 1;
 
     // Count whitespace characters
     if (token.ws !is null)