mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on Mac OS X). The only items remaining in Mac/Lib are modules that are meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences in resources, etc).
This commit is contained in:
parent
c262a1f51c
commit
60087fb450
136 changed files with 207 additions and 0 deletions
62
Lib/plat-mac/Carbon/Components.py
Normal file
62
Lib/plat-mac/Carbon/Components.py
Normal file
|
@ -0,0 +1,62 @@
|
|||
# Generated from 'Components.h'
|
||||
|
||||
def FOUR_CHAR_CODE(x): return x
|
||||
kAppleManufacturer = FOUR_CHAR_CODE('appl')
|
||||
kComponentResourceType = FOUR_CHAR_CODE('thng')
|
||||
kComponentAliasResourceType = FOUR_CHAR_CODE('thga')
|
||||
kAnyComponentType = 0
|
||||
kAnyComponentSubType = 0
|
||||
kAnyComponentManufacturer = 0
|
||||
kAnyComponentFlagsMask = 0
|
||||
cmpIsMissing = 1L << 29
|
||||
cmpWantsRegisterMessage = 1L << 31
|
||||
kComponentOpenSelect = -1
|
||||
kComponentCloseSelect = -2
|
||||
kComponentCanDoSelect = -3
|
||||
kComponentVersionSelect = -4
|
||||
kComponentRegisterSelect = -5
|
||||
kComponentTargetSelect = -6
|
||||
kComponentUnregisterSelect = -7
|
||||
kComponentGetMPWorkFunctionSelect = -8
|
||||
kComponentExecuteWiredActionSelect = -9
|
||||
kComponentGetPublicResourceSelect = -10
|
||||
componentDoAutoVersion = (1 << 0)
|
||||
componentWantsUnregister = (1 << 1)
|
||||
componentAutoVersionIncludeFlags = (1 << 2)
|
||||
componentHasMultiplePlatforms = (1 << 3)
|
||||
componentLoadResident = (1 << 4)
|
||||
defaultComponentIdentical = 0
|
||||
defaultComponentAnyFlags = 1
|
||||
defaultComponentAnyManufacturer = 2
|
||||
defaultComponentAnySubType = 4
|
||||
defaultComponentAnyFlagsAnyManufacturer = (defaultComponentAnyFlags + defaultComponentAnyManufacturer)
|
||||
defaultComponentAnyFlagsAnyManufacturerAnySubType = (defaultComponentAnyFlags + defaultComponentAnyManufacturer + defaultComponentAnySubType)
|
||||
registerComponentGlobal = 1
|
||||
registerComponentNoDuplicates = 2
|
||||
registerComponentAfterExisting = 4
|
||||
registerComponentAliasesOnly = 8
|
||||
platform68k = 1
|
||||
platformPowerPC = 2
|
||||
platformInterpreted = 3
|
||||
platformWin32 = 4
|
||||
platformPowerPCNativeEntryPoint = 5
|
||||
mpWorkFlagDoWork = (1 << 0)
|
||||
mpWorkFlagDoCompletion = (1 << 1)
|
||||
mpWorkFlagCopyWorkBlock = (1 << 2)
|
||||
mpWorkFlagDontBlock = (1 << 3)
|
||||
mpWorkFlagGetProcessorCount = (1 << 4)
|
||||
mpWorkFlagGetIsRunning = (1 << 6)
|
||||
cmpAliasNoFlags = 0
|
||||
cmpAliasOnlyThisFile = 1
|
||||
uppComponentFunctionImplementedProcInfo = 0x000002F0
|
||||
uppGetComponentVersionProcInfo = 0x000000F0
|
||||
uppComponentSetTargetProcInfo = 0x000003F0
|
||||
uppCallComponentOpenProcInfo = 0x000003F0
|
||||
uppCallComponentCloseProcInfo = 0x000003F0
|
||||
uppCallComponentCanDoProcInfo = 0x000002F0
|
||||
uppCallComponentVersionProcInfo = 0x000000F0
|
||||
uppCallComponentRegisterProcInfo = 0x000000F0
|
||||
uppCallComponentTargetProcInfo = 0x000003F0
|
||||
uppCallComponentUnregisterProcInfo = 0x000000F0
|
||||
uppCallComponentGetMPWorkFunctionProcInfo = 0x00000FF0
|
||||
uppCallComponentGetPublicResourceProcInfo = 0x00003BF0
|
Loading…
Add table
Add a link
Reference in a new issue