this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make darling-stub-gen work with indirect symbols

authored by

Andrew Hyatt and committed by
GitHub
cc92bf22 e9df63d2

+10 -7
+10 -7
tools/darling-stub-gen
··· 12 12 framework_prefix = "/System/Library/Frameworks/" 13 13 private_framework_prefix = "/System/Library/PrivateFrameworks/" 14 14 15 - class_dump = "~/bin/class-dump" 15 + class_dump = "/Users/andrewhyatt/bin/class-dump" 16 16 17 17 copyright = """/* 18 18 This file is part of Darling. ··· 128 128 if line == "": 129 129 continue 130 130 131 - address, id, name = line.split(" ") 132 - # Remove the underscore 133 - name = name[1:] 131 + if len(line.split(" ")) == 3: 132 + address, id, name = line.split(" ") 133 + # Remove the underscore 134 + name = name[1:] 134 135 135 - if id == "T": 136 - functions.append(name) 136 + if id == "T": 137 + functions.append(name) 138 + else: 139 + print("Skipping c function output line") 137 140 138 - class_dump_output = subprocess.check_output(["class-dump", full_path]).decode('utf8').strip() 141 + class_dump_output = subprocess.check_output([class_dump, full_path]).decode('utf8').strip() 139 142 uses_objc = "This file does not contain any Objective-C runtime information." not in class_dump_output 140 143 141 144 c_header = open(header_dir + target_name + ".h", "w")