ic: update to serialize paddingAtEnd
This commit is contained in:
parent
a5e2db2ac5
commit
49f63d3aae
2 changed files with 8 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ define:nimcore
|
||||||
#define:nimIncremental
|
#define:nimIncremental
|
||||||
#import:"$projectpath/testability"
|
#import:"$projectpath/testability"
|
||||||
|
|
||||||
define:staticSqlite
|
#define:staticSqlite
|
||||||
|
|
||||||
@if windows:
|
@if windows:
|
||||||
cincludes: "$lib/wrappers/libffi/common"
|
cincludes: "$lib/wrappers/libffi/common"
|
||||||
|
|
|
||||||
|
|
@ -223,6 +223,9 @@ proc encodeType(g: ModuleGraph, t: PType, result: var string) =
|
||||||
if t.lockLevel.ord != UnspecifiedLockLevel.ord:
|
if t.lockLevel.ord != UnspecifiedLockLevel.ord:
|
||||||
add(result, '\14')
|
add(result, '\14')
|
||||||
encodeVInt(t.lockLevel.int16, result)
|
encodeVInt(t.lockLevel.int16, result)
|
||||||
|
if t.paddingAtEnd != 0:
|
||||||
|
add(result, '\15')
|
||||||
|
encodeVInt(t.paddingAtEnd, result)
|
||||||
for a in t.attachedOps:
|
for a in t.attachedOps:
|
||||||
add(result, '\16')
|
add(result, '\16')
|
||||||
if a == nil:
|
if a == nil:
|
||||||
|
|
@ -631,6 +634,10 @@ proc loadType(g; id: int; info: TLineInfo): PType =
|
||||||
else:
|
else:
|
||||||
result.lockLevel = UnspecifiedLockLevel
|
result.lockLevel = UnspecifiedLockLevel
|
||||||
|
|
||||||
|
if b.s[b.pos] == '\15':
|
||||||
|
inc(b.pos)
|
||||||
|
result.paddingAtEnd = decodeVInt(b.s, b.pos).int16
|
||||||
|
|
||||||
for a in low(result.attachedOps)..high(result.attachedOps):
|
for a in low(result.attachedOps)..high(result.attachedOps):
|
||||||
if b.s[b.pos] == '\16':
|
if b.s[b.pos] == '\16':
|
||||||
inc(b.pos)
|
inc(b.pos)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue