Mercurial > projects > ldc
comparison lphobos/gc/gc.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 |
---|---|
274 | 274 |
275 Loverflow: | 275 Loverflow: |
276 _d_OutOfMemory(); | 276 _d_OutOfMemory(); |
277 } | 277 } |
278 | 278 |
279 void* _d_newarrayvT(TypeInfo ti, size_t length) { | |
280 return _d_newarrayT(ti, length); | |
281 } | |
282 | |
279 /* For when the array has a non-zero initializer. | 283 /* For when the array has a non-zero initializer. |
280 */ | 284 */ |
281 void* _d_newarrayiT(TypeInfo ti, size_t length) | 285 void* _d_newarrayiT(TypeInfo ti, size_t length) |
282 { | 286 { |
283 void* result; | 287 void* result; |
1024 { | 1028 { |
1025 size_t length; | 1029 size_t length; |
1026 void* ptr; | 1030 void* ptr; |
1027 }*/ | 1031 }*/ |
1028 | 1032 |
1029 extern(C) void* _d_allocmemoryT(size_t foo) { return malloc(foo).ptr; } | 1033 extern(C) void* _d_allocmemoryT(TypeInfo ti) { |
1034 return malloc(ti.tsize).ptr; // Tit size :) | |
1035 } |