More readable memory allocations

This commit is contained in:
Steven Robertson 2010-09-12 01:13:22 -04:00
parent 802ca1d585
commit e2b1c161cf

View File

@ -468,7 +468,7 @@ class _MemFactory(_CallChain):
array = [] array = []
if init: if init:
array += [' = ', init] array += [' = ', init]
self.block.code(op=['.%s.%s ' % (type[0], type[1]), name, array]) self.block.code(op='.%s.%s ' % (type[0], type[1]), vars=[name, array])
self.block.inject(name, memobj) self.block.inject(name, memobj)
# TODO: move vec, addr here, or make this public # TODO: move vec, addr here, or make this public