this repo has no description
1
fork

Configure Feed

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

Merge branch 'master' of https://github.com/darlinghq/darling

+6 -10
+6 -10
tools/stub-gen-c-func.py
··· 15 15 # You should have received a copy of the GNU General Public License 16 16 # along with Darling. If not, see <http://www.gnu.org/licenses/>. 17 17 18 - import sys, subprocess 18 + import sys 19 + import subprocess 19 20 20 21 def usage(): 21 - print "Usage: %s <Mach-O> <output directory>" % sys.argv[0] 22 + print("Usage: %s <Mach-O> <output directory>" % sys.argv[0]) 22 23 23 24 if len(sys.argv) != 3: 24 25 usage() ··· 29 30 out = subprocess.check_output(["nm", "-Ug", macho]) 30 31 31 32 functions = [] 32 - for line in out.split("\n"): 33 + for line in out.splitlines(): 33 34 if line == "": 34 35 continue 35 - components = line.split(" ") 36 - id = components[1] 37 - name = components[2] 36 + address, id, name = line.split(" ") 38 37 # Remove the underscore 39 - name = name[1 : len(name)] 38 + name = name[1 : ] 40 39 41 40 if id == "T": 42 41 functions.append(name) ··· 71 70 for funcname in functions: 72 71 header.write("void %s(void);\n" % funcname) 73 72 source.write("void %s(void) { }\n" % funcname) 74 - 75 - header.close() 76 - source.close()