Mercurial > projects > ddmd
diff dmd/Global.d @ 173:d237b38b5858
Small changes
author | korDen |
---|---|
date | Sun, 10 Oct 2010 01:55:35 +0400 |
parents | 96c0fff6897d |
children | af724d3510d7 |
line wrap: on
line diff
--- a/dmd/Global.d Fri Oct 08 20:23:30 2010 +0400 +++ b/dmd/Global.d Sun Oct 10 01:55:35 2010 +0400 @@ -22,7 +22,7 @@ { string mars_ext = "d"; string sym_ext = "d"; - + version (TARGET_WINDOS) { string obj_ext = "obj"; } else version (POSIX) { // TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS @@ -49,7 +49,7 @@ ///version (TARGET_NET) { /// "\nMSIL back-end (alpha release) by Cristian L. Vlasceanu and associates."; ///} - + string[] path; // Array of char*'s which form the import lookup path string[] filePath; // Array of char*'s which form the file import lookup path int structalign = 8; @@ -58,28 +58,28 @@ Param params; uint errors; // number of errors reported so far uint gag; // !=0 means gag reporting of errors - + ClassDeclaration object; ClassDeclaration classinfo; - + // Used in FuncDeclaration.genCfunc() DsymbolTable st; - + // Used in Lexer.uniqueId() int num; - + // Used in Identifier.generateId() size_t i; - + // Used in Lexer StringTable stringtable; OutBuffer stringbuffer; Token* freelist; - + char date[11+1]; char time[8+1]; char timestamp[24+1]; - + // Used in Module Module rootModule; DsymbolTable modules; // symbol table of all modules @@ -89,35 +89,37 @@ int nested; Classsym* scc; ClassDeclaration moduleinfo; - + // Used in PowExp bool importMathChecked = false; - + // Used in Scope Scope scope_freelist; - + // Used in TemplateMixin int nest; - + this() { params.versionids = new Array(); + params.imppath = new Array(); + st = new DsymbolTable(); stringtable = new StringTable(); stringbuffer = new OutBuffer(); - + modules = new DsymbolTable(); amodules = new Array(); deferred = new Array(); - + init_time(); } - + void initClasssym() { scc = fake_classsym(Id.ClassInfo); } - + void init_time() { time_t tm; @@ -132,4 +134,4 @@ } } -Global global; +__gshared Global global;