parent
8a3b76b287
commit
a9bd78d579
23 changed files with 140 additions and 140 deletions
|
|
@ -155,7 +155,7 @@ when not defined(useNimRtl):
|
|||
var bs = typ.base.size
|
||||
for i in 0..typ.size div bs - 1:
|
||||
if i > 0: add result, ", "
|
||||
reprAux(result, cast[pointer](cast[ByteAddress](p) + i*bs), typ.base, cl)
|
||||
reprAux(result, cast[pointer](cast[int](p) + i*bs), typ.base, cl)
|
||||
add result, "]"
|
||||
|
||||
when defined(nimSeqsV2):
|
||||
|
|
@ -183,7 +183,7 @@ when not defined(useNimRtl):
|
|||
var bs = typ.base.size
|
||||
for i in 0..cast[PGenericSeq](p).len-1:
|
||||
if i > 0: add result, ", "
|
||||
reprAux(result, cast[pointer](cast[ByteAddress](payloadPtr(p)) + align(payloadOffset, typ.align) + i*bs),
|
||||
reprAux(result, cast[pointer](cast[int](payloadPtr(p)) + align(payloadOffset, typ.align) + i*bs),
|
||||
typ.base, cl)
|
||||
add result, "]"
|
||||
|
||||
|
|
@ -194,14 +194,14 @@ when not defined(useNimRtl):
|
|||
of nkSlot:
|
||||
add result, $n.name
|
||||
add result, " = "
|
||||
reprAux(result, cast[pointer](cast[ByteAddress](p) + n.offset), n.typ, cl)
|
||||
reprAux(result, cast[pointer](cast[int](p) + n.offset), n.typ, cl)
|
||||
of nkList:
|
||||
for i in 0..n.len-1:
|
||||
if i > 0: add result, ",\n"
|
||||
reprRecordAux(result, p, n.sons[i], cl)
|
||||
of nkCase:
|
||||
var m = selectBranch(p, n)
|
||||
reprAux(result, cast[pointer](cast[ByteAddress](p) + n.offset), n.typ, cl)
|
||||
reprAux(result, cast[pointer](cast[int](p) + n.offset), n.typ, cl)
|
||||
if m != nil: reprRecordAux(result, p, m, cl)
|
||||
|
||||
proc reprRecord(result: var string, p: pointer, typ: PNimType,
|
||||
|
|
@ -307,7 +307,7 @@ when not defined(useNimRtl):
|
|||
var bs = elemtyp.size
|
||||
for i in 0..length - 1:
|
||||
if i > 0: add result, ", "
|
||||
reprAux(result, cast[pointer](cast[ByteAddress](p) + i*bs), elemtyp, cl)
|
||||
reprAux(result, cast[pointer](cast[int](p) + i*bs), elemtyp, cl)
|
||||
add result, "]"
|
||||
deinitReprClosure(cl)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue