Mercurial > projects > ddmd
comparison dmd/Parser.d @ 191:52188e7e3fb5
Fixed deprecated features, now compiles with DMD2.058
Also changed Array allocation policy:
Now doesn't reallocate but malloc's, followed by a memcpy (no free).
(this fixes a crash while compiling druntime. Same bug in dmd)
author | korDen@korDen-pc |
---|---|
date | Sun, 25 Mar 2012 03:11:12 +0400 |
parents | cd48cb899aee |
children |
comparison
equal
deleted
inserted
replaced
190:80660782bffe | 191:52188e7e3fb5 |
---|---|
1833 * Current token is 'new'. | 1833 * Current token is 'new'. |
1834 */ | 1834 */ |
1835 NewDeclaration parseNew() | 1835 NewDeclaration parseNew() |
1836 { | 1836 { |
1837 NewDeclaration f; | 1837 NewDeclaration f; |
1838 scope arguments = new Parameters(); | 1838 auto arguments = new Parameters(); |
1839 int varargs; | 1839 int varargs; |
1840 Loc loc = this.loc; | 1840 Loc loc = this.loc; |
1841 | 1841 |
1842 nextToken(); | 1842 nextToken(); |
1843 arguments = parseParameters(&varargs); | 1843 arguments = parseParameters(&varargs); |
1852 * Current token is 'delete'. | 1852 * Current token is 'delete'. |
1853 */ | 1853 */ |
1854 DeleteDeclaration parseDelete() | 1854 DeleteDeclaration parseDelete() |
1855 { | 1855 { |
1856 DeleteDeclaration f; | 1856 DeleteDeclaration f; |
1857 scope Parameters arguments; | 1857 Parameters arguments; |
1858 int varargs; | 1858 int varargs; |
1859 Loc loc = this.loc; | 1859 Loc loc = this.loc; |
1860 | 1860 |
1861 nextToken(); | 1861 nextToken(); |
1862 arguments = parseParameters(&varargs); | 1862 arguments = parseParameters(&varargs); |