diff dmd/PragmaDeclaration.d @ 22:fd4acc376c45

Implemented object file output and linking on linux.
author Robert Clipsham <robert@octarineparrot.com>
date Thu, 08 Apr 2010 04:21:03 +0100
parents d706d958e4e8
children 2e2a5c3f943a
line wrap: on
line diff
--- a/dmd/PragmaDeclaration.d	Wed Apr 07 00:51:29 2010 +0100
+++ b/dmd/PragmaDeclaration.d	Thu Apr 08 04:21:03 2010 +0100
@@ -62,7 +62,7 @@
 					if (e.op == TOKstring)
 					{
 						StringExp se = cast(StringExp)e;
-						writef("%.*s", cast(int)se.len, cast(char*)se.string_);
+						writef("%s", se.toChars()[1..$-3] /*se.len, cast(char*)se.string_*/);
 					}
 					else
 						error("string expected for message, not '%s'", e.toChars());
@@ -286,4 +286,4 @@
 ///	}
 		AttribDeclaration.toObjFile(multiobj);
 	}
-}
\ No newline at end of file
+}