mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Made the core toolbox modules carbon-compatible using the new greylist feature of bgen: non-carbon methods are still included in non-carbon MacPython. The issue of backward compatibility of Python code is still open.
Macmodule and macosmodule have also been carbonified. Some functionality is still missing there.
This commit is contained in:
parent
33d1ad28cb
commit
e79dc76f53
35 changed files with 667 additions and 129 deletions
|
@ -41,10 +41,33 @@ class MyScanner(Scanner):
|
|||
'GetWindowProperty',
|
||||
'GetWindowPropertySize',
|
||||
'RemoveWindowProperty',
|
||||
'MacCloseWindow',
|
||||
# Constants with funny definitions
|
||||
'kMouseUpOutOfSlop',
|
||||
]
|
||||
|
||||
|
||||
def makegreylist(self):
|
||||
return [
|
||||
('#ifndef TARGET_API_MAC_CARBON', [
|
||||
'GetAuxWin',
|
||||
'GetWindowDataHandle',
|
||||
'SaveOld',
|
||||
'DrawNew',
|
||||
'SetWinColor',
|
||||
'SetDeskCPat',
|
||||
'InitWindows',
|
||||
'InitFloatingWindows',
|
||||
'GetWMgrPort',
|
||||
'GetCWMgrPort',
|
||||
'ValidRgn', # Use versions with Window in their name
|
||||
'ValidRect',
|
||||
'InvalRgn',
|
||||
'InvalRect',
|
||||
]),
|
||||
('#ifndef TARGET_API_MAC_CARBON_NOTYET', [
|
||||
'IsValidWindowPtr',
|
||||
])]
|
||||
|
||||
def makeblacklisttypes(self):
|
||||
return [
|
||||
'ProcPtr',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue