Mercurial > projects > ldc
comparison lphobos/std/regexp.d @ 662:88e23f8c2354
Applied downs' latest Phobos patch
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 06 Oct 2008 21:40:33 +0200 |
parents | 373489eeaf90 |
children |
comparison
equal
deleted
inserted
replaced
661:99f32e967746 | 662:88e23f8c2354 |
---|---|
1818 goto Lnomatch; | 1818 goto Lnomatch; |
1819 } | 1819 } |
1820 if (!psave && count < m) | 1820 if (!psave && count < m) |
1821 { | 1821 { |
1822 //version (Win32) | 1822 //version (Win32) |
1823 psave = cast(regmatch_t *)alloca((re_nsub + 1) * regmatch_t.sizeof); | 1823 psave = cast(regmatch_t *)/*alloca*/malloc((re_nsub + 1) * regmatch_t.sizeof); |
1824 //else | 1824 //else |
1825 //psave = new regmatch_t[re_nsub + 1]; | 1825 //psave = new regmatch_t[re_nsub + 1]; |
1826 } | 1826 } |
1827 if (program[pc] == REnmq) // if minimal munch | 1827 if (program[pc] == REnmq) // if minimal munch |
1828 { | 1828 { |