comparison dmd/Global.d @ 166:d8565fbd755c

Moved object and classinfo from ClassDeclaration to Global (as part of getting rid of the global state)
author korDen
date Thu, 30 Sep 2010 10:30:15 +0400
parents 90821c10b6a7
children 50a6d232176c
comparison
equal deleted inserted replaced
165:25ede4f66bda 166:d8565fbd755c
1 module dmd.Global; 1 module dmd.Global;
2 2
3 import dmd.common; 3 import dmd.common;
4 import dmd.Array; 4 import dmd.Array;
5 import dmd.Param; 5 import dmd.Param;
6 import dmd.ClassDeclaration;
6 7
7 class Global 8 class Global
8 { 9 {
9 string mars_ext = "d"; 10 string mars_ext = "d";
10 string sym_ext = "d"; 11 string sym_ext = "d";
43 44
44 Param params; 45 Param params;
45 uint errors; // number of errors reported so far 46 uint errors; // number of errors reported so far
46 uint gag; // !=0 means gag reporting of errors 47 uint gag; // !=0 means gag reporting of errors
47 48
49 ClassDeclaration object;
50 ClassDeclaration classinfo;
51
48 this() 52 this()
49 { 53 {
50 params.versionids = new Array(); 54 params.versionids = new Array();
51 } 55 }
52 } 56 }