Tried using my new CCSP helper function to allocate arrays
This commit is contained in:
parent
78f9fb6196
commit
9c433b248a
|
@ -1977,8 +1977,8 @@ cgenAssert m e
|
||||||
--{{{ mobiles
|
--{{{ mobiles
|
||||||
cgenAllocMobile :: Meta -> A.Type -> Maybe A.Expression -> CGen()
|
cgenAllocMobile :: Meta -> A.Type -> Maybe A.Expression -> CGen()
|
||||||
cgenAllocMobile m (A.Mobile t@(A.Array ds innerT)) Nothing
|
cgenAllocMobile m (A.Mobile t@(A.Array ds innerT)) Nothing
|
||||||
= do tell ["MTAllocArray(wptr,"]
|
= do tell ["MTAllocDataArray(wptr,"]
|
||||||
mobileElemType True innerT
|
call genBytesIn m innerT (Left False)
|
||||||
tell [",", show $ length ds]
|
tell [",", show $ length ds]
|
||||||
prefixComma $ [call genExpression e | A.Dimension e <- ds]
|
prefixComma $ [call genExpression e | A.Dimension e <- ds]
|
||||||
tell [")"]
|
tell [")"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user