Mercurial > projects > ldc
comparison dmd/parse.c @ 35:3cfcb944304e trunk
[svn r39] * Updated to DMD 1.022 with the exception of:
Bugzilla 278: dmd.conf search path doesn't work
This fix was causing crashes for me :/ So for it's the old behaviour
author | lindquist |
---|---|
date | Tue, 09 Oct 2007 06:21:30 +0200 |
parents | 788401029ecf |
children | 70d6113eeb8c |
comparison
equal
deleted
inserted
replaced
34:4648206ca213 | 35:3cfcb944304e |
---|---|
1833 } | 1833 } |
1834 #endif | 1834 #endif |
1835 case TOKlparen: | 1835 case TOKlparen: |
1836 { Arguments *arguments; | 1836 { Arguments *arguments; |
1837 int varargs; | 1837 int varargs; |
1838 Type **pt; | |
1839 | 1838 |
1840 if (tpl) | 1839 if (tpl) |
1841 { | 1840 { |
1842 /* Look ahead to see if this is (...)(...), | 1841 /* Look ahead to see if this is (...)(...), |
1843 * i.e. a function template declaration | 1842 * i.e. a function template declaration |
1850 *tpl = parseTemplateParameterList(); | 1849 *tpl = parseTemplateParameterList(); |
1851 } | 1850 } |
1852 } | 1851 } |
1853 | 1852 |
1854 arguments = parseParameters(&varargs); | 1853 arguments = parseParameters(&varargs); |
1855 ta = new TypeFunction(arguments, t, varargs, linkage); | 1854 Type *ta = new TypeFunction(arguments, t, varargs, linkage); |
1855 Type **pt; | |
1856 for (pt = &ts; *pt != t; pt = &(*pt)->next) | 1856 for (pt = &ts; *pt != t; pt = &(*pt)->next) |
1857 ; | 1857 ; |
1858 *pt = ta; | 1858 *pt = ta; |
1859 break; | 1859 break; |
1860 } | 1860 } |