Mercurial > cpython-lru_cache-weakref
comparison Python/makeopcodetargets.py @ 61467:f197407bdba2 3.1
Recorded merge of revisions 81032 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines
Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
................
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sun, 09 May 2010 16:14:21 +0000 |
| parents | df090597afaa |
| children | 3c9232a684ae |
comparison
equal
deleted
inserted
replaced
| 61459:f8c19c5f5dd2 | 61467:f197407bdba2 |
|---|---|
| 26 if opname == "STOP_CODE": | 26 if opname == "STOP_CODE": |
| 27 # XXX opcode not implemented | 27 # XXX opcode not implemented |
| 28 continue | 28 continue |
| 29 targets[op] = "TARGET_%s" % opname | 29 targets[op] = "TARGET_%s" % opname |
| 30 f.write("static void *opcode_targets[256] = {\n") | 30 f.write("static void *opcode_targets[256] = {\n") |
| 31 f.write(",\n".join(["\t&&%s" % s for s in targets])) | 31 f.write(",\n".join([" &&%s" % s for s in targets])) |
| 32 f.write("\n};\n") | 32 f.write("\n};\n") |
| 33 | 33 |
| 34 | 34 |
| 35 if __name__ == "__main__": | 35 if __name__ == "__main__": |
| 36 import sys | 36 import sys |
