comparison dmd/backend/glue.d @ 174:af724d3510d7

lot os toCBuffer methods implemented moved shared Type.* stuff into Global
author korDen
date Sun, 10 Oct 2010 03:47:23 +0400
parents 25ede4f66bda
children 94b6033c07f3
comparison
equal deleted inserted replaced
173:d237b38b5858 174:af724d3510d7
368 objbuf.p = null; 368 objbuf.p = null;
369 objbuf.len = 0; 369 objbuf.len = 0;
370 objbuf.inc = 0; 370 objbuf.inc = 0;
371 } 371 }
372 372
373 static __gshared int count;
374
373 void obj_write_deferred(Library library) 375 void obj_write_deferred(Library library)
374 { 376 {
375 for (int i = 0; i < obj_symbols_towrite.dim; i++) 377 for (int i = 0; i < obj_symbols_towrite.dim; i++)
376 { 378 {
377 Dsymbol s = cast(Dsymbol)obj_symbols_towrite.data[i]; 379 Dsymbol s = cast(Dsymbol)obj_symbols_towrite.data[i];
390 assert(mname.length != 0); 392 assert(mname.length != 0);
391 } 393 }
392 394
393 obj_start(cast(char*)toStringz(mname)); 395 obj_start(cast(char*)toStringz(mname));
394 396
395 static int count;
396 count++; // sequence for generating names 397 count++; // sequence for generating names
397 398
398 /* Create a module that's a doppelganger of m, with just 399 /* Create a module that's a doppelganger of m, with just
399 * enough to be able to create the moduleinfo. 400 * enough to be able to create the moduleinfo.
400 */ 401 */