comparison dmd/PragmaDeclaration.d @ 130:60bb0fe4563e

dmdfe 2.037 first main iteration
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Thu, 09 Sep 2010 22:51:44 +0100
parents 352a5164f692
children 9d194c848e3a
comparison
equal deleted inserted replaced
129:010eb8f0e18d 130:60bb0fe4563e
125 /// d.c_ident = Lexer.idPool((char*) s.string); 125 /// d.c_ident = Lexer.idPool((char*) s.string);
126 /// } 126 /// }
127 /// goto Lnodecl; 127 /// goto Lnodecl;
128 /// } 128 /// }
129 /// } 129 /// }
130 ///version(DMDV2) {
130 else if (ident == Id.startaddress) 131 else if (ident == Id.startaddress)
131 { 132 {
132 if (!args || args.dim != 1) 133 if (!args || args.dim != 1)
133 error("function name expected for start address"); 134 error("function name expected for start address");
134 else 135 else
141 if (!sa || !sa.isFuncDeclaration()) 142 if (!sa || !sa.isFuncDeclaration())
142 error("function name expected for start address, not '%s'", e.toChars()); 143 error("function name expected for start address, not '%s'", e.toChars());
143 } 144 }
144 goto Lnodecl; 145 goto Lnodecl;
145 } 146 }
147 ///}
146 /// version (TARGET_NET) { 148 /// version (TARGET_NET) {
147 /// else if (ident == Lexer.idPool("assembly")) 149 /// else if (ident == Lexer.idPool("assembly"))
148 /// { 150 /// {
149 /// } 151 /// }
150 /// } // TARGET_NET 152 /// } // TARGET_NET