main.cxx

changeset 67
0a202714eea4
parent 66
4fc1ec88aa41
child 68
588cc27e84bb
--- a/main.cxx	Wed Dec 19 03:27:15 2012 +0200
+++ b/main.cxx	Wed Dec 19 04:20:02 2012 +0200
@@ -168,7 +168,6 @@
 	
 	// Init stuff
 	InitStringTable ();
-	InitVariables ();
 	
 	// Prepare reader and writer
 	ScriptReader* r = new ScriptReader (argv[1]);
@@ -180,7 +179,7 @@
 	printf ("Script parsed successfully.\n");
 	
 	// Parse done, print statistics and write to file
-	unsigned int globalcount = CountGlobalVars ();
+	unsigned int globalcount = g_GlobalVariables.size();
 	unsigned int stringcount = CountStringTable ();
 	int NumMarks = w->MainBuffer->CountMarks ();
 	int NumRefs = w->MainBuffer->CountReferences ();

mercurial