comparison lphobos/std/dateparse.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
46 void parse(char[] s, out Date date) 46 void parse(char[] s, out Date date)
47 { 47 {
48 *this = DateParse.init; 48 *this = DateParse.init;
49 49
50 //version (Win32) 50 //version (Win32)
51 buffer = (cast(char *)alloca(s.length))[0 .. s.length]; 51 buffer = (cast(char *)/*alloca*/malloc(s.length))[0 .. s.length];
52 //else 52 //else
53 //buffer = new char[s.length]; 53 //buffer = new char[s.length];
54 54
55 debug(dateparse) printf("DateParse.parse('%.*s')\n", 55 debug(dateparse) printf("DateParse.parse('%.*s')\n",
56 cast(int) s.length, s.ptr); 56 cast(int) s.length, s.ptr);