Mercurial > projects > ldc
comparison dmd/func.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 | f7190d9eb70c |
comparison
equal
deleted
inserted
replaced
304:3ebc136702dd | 305:2b72433d5c8c |
---|---|
765 { | 765 { |
766 /* Generate identifier for un-named parameter, | 766 /* Generate identifier for un-named parameter, |
767 * because we need it later on. | 767 * because we need it later on. |
768 */ | 768 */ |
769 OutBuffer buf; | 769 OutBuffer buf; |
770 buf.printf("_param_%zu", i); | 770 buf.printf("_param_%"PRIuSIZE, i); |
771 char *name = (char *)buf.extractData(); | 771 char *name = (char *)buf.extractData(); |
772 id = new Identifier(name, TOKidentifier); | 772 id = new Identifier(name, TOKidentifier); |
773 arg->ident = id; | 773 arg->ident = id; |
774 } | 774 } |
775 VarDeclaration *v = new VarDeclaration(loc, arg->type, id, NULL); | 775 VarDeclaration *v = new VarDeclaration(loc, arg->type, id, NULL); |