diff dmd2/module.c @ 847:356e65836fb5

Merged DMD 2.021 frontend. Removed generated files from dmd/dmd2 dirs.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sat, 13 Dec 2008 16:14:37 +0100
parents f04dde6e882c
children 2667e3a145be
line wrap: on
line diff
--- a/dmd2/module.c	Sat Dec 13 13:15:31 2008 +0100
+++ b/dmd2/module.c	Sat Dec 13 16:14:37 2008 +0100
@@ -102,6 +102,7 @@
 
     macrotable = NULL;
     escapetable = NULL;
+    safe = FALSE;
     doppelganger = 0;
     cov = NULL;
     covb = NULL;
@@ -590,6 +591,7 @@
 
     if (md)
     {	this->ident = md->id;
+	this->safe = md->safe;
 	dst = Package::resolve(md->packages, &this->parent, NULL);
     }
     else
@@ -890,10 +892,11 @@
 
 /* =========================== ModuleDeclaration ===================== */
 
-ModuleDeclaration::ModuleDeclaration(Array *packages, Identifier *id)
+ModuleDeclaration::ModuleDeclaration(Array *packages, Identifier *id, bool safe)
 {
     this->packages = packages;
     this->id = id;
+    this->safe = safe;
 }
 
 char *ModuleDeclaration::toChars()