comparison gen/arrays.h @ 286:a3b7c19c866c trunk

[svn r307] Fixed: multidimensional new expressions now work. Eg.: auto ma = new int[][] (3,9);
author lindquist
date Sat, 21 Jun 2008 04:47:14 +0200
parents a95056b3c996
children 895e1b50cf2a
comparison
equal deleted inserted replaced
285:297690b5d4a5 286:a3b7c19c866c
19 void DtoArrayAssign(LLValue* l, LLValue* r); 19 void DtoArrayAssign(LLValue* l, LLValue* r);
20 void DtoSetArray(LLValue* arr, LLValue* dim, LLValue* ptr); 20 void DtoSetArray(LLValue* arr, LLValue* dim, LLValue* ptr);
21 void DtoSetArrayToNull(LLValue* v); 21 void DtoSetArrayToNull(LLValue* v);
22 22
23 DSliceValue* DtoNewDynArray(Type* arrayType, DValue* dim, bool defaultInit=true); 23 DSliceValue* DtoNewDynArray(Type* arrayType, DValue* dim, bool defaultInit=true);
24 DSliceValue* DtoNewMulDimDynArray(Type* arrayType, DValue** dims, size_t ndims, bool defaultInit=true);
24 DSliceValue* DtoResizeDynArray(Type* arrayType, DValue* array, DValue* newdim); 25 DSliceValue* DtoResizeDynArray(Type* arrayType, DValue* array, DValue* newdim);
25 26
26 DSliceValue* DtoCatAssignElement(DValue* arr, Expression* exp); 27 DSliceValue* DtoCatAssignElement(DValue* arr, Expression* exp);
27 DSliceValue* DtoCatAssignArray(DValue* arr, Expression* exp); 28 DSliceValue* DtoCatAssignArray(DValue* arr, Expression* exp);
28 DSliceValue* DtoCatArrays(Type* type, Expression* e1, Expression* e2); 29 DSliceValue* DtoCatArrays(Type* type, Expression* e1, Expression* e2);