Removed some header files that largely just contained duplicated entries, and repointed files using them to the proper place. This makes it possible to generate a working ctx.c file for mips_to_c which I've added a simple script to do automatically

This commit is contained in:
Ryan Myers
2021-09-20 11:50:03 -04:00
parent fa860c5da0
commit 260a48c58a
9 changed files with 12 additions and 156 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ def get_c_file(directory):
def import_c_file(in_file):
in_file = os.path.relpath(in_file, root_dir)
cpp_command = ["gcc", "-E", "-P", "-Iinclude", "-Iassets", "-Isrc", "-undef", "-D__sgi", "-D_LANGUAGE_C",
cpp_command = ["gcc", "-E", "-P", "-Iinclude", "-I.", "-Iassets", "-Isrc", "-undef", "-D__sgi", "-D_LANGUAGE_C",
"-DNON_MATCHING", "-D_Static_assert(x, y)=", "-D__attribute__(x)=", in_file]
try:
return subprocess.check_output(cpp_command, cwd=root_dir, encoding="utf-8")