Mercurial > projects > ldc
comparison dmd/declaration.c @ 305:2b72433d5c8c trunk
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
Fixed problems with label collisions when using labels inside inline asm. LabelStatement is now easily reached given its
Identifier, which should be useful elsewhere too.
Enabled inline asm for building the lib/compiler/llvmdc runtime code, fixing branches out of asm makes this possible.
author | lindquist |
---|---|
date | Fri, 27 Jun 2008 22:04:35 +0200 |
parents | d61ce72c39ab |
children | aaade6ded589 |
comparison
equal
deleted
inserted
replaced
304:3ebc136702dd | 305:2b72433d5c8c |
---|---|
673 | 673 |
674 for (size_t i = 0; i < nelems; i++) | 674 for (size_t i = 0; i < nelems; i++) |
675 { Argument *arg = Argument::getNth(tt->arguments, i); | 675 { Argument *arg = Argument::getNth(tt->arguments, i); |
676 | 676 |
677 OutBuffer buf; | 677 OutBuffer buf; |
678 buf.printf("_%s_field_%zu", ident->toChars(), i); | 678 buf.printf("_%s_field_%"PRIuSIZE, ident->toChars(), i); |
679 buf.writeByte(0); | 679 buf.writeByte(0); |
680 char *name = (char *)buf.extractData(); | 680 char *name = (char *)buf.extractData(); |
681 Identifier *id = new Identifier(name, TOKidentifier); | 681 Identifier *id = new Identifier(name, TOKidentifier); |
682 | 682 |
683 Expression *einit = ie; | 683 Expression *einit = ie; |