Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
32 lines (23 loc) · 884 Bytes

File metadata and controls

executable file
·
32 lines (23 loc) · 884 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python3
# Copyright 2016 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.
import sys
import json
def run():
args = sys.argv[1:]
assert len(args) == 2
with open(args[0]) as cd_f:
cd_data = json.load(cd_f)
try:
with open(args[1]) as symbol_f:
symbol_list = {x[0]: x[2] for x in [z.strip().partition(":") for z in symbol_f.readlines() if len(z)]}
except IOError:
# If there's no symbol file, use an empty one
symbol_list = {}
cd_data['cyberdwarf']['function_name_map'] = symbol_list
with open(args[0], "w") as cd_f:
json.dump(cd_data, cd_f, separators=(',', ':'))
if __name__ == '__main__':
run()
Morty Proxy This is a proxified and sanitized view of the page, visit original site.