rod file viewer for easier debugging of rod files
This commit is contained in:
parent
2f826b5305
commit
beb13ecf62
8 changed files with 303 additions and 21 deletions
|
|
@ -205,6 +205,9 @@ proc encodeType(w: PRodWriter, t: PType, result: var string) =
|
|||
return
|
||||
# we need no surrounding [] here because the type is in a line of its own
|
||||
if t.kind == tyForward: InternalError("encodeType: tyForward")
|
||||
# for the new rodfile viewer we use a preceeding [ so that the data section
|
||||
# can easily be disambiguated:
|
||||
add(result, '[')
|
||||
encodeVInt(ord(t.kind), result)
|
||||
add(result, '+')
|
||||
encodeVInt(t.id, result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue