Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d95d2162
Commit
d95d2162
authored
Jul 17, 1995
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also scan AERegistry.h and AEObjects.h and create .py definition
files. Some methods had turned to functions again. Fixed.
parent
80769c98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
Mac/Modules/ae/aescan.py
Mac/Modules/ae/aescan.py
+21
-0
No files found.
Mac/Modules/ae/aescan.py
View file @
d95d2162
...
...
@@ -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__"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment