]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Also scan AERegistry.h and AEObjects.h and create .py definition
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 17 Jul 1995 11:39:04 +0000 (11:39 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 17 Jul 1995 11:39:04 +0000 (11:39 +0000)
files.

Some methods had turned to functions again. Fixed.

Mac/Modules/ae/aescan.py

index 8e74e18e8e7de94682597995d64e818d83a8dd7d..e68c9aecd23e13e2a0722057c2ef458e06eed7ba 100644 (file)
@@ -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__":