(in_file: str)
| 61 | |
| 62 | |
| 63 | def import_c_file(in_file: str) -> str: |
| 64 | in_file = os.path.relpath(in_file, root_dir) |
| 65 | deps.append(in_file) |
| 66 | out_text = "" |
| 67 | |
| 68 | try: |
| 69 | with open(in_file, encoding="utf-8") as file: |
| 70 | out_text += process_file(in_file, list(file)) |
| 71 | except Exception: |
| 72 | with open(in_file) as file: |
| 73 | out_text += process_file(in_file, list(file)) |
| 74 | return out_text |
| 75 | |
| 76 | |
| 77 | def process_file(in_file: str, lines: List[str]) -> str: |
no test coverage detected