MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / import_c_file

Function import_c_file

tools/decompctx.py:44–55  ·  view source on GitHub ↗
(in_file: str)

Source from the content-addressed store, hash-verified

42
43
44def import_c_file(in_file: str) -> str:
45 in_file = os.path.relpath(in_file, root_dir)
46 deps.append(in_file)
47 out_text = ""
48
49 try:
50 with open(in_file, encoding="utf-8") as file:
51 out_text += process_file(in_file, list(file))
52 except Exception:
53 with open(in_file) as file:
54 out_text += process_file(in_file, list(file))
55 return out_text
56
57
58def process_file(in_file: str, lines: List[str]) -> str:

Callers 2

import_h_fileFunction · 0.85
mainFunction · 0.85

Calls 1

process_fileFunction · 0.85

Tested by

no test coverage detected