Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Traits #613

Open
wants to merge 3 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions add_struct_names.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

mexe = ''

with open('arb_os/arbos_before.mexe') as file:
mexe = file.readlines()[0]

text = 'Struct":['

struct = mexe.find(text, 0) + len(text)

while struct is not 8:

print(struct, mexe[(struct - len(text)):struct])

mexe = mexe[0:struct] + '[' + mexe[struct:]

i = struct + 1
count = 1

while count > 0:
if mexe[i] == '[':
count += 1
elif mexe[i] == ']':
count -= 1
i += 1

mexe = mexe[0:i] + ']' + mexe[i:]

print(struct, mexe[(struct - len(text)):(struct + 1)])

struct = mexe.find(text, struct) + len(text)

with open("arb_os/arbos_before.mexe.new", "w") as file:
file.write(mexe)
2 changes: 1 addition & 1 deletion arb_os/arbos-upgrade.mexe

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion arb_os/arbos.mexe

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion arb_os/arbos_before.mexe

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion looptest/bridge2.mini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type GlobalsBeforeUpgrade = struct {
type GlobalsAfterUpgrade = struct {
newGlobal1: option<int> ,
newGlobal2: uint,
newGlobal3: (uint, uint, ),
newGlobal3: (uint, uint),
_jump_table: any,
};

Expand Down
2 changes: 1 addition & 1 deletion looptest/upgrade2_new.mexe

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion looptest/upgrade2_old.mexe

Large diffs are not rendered by default.

Loading