Mercurial > projects > ldc
comparison dmd/declaration.c @ 1103:b30fe7e1dbb9
- Updated to DMD frontend 1.041.
- Removed dmd/inifile.c , it's not under a free license, replaced with libconfig based config file.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Thu, 12 Mar 2009 20:37:27 +0100 |
parents | 545f54041d91 |
children | 76e72fdef04d |
comparison
equal
deleted
inserted
replaced
1102:ae950bd712d3 | 1103:b30fe7e1dbb9 |
---|---|
748 | 748 |
749 for (size_t i = 0; i < nelems; i++) | 749 for (size_t i = 0; i < nelems; i++) |
750 { Argument *arg = Argument::getNth(tt->arguments, i); | 750 { Argument *arg = Argument::getNth(tt->arguments, i); |
751 | 751 |
752 OutBuffer buf; | 752 OutBuffer buf; |
753 buf.printf("_%s_field_%"PRIuSIZE, ident->toChars(), i); | 753 buf.printf("_%s_field_%zu", ident->toChars(), i); |
754 buf.writeByte(0); | 754 buf.writeByte(0); |
755 char *name = (char *)buf.extractData(); | 755 char *name = (char *)buf.extractData(); |
756 Identifier *id = new Identifier(name, TOKidentifier); | 756 Identifier *id = new Identifier(name, TOKidentifier); |
757 | 757 |
758 Expression *einit = ie; | 758 Expression *einit = ie; |