Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7433568

Browse files
committed
Also scan AERegistry.h and AEObjects.h and create .py definition
files. Some methods had turned to functions again. Fixed.
1 parent 829f88c commit 7433568

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Mac/Modules/ae/aescan.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@
1414
from scantools import Scanner
1515

1616
def main():
17+
print "=== Scanning AERegistry.h for defines ==="
18+
input = "AERegistry.h"
19+
output = "@dummy-registry.py"
20+
defsoutput = "AERegistry.py"
21+
scanner = AppleEventsScanner(input, output, defsoutput)
22+
scanner.scan()
23+
scanner.close()
24+
print "=== Scanning AEObjects.h for defines ==="
25+
# XXXX This isn't correct. We only scan AEObjects.h for defines, but there
26+
# are some functions in there that are probably useful (the accessor stuff)
27+
# once we start writing servers in python.
28+
input = "AEObjects.h"
29+
output = "@dummy-objects.py"
30+
defsoutput = "AEObjects.py"
31+
scanner = AppleEventsScanner(input, output, defsoutput)
32+
scanner.scan()
33+
scanner.close()
34+
print "=== Scanning AppleEvents.py ==="
1735
input = "AppleEvents.h"
1836
output = "aegen.py"
1937
defsoutput = "AppleEvents.py"
@@ -72,6 +90,9 @@ def makerepairinstructions(self):
7290

7391
([("AppleEvent", "theAppleEvent", "OutMode")],
7492
[("AppleEvent_ptr", "*", "InMode")]),
93+
94+
([("AEDescList", "theAEDescList", "OutMode")],
95+
[("AEDescList_ptr", "*", "InMode")]),
7596
]
7697

7798
if __name__ == "__main__":

0 commit comments

Comments
 (0)