diff dmd/StorageClassDeclaration.d @ 179:cd48cb899aee

Updated to dmd2.040
author korDen
date Sun, 17 Oct 2010 20:56:07 +0400
parents e3afd1303184
children b0d41ff5e0df
line wrap: on
line diff
--- a/dmd/StorageClassDeclaration.d	Sun Oct 17 07:42:00 2010 +0400
+++ b/dmd/StorageClassDeclaration.d	Sun Oct 17 20:56:07 2010 +0400
@@ -113,18 +113,19 @@
 			{ STCalias,        TOKalias },
 			{ STCout,          TOKout },
 			{ STCin,           TOKin },
-///		version (DMDV2) {
-///			{ STCimmutable,    TOKimmutable },
-///			{ STCshared,       TOKshared },
-///			{ STCnothrow,      TOKnothrow },
-///			{ STCpure,         TOKpure },
-///			{ STCref,          TOKref },
-///			{ STCtls,          TOKtls },
-///			{ STCgshared,      TOKgshared },
-///			{ STCproperty,     TOKat },
-///			{ STCsafe,         TOKat },
-///			{ STCtrusted,      TOKat },
-///		}
+///version (DMDV2) {
+			{ STCimmutable,    TOKimmutable },
+			{ STCshared,       TOKshared },
+			{ STCnothrow,      TOKnothrow },
+			{ STCpure,         TOKpure },
+			{ STCref,          TOKref },
+			{ STCtls,          TOKtls },
+			{ STCgshared,      TOKgshared },
+			{ STCproperty,     TOKat },
+			{ STCsafe,         TOKat },
+			{ STCtrusted,      TOKat },
+			{ STCdisable,      TOKat },
+///}
 		];
 
 		for (int i = 0; i < table.length; i++)
@@ -141,6 +142,8 @@
 						id = Id.safe;
 					else if (stc & STCtrusted)
 						id = Id.trusted;
+					else if (stc & STCdisable)
+						id = Id.disable;
 					else
 						assert(0);
 					buf.writestring(id.toChars());