MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / export_list

Function export_list

tools/python-3.11.9-amd64/Tools/scripts/nm2def.py:61–73  ·  view source on GitHub ↗
(symbols)

Source from the content-addressed store, hash-verified

59 return symbols
60
61def export_list(symbols):
62
63 data = []
64 code = []
65 for name,(addr,type) in symbols.items():
66 if type in ('C','D'):
67 data.append('\t'+name)
68 else:
69 code.append('\t'+name)
70 data.sort()
71 data.append('')
72 code.sort()
73 return ' DATA\n'.join(data)+'\n'+'\n'.join(code)
74
75# Definition file template
76DEF_TEMPLATE = """\

Callers 1

mainFunction · 0.85

Calls 4

itemsMethod · 0.45
appendMethod · 0.45
sortMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected