comparison dmd/Module.d @ 129:010eb8f0e18d

further work on dmd test suite
author korDen
date Sun, 05 Sep 2010 15:32:22 +0400
parents e6e542f37b94
children 4092a614a9f3 e7769d53e750
comparison
equal deleted inserted replaced
128:e6e542f37b94 129:010eb8f0e18d
221 Array aimports; // all imported modules 221 Array aimports; // all imported modules
222 222
223 ModuleInfoDeclaration vmoduleinfo; 223 ModuleInfoDeclaration vmoduleinfo;
224 224
225 uint debuglevel; // debug level 225 uint debuglevel; // debug level
226 Array debugids; // debug identifiers 226 Vector!string debugids; // debug identifiers
227 Array debugidsNot; // forward referenced debug identifiers 227 Vector!string debugidsNot; // forward referenced debug identifiers
228 228
229 uint versionlevel; // version level 229 uint versionlevel; // version level
230 Array versionids; // version identifiers 230 Array versionids; // version identifiers
231 Array versionidsNot; // forward referenced version identifiers 231 Array versionidsNot; // forward referenced version identifiers
232 232
295 295
296 objfile = new File(objfilename); 296 objfile = new File(objfilename);
297 symfile = new File(symfilename); 297 symfile = new File(symfilename);
298 } 298 }
299 299
300 static Module load(Loc loc, Identifiers packages, Identifier ident) 300 static Module load(Loc loc, Vector!Identifier packages, Identifier ident)
301 { 301 {
302 Module m; 302 Module m;
303 string filename; 303 string filename;
304 304
305 //writef("Module.load(ident = '%s')\n", ident.toChars()); 305 //writef("Module.load(ident = '%s')\n", ident.toChars());
309 // into: 309 // into:
310 // foo\bar\baz 310 // foo\bar\baz
311 filename = ident.toChars(); 311 filename = ident.toChars();
312 if (packages && packages.dim) 312 if (packages && packages.dim)
313 { 313 {
314 scope buf = new OutBuffer(); 314 scope OutBuffer buf = new OutBuffer();
315 int i;
315 316
316 foreach (pid; packages) 317 foreach (pid; packages)
317 { 318 {
318 buf.writestring(pid.toChars()); 319 buf.writestring(pid.toChars());
319 version (Windows) 320 version (Windows)