comparison dmd/Global.d @ 170:96c0fff6897d

more global state cleanup
author korDen
date Thu, 30 Sep 2010 14:09:50 +0400
parents e7769d53e750
children d237b38b5858
comparison
equal deleted inserted replaced
169:e7769d53e750 170:96c0fff6897d
6 import dmd.ClassDeclaration; 6 import dmd.ClassDeclaration;
7 import dmd.DsymbolTable; 7 import dmd.DsymbolTable;
8 import dmd.StringTable; 8 import dmd.StringTable;
9 import dmd.OutBuffer; 9 import dmd.OutBuffer;
10 import dmd.Token; 10 import dmd.Token;
11 import dmd.Scope;
11 import dmd.Module; 12 import dmd.Module;
13 import dmd.Id;
14
15 import dmd.codegen.Util;
16 import dmd.backend.Classsym;
12 17
13 import core.stdc.time; 18 import core.stdc.time;
14 import core.stdc.stdio; 19 import core.stdc.stdio;
15 20
16 class Global 21 class Global
79 Module rootModule; 84 Module rootModule;
80 DsymbolTable modules; // symbol table of all modules 85 DsymbolTable modules; // symbol table of all modules
81 Array amodules; // array of all modules 86 Array amodules; // array of all modules
82 Array deferred; // deferred Dsymbol's needing semantic() run on them 87 Array deferred; // deferred Dsymbol's needing semantic() run on them
83 uint dprogress; // progress resolving the deferred list 88 uint dprogress; // progress resolving the deferred list
89 int nested;
90 Classsym* scc;
91 ClassDeclaration moduleinfo;
84 92
85 ClassDeclaration moduleinfo; 93 // Used in PowExp
94 bool importMathChecked = false;
95
96 // Used in Scope
97 Scope scope_freelist;
98
99 // Used in TemplateMixin
100 int nest;
86 101
87 this() 102 this()
88 { 103 {
89 params.versionids = new Array(); 104 params.versionids = new Array();
90 st = new DsymbolTable(); 105 st = new DsymbolTable();
94 modules = new DsymbolTable(); 109 modules = new DsymbolTable();
95 amodules = new Array(); 110 amodules = new Array();
96 deferred = new Array(); 111 deferred = new Array();
97 112
98 init_time(); 113 init_time();
114 }
115
116 void initClasssym()
117 {
118 scc = fake_classsym(Id.ClassInfo);
99 } 119 }
100 120
101 void init_time() 121 void init_time()
102 { 122 {
103 time_t tm; 123 time_t tm;