summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/ae
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-07-17 11:39:04 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-07-17 11:39:04 (GMT)
commit74335681722edeb98a0449552532bbe8728d1999 (patch)
treeb5e315a7d6c10d209b93e170101f5666364f414e /Mac/Modules/ae
parent829f88c169477c43e642d98e6ca8bfe24857fac4 (diff)
downloadcpython-74335681722edeb98a0449552532bbe8728d1999.zip
cpython-74335681722edeb98a0449552532bbe8728d1999.tar.gz
cpython-74335681722edeb98a0449552532bbe8728d1999.tar.bz2
Also scan AERegistry.h and AEObjects.h and create .py definition
files. Some methods had turned to functions again. Fixed.
Diffstat (limited to 'Mac/Modules/ae')
-rw-r--r--Mac/Modules/ae/aescan.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/Mac/Modules/ae/aescan.py b/Mac/Modules/ae/aescan.py
index 8e74e18..e68c9ae 100644
--- a/Mac/Modules/ae/aescan.py
+++ b/Mac/Modules/ae/aescan.py
@@ -14,6 +14,24 @@ import MacOS
from scantools import Scanner
def main():
+ print "=== Scanning AERegistry.h for defines ==="
+ input = "AERegistry.h"
+ output = "@dummy-registry.py"
+ defsoutput = "AERegistry.py"
+ scanner = AppleEventsScanner(input, output, defsoutput)
+ scanner.scan()
+ scanner.close()
+ print "=== Scanning AEObjects.h for defines ==="
+ # XXXX This isn't correct. We only scan AEObjects.h for defines, but there
+ # are some functions in there that are probably useful (the accessor stuff)
+ # once we start writing servers in python.
+ input = "AEObjects.h"
+ output = "@dummy-objects.py"
+ defsoutput = "AEObjects.py"
+ scanner = AppleEventsScanner(input, output, defsoutput)
+ scanner.scan()
+ scanner.close()
+ print "=== Scanning AppleEvents.py ==="
input = "AppleEvents.h"
output = "aegen.py"
defsoutput = "AppleEvents.py"
@@ -72,6 +90,9 @@ class AppleEventsScanner(Scanner):
([("AppleEvent", "theAppleEvent", "OutMode")],
[("AppleEvent_ptr", "*", "InMode")]),
+
+ ([("AEDescList", "theAEDescList", "OutMode")],
+ [("AEDescList_ptr", "*", "InMode")]),
]
if __name__ == "__main__":