mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Trying again to check it in. Changes to:
- Use Universal Headers as input - Change addpack calls to not depend on Guido's disklayout - Checkge testprograms to use new names for some functions
This commit is contained in:
parent
c7cfb95559
commit
ae8a68f40c
16 changed files with 466 additions and 284 deletions
|
@ -1,4 +1,6 @@
|
|||
# Scan <Controls.h>, generating ctlgen.py.
|
||||
import addpack
|
||||
addpack.addpack(':Tools:bgen:bgen')
|
||||
|
||||
from scantools import Scanner
|
||||
|
||||
|
@ -20,7 +22,7 @@ class MyScanner(Scanner):
|
|||
listname = "functions"
|
||||
if arglist:
|
||||
t, n, m = arglist[0]
|
||||
if t == "ControlHandle" and m == "InMode":
|
||||
if t in ("ControlHandle", "ControlRef") and m == "InMode":
|
||||
classname = "Method"
|
||||
listname = "methods"
|
||||
return classname, listname
|
||||
|
@ -35,6 +37,7 @@ class MyScanner(Scanner):
|
|||
def makeblacklisttypes(self):
|
||||
return [
|
||||
'ProcPtr',
|
||||
'ControlActionUPP',
|
||||
'CCTabHandle',
|
||||
'AuxCtlHandle',
|
||||
]
|
||||
|
@ -51,9 +54,13 @@ class MyScanner(Scanner):
|
|||
# For TrackControl
|
||||
([("ProcPtr", "actionProc", "InMode")],
|
||||
[("FakeType('(ControlActionUPP)0')", "*", "*")]),
|
||||
([("ControlActionUPP", "actionProc", "InMode")],
|
||||
[("FakeType('(ControlActionUPP)0')", "*", "*")]),
|
||||
|
||||
([("ControlHandle", "*", "OutMode")],
|
||||
[("ExistingControlHandle", "*", "*")]),
|
||||
([("ControlRef", "*", "OutMode")], # Ditto, for Universal Headers
|
||||
[("ExistingControlHandle", "*", "*")]),
|
||||
]
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue