mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 15:11:34 +00:00 
			
		
		
		
	Ported to Universal Header 2.0.1f (i.e. CW6)
This commit is contained in:
		
							parent
							
								
									a0e76bebd3
								
							
						
					
					
						commit
						7d0bc8343f
					
				
					 32 changed files with 519 additions and 490 deletions
				
			
		| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:AppleEvents.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:AppleEvents.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typeBoolean = 'bool'
 | 
					typeBoolean = 'bool'
 | 
				
			||||||
typeChar = 'TEXT'
 | 
					typeChar = 'TEXT'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,26 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Controls.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Controls.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pushButProc = 0
 | 
					pushButProc = 0
 | 
				
			||||||
checkBoxProc = 1
 | 
					checkBoxProc = 1
 | 
				
			||||||
radioButProc = 2
 | 
					radioButProc = 2
 | 
				
			||||||
scrollBarProc = 16
 | 
					scrollBarProc = 16
 | 
				
			||||||
popupMenuProc = 1008
 | 
					popupMenuProc = 1008
 | 
				
			||||||
 | 
					kControlUsesOwningWindowsFontVariant = 1 << 3
 | 
				
			||||||
useWFont = 8
 | 
					useWFont = 8
 | 
				
			||||||
 | 
					kControlNoPart = 0
 | 
				
			||||||
 | 
					kControlLabelPart = 1
 | 
				
			||||||
 | 
					kControlMenuPart = 2
 | 
				
			||||||
 | 
					kControlTrianglePart = 4
 | 
				
			||||||
 | 
					kControlButtonPart = 10
 | 
				
			||||||
 | 
					kControlCheckBoxPart = 11
 | 
				
			||||||
 | 
					kControlRadioButtonPart = 11
 | 
				
			||||||
 | 
					kControlUpButtonPart = 20
 | 
				
			||||||
 | 
					kControlDownButtonPart = 21
 | 
				
			||||||
 | 
					kControlPageUpPart = 22
 | 
				
			||||||
 | 
					kControlPageDownPart = 23
 | 
				
			||||||
 | 
					kControlIndicatorPart = 129
 | 
				
			||||||
 | 
					kControlDisabledPart = 254
 | 
				
			||||||
 | 
					kControlInactivePart = 255
 | 
				
			||||||
inLabel = 1
 | 
					inLabel = 1
 | 
				
			||||||
inMenu = 2
 | 
					inMenu = 2
 | 
				
			||||||
inTriangle = 4
 | 
					inTriangle = 4
 | 
				
			||||||
| 
						 | 
					@ -16,19 +31,12 @@
 | 
				
			||||||
inPageUp = 22
 | 
					inPageUp = 22
 | 
				
			||||||
inPageDown = 23
 | 
					inPageDown = 23
 | 
				
			||||||
inThumb = 129
 | 
					inThumb = 129
 | 
				
			||||||
kNoHiliteControlPart = 0
 | 
					kControlCheckboxUncheckedValue = 0
 | 
				
			||||||
kInLabelControlPart = 1
 | 
					kControlCheckboxCheckedValue = 1
 | 
				
			||||||
kInMenuControlPart = 2
 | 
					kControlCheckboxMixedValue = 2
 | 
				
			||||||
kInTriangleControlPart = 4
 | 
					kControlRadioButtonUncheckedValue = 0
 | 
				
			||||||
kInButtonControlPart = 10
 | 
					kControlRadioButtonCheckedValue = 1
 | 
				
			||||||
kInCheckBoxControlPart = 11
 | 
					kControlRadioButtonMixedValue = 2
 | 
				
			||||||
kInUpButtonControlPart = 20
 | 
					 | 
				
			||||||
kInDownButtonControlPart = 21
 | 
					 | 
				
			||||||
kInPageUpControlPart = 22
 | 
					 | 
				
			||||||
kInPageDownControlPart = 23
 | 
					 | 
				
			||||||
kInIndicatorControlPart = 129
 | 
					 | 
				
			||||||
kReservedControlPart = 254
 | 
					 | 
				
			||||||
kControlInactiveControlPart = 255
 | 
					 | 
				
			||||||
popupFixedWidth = 1 << 0
 | 
					popupFixedWidth = 1 << 0
 | 
				
			||||||
popupVariableWidth = 1 << 1
 | 
					popupVariableWidth = 1 << 1
 | 
				
			||||||
popupUseAddResMenu = 1 << 2
 | 
					popupUseAddResMenu = 1 << 2
 | 
				
			||||||
| 
						 | 
					@ -46,6 +54,10 @@
 | 
				
			||||||
popupTitleRightJust = 0x000000FF
 | 
					popupTitleRightJust = 0x000000FF
 | 
				
			||||||
hAxisOnly = 1
 | 
					hAxisOnly = 1
 | 
				
			||||||
vAxisOnly = 2
 | 
					vAxisOnly = 2
 | 
				
			||||||
 | 
					cFrameColor = 0
 | 
				
			||||||
 | 
					cBodyColor = 1
 | 
				
			||||||
 | 
					cTextColor = 2
 | 
				
			||||||
 | 
					cThumbColor = 3
 | 
				
			||||||
drawCntl = 0
 | 
					drawCntl = 0
 | 
				
			||||||
testCntl = 1
 | 
					testCntl = 1
 | 
				
			||||||
calcCRgns = 2
 | 
					calcCRgns = 2
 | 
				
			||||||
| 
						 | 
					@ -58,7 +70,19 @@
 | 
				
			||||||
calcCntlRgn = 10
 | 
					calcCntlRgn = 10
 | 
				
			||||||
calcThumbRgn = 11
 | 
					calcThumbRgn = 11
 | 
				
			||||||
drawThumbOutline = 12
 | 
					drawThumbOutline = 12
 | 
				
			||||||
cFrameColor = 0
 | 
					kDrawControlEntireControl = 0
 | 
				
			||||||
cBodyColor = 1
 | 
					kDrawControlIndicatorOnly = 129
 | 
				
			||||||
cTextColor = 2
 | 
					kDragControlEntireControl = 0
 | 
				
			||||||
cThumbColor = 3
 | 
					kNoHiliteControlPart = 0
 | 
				
			||||||
 | 
					kInLabelControlPart = 1
 | 
				
			||||||
 | 
					kInMenuControlPart = 2
 | 
				
			||||||
 | 
					kInTriangleControlPart = 4
 | 
				
			||||||
 | 
					kInButtonControlPart = 10
 | 
				
			||||||
 | 
					kInCheckBoxControlPart = 11
 | 
				
			||||||
 | 
					kInUpButtonControlPart = 20
 | 
				
			||||||
 | 
					kInDownButtonControlPart = 21
 | 
				
			||||||
 | 
					kInPageUpControlPart = 22
 | 
				
			||||||
 | 
					kInPageDownControlPart = 23
 | 
				
			||||||
 | 
					kInIndicatorControlPart = 129
 | 
				
			||||||
 | 
					kReservedControlPart = 254
 | 
				
			||||||
 | 
					kControlInactiveControlPart = 255
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Dialogs.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Dialogs.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ctrlItem = 4
 | 
					ctrlItem = 4
 | 
				
			||||||
btnCtrl = 0
 | 
					btnCtrl = 0
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,6 @@
 | 
				
			||||||
stopIcon = 0
 | 
					stopIcon = 0
 | 
				
			||||||
noteIcon = 1
 | 
					noteIcon = 1
 | 
				
			||||||
cautionIcon = 2
 | 
					cautionIcon = 2
 | 
				
			||||||
kIDODialogItem = 24
 | 
					 | 
				
			||||||
overlayDITL = 0
 | 
					overlayDITL = 0
 | 
				
			||||||
appendDITLRight = 1
 | 
					appendDITLRight = 1
 | 
				
			||||||
appendDITLBottom = 2
 | 
					appendDITLBottom = 2
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Events.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Events.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
nullEvent = 0
 | 
					nullEvent = 0
 | 
				
			||||||
mouseDown = 1
 | 
					mouseDown = 1
 | 
				
			||||||
| 
						 | 
					@ -36,6 +36,9 @@
 | 
				
			||||||
alphaLock = 0x0400
 | 
					alphaLock = 0x0400
 | 
				
			||||||
optionKey = 0x0800
 | 
					optionKey = 0x0800
 | 
				
			||||||
controlKey = 0x1000
 | 
					controlKey = 0x1000
 | 
				
			||||||
 | 
					rightShiftKey = 0x2000
 | 
				
			||||||
 | 
					rightOptionKey = 0x4000
 | 
				
			||||||
 | 
					rightControlKey = 0x8000
 | 
				
			||||||
networkEvt = 10
 | 
					networkEvt = 10
 | 
				
			||||||
driverEvt = 11
 | 
					driverEvt = 11
 | 
				
			||||||
app1Evt = 12
 | 
					app1Evt = 12
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Menus.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Menus.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
noMark = 0
 | 
					noMark = 0
 | 
				
			||||||
mDrawMsg = 0
 | 
					mDrawMsg = 0
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:QuickDraw.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDraw.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
invalColReq = -1
 | 
					invalColReq = -1
 | 
				
			||||||
srcCopy = 0
 | 
					srcCopy = 0
 | 
				
			||||||
| 
						 | 
					@ -18,6 +18,7 @@
 | 
				
			||||||
notPatXor = 14
 | 
					notPatXor = 14
 | 
				
			||||||
notPatBic = 15
 | 
					notPatBic = 15
 | 
				
			||||||
grayishTextOr = 49
 | 
					grayishTextOr = 49
 | 
				
			||||||
 | 
					hilitetransfermode = 50
 | 
				
			||||||
blend = 32
 | 
					blend = 32
 | 
				
			||||||
addPin = 33
 | 
					addPin = 33
 | 
				
			||||||
addOver = 34
 | 
					addOver = 34
 | 
				
			||||||
| 
						 | 
					@ -28,6 +29,12 @@
 | 
				
			||||||
adMin = 39
 | 
					adMin = 39
 | 
				
			||||||
ditherCopy = 64
 | 
					ditherCopy = 64
 | 
				
			||||||
transparent = 36
 | 
					transparent = 36
 | 
				
			||||||
 | 
					italicBit = 1
 | 
				
			||||||
 | 
					ulineBit = 2
 | 
				
			||||||
 | 
					outlineBit = 3
 | 
				
			||||||
 | 
					shadowBit = 4
 | 
				
			||||||
 | 
					condenseBit = 5
 | 
				
			||||||
 | 
					extendBit = 6
 | 
				
			||||||
normalBit = 0
 | 
					normalBit = 0
 | 
				
			||||||
inverseBit = 1
 | 
					inverseBit = 1
 | 
				
			||||||
redBit = 4
 | 
					redBit = 4
 | 
				
			||||||
| 
						 | 
					@ -75,7 +82,7 @@
 | 
				
			||||||
kNoConstraint = 0
 | 
					kNoConstraint = 0
 | 
				
			||||||
kVerticalConstraint = 1
 | 
					kVerticalConstraint = 1
 | 
				
			||||||
kHorizontalConstraint = 2
 | 
					kHorizontalConstraint = 2
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:QuickDrawText.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDrawText.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
leftCaret = 0
 | 
					leftCaret = 0
 | 
				
			||||||
rightCaret = -1
 | 
					rightCaret = -1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Resources.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Resources.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
resSysHeap = 64
 | 
					resSysHeap = 64
 | 
				
			||||||
resPurgeable = 32
 | 
					resPurgeable = 32
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Sound.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Sound.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
soundListRsrc = 'snd '
 | 
					soundListRsrc = 'snd '
 | 
				
			||||||
rate44khz = 0xAC440000L
 | 
					rate44khz = 0xAC440000L
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,11 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Windows.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Windows.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					kStandardWindowDefinition = 0
 | 
				
			||||||
 | 
					kRoundWindowDefinition = 1
 | 
				
			||||||
 | 
					kFloatingWindowDefinition = 124
 | 
				
			||||||
 | 
					kModalDialogVariantCode = 1
 | 
				
			||||||
 | 
					kMovableModalDialogVariantCode = 5
 | 
				
			||||||
 | 
					kSideFloaterVariantCode = 8
 | 
				
			||||||
documentProc = 0
 | 
					documentProc = 0
 | 
				
			||||||
dBoxProc = 1
 | 
					dBoxProc = 1
 | 
				
			||||||
plainDBox = 2
 | 
					plainDBox = 2
 | 
				
			||||||
| 
						 | 
					@ -19,6 +25,8 @@
 | 
				
			||||||
floatSideZoomGrowProc = 1999
 | 
					floatSideZoomGrowProc = 1999
 | 
				
			||||||
dialogKind = 2
 | 
					dialogKind = 2
 | 
				
			||||||
userKind = 8
 | 
					userKind = 8
 | 
				
			||||||
 | 
					kDialogWindowKind = 2
 | 
				
			||||||
 | 
					kApplicationWindowKind = 8
 | 
				
			||||||
inDesk = 0
 | 
					inDesk = 0
 | 
				
			||||||
inMenuBar = 1
 | 
					inMenuBar = 1
 | 
				
			||||||
inSysWindow = 2
 | 
					inSysWindow = 2
 | 
				
			||||||
| 
						 | 
					@ -36,11 +44,6 @@
 | 
				
			||||||
wGrow = 5
 | 
					wGrow = 5
 | 
				
			||||||
wDrawGIcon = 6
 | 
					wDrawGIcon = 6
 | 
				
			||||||
deskPatID = 16
 | 
					deskPatID = 16
 | 
				
			||||||
wContentColor = 0
 | 
					 | 
				
			||||||
wFrameColor = 1
 | 
					 | 
				
			||||||
wTextColor = 2
 | 
					 | 
				
			||||||
wHiliteColor = 3
 | 
					 | 
				
			||||||
wTitleBarColor = 4
 | 
					 | 
				
			||||||
wNoHit = 0
 | 
					wNoHit = 0
 | 
				
			||||||
wInContent = 1
 | 
					wInContent = 1
 | 
				
			||||||
wInDrag = 2
 | 
					wInDrag = 2
 | 
				
			||||||
| 
						 | 
					@ -48,3 +51,8 @@
 | 
				
			||||||
wInGoAway = 4
 | 
					wInGoAway = 4
 | 
				
			||||||
wInZoomIn = 5
 | 
					wInZoomIn = 5
 | 
				
			||||||
wInZoomOut = 6
 | 
					wInZoomOut = 6
 | 
				
			||||||
 | 
					wContentColor = 0
 | 
				
			||||||
 | 
					wFrameColor = 1
 | 
				
			||||||
 | 
					wTextColor = 2
 | 
				
			||||||
 | 
					wHiliteColor = 3
 | 
				
			||||||
 | 
					wTitleBarColor = 4
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:AppleEvents.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:AppleEvents.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = AEFunction(OSErr, 'AECreateDesc',
 | 
					f = AEFunction(OSErr, 'AECreateDesc',
 | 
				
			||||||
    (DescType, 'typeCode', InMode),
 | 
					    (DescType, 'typeCode', InMode),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -86,6 +86,172 @@ static void CtlObj_dealloc(self)
 | 
				
			||||||
	PyMem_DEL(self);
 | 
						PyMem_DEL(self);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static PyObject *CtlObj_DisposeControl(_self, _args)
 | 
				
			||||||
 | 
						ControlObject *_self;
 | 
				
			||||||
 | 
						PyObject *_args;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
 | 
						DisposeControl(_self->ob_itself);
 | 
				
			||||||
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
 | 
						_res = Py_None;
 | 
				
			||||||
 | 
						return _res;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static PyObject *CtlObj_ShowControl(_self, _args)
 | 
				
			||||||
 | 
						ControlObject *_self;
 | 
				
			||||||
 | 
						PyObject *_args;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
 | 
						ShowControl(_self->ob_itself);
 | 
				
			||||||
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
 | 
						_res = Py_None;
 | 
				
			||||||
 | 
						return _res;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static PyObject *CtlObj_HideControl(_self, _args)
 | 
				
			||||||
 | 
						ControlObject *_self;
 | 
				
			||||||
 | 
						PyObject *_args;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
 | 
						HideControl(_self->ob_itself);
 | 
				
			||||||
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
 | 
						_res = Py_None;
 | 
				
			||||||
 | 
						return _res;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static PyObject *CtlObj_Draw1Control(_self, _args)
 | 
				
			||||||
 | 
						ControlObject *_self;
 | 
				
			||||||
 | 
						PyObject *_args;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
 | 
						Draw1Control(_self->ob_itself);
 | 
				
			||||||
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
 | 
						_res = Py_None;
 | 
				
			||||||
 | 
						return _res;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static PyObject *CtlObj_HiliteControl(_self, _args)
 | 
				
			||||||
 | 
						ControlObject *_self;
 | 
				
			||||||
 | 
						PyObject *_args;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
 | 
						ControlPartCode hiliteState;
 | 
				
			||||||
 | 
						if (!PyArg_ParseTuple(_args, "h",
 | 
				
			||||||
 | 
						                      &hiliteState))
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
 | 
						HiliteControl(_self->ob_itself,
 | 
				
			||||||
 | 
						              hiliteState);
 | 
				
			||||||
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
 | 
						_res = Py_None;
 | 
				
			||||||
 | 
						return _res;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static PyObject *CtlObj_TrackControl(_self, _args)
 | 
				
			||||||
 | 
						ControlObject *_self;
 | 
				
			||||||
 | 
						PyObject *_args;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
 | 
						ControlPartCode _rv;
 | 
				
			||||||
 | 
						Point thePoint;
 | 
				
			||||||
 | 
						if (!PyArg_ParseTuple(_args, "O&",
 | 
				
			||||||
 | 
						                      PyMac_GetPoint, &thePoint))
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
 | 
						_rv = TrackControl(_self->ob_itself,
 | 
				
			||||||
 | 
						                   thePoint,
 | 
				
			||||||
 | 
						                   (ControlActionUPP)0);
 | 
				
			||||||
 | 
						_res = Py_BuildValue("h",
 | 
				
			||||||
 | 
						                     _rv);
 | 
				
			||||||
 | 
						return _res;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static PyObject *CtlObj_DragControl(_self, _args)
 | 
				
			||||||
 | 
						ControlObject *_self;
 | 
				
			||||||
 | 
						PyObject *_args;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
 | 
						Point startPt;
 | 
				
			||||||
 | 
						Rect limitRect;
 | 
				
			||||||
 | 
						Rect slopRect;
 | 
				
			||||||
 | 
						DragConstraint axis;
 | 
				
			||||||
 | 
						if (!PyArg_ParseTuple(_args, "O&O&O&h",
 | 
				
			||||||
 | 
						                      PyMac_GetPoint, &startPt,
 | 
				
			||||||
 | 
						                      PyMac_GetRect, &limitRect,
 | 
				
			||||||
 | 
						                      PyMac_GetRect, &slopRect,
 | 
				
			||||||
 | 
						                      &axis))
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
 | 
						DragControl(_self->ob_itself,
 | 
				
			||||||
 | 
						            startPt,
 | 
				
			||||||
 | 
						            &limitRect,
 | 
				
			||||||
 | 
						            &slopRect,
 | 
				
			||||||
 | 
						            axis);
 | 
				
			||||||
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
 | 
						_res = Py_None;
 | 
				
			||||||
 | 
						return _res;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static PyObject *CtlObj_TestControl(_self, _args)
 | 
				
			||||||
 | 
						ControlObject *_self;
 | 
				
			||||||
 | 
						PyObject *_args;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
 | 
						ControlPartCode _rv;
 | 
				
			||||||
 | 
						Point thePt;
 | 
				
			||||||
 | 
						if (!PyArg_ParseTuple(_args, "O&",
 | 
				
			||||||
 | 
						                      PyMac_GetPoint, &thePt))
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
 | 
						_rv = TestControl(_self->ob_itself,
 | 
				
			||||||
 | 
						                  thePt);
 | 
				
			||||||
 | 
						_res = Py_BuildValue("h",
 | 
				
			||||||
 | 
						                     _rv);
 | 
				
			||||||
 | 
						return _res;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static PyObject *CtlObj_MoveControl(_self, _args)
 | 
				
			||||||
 | 
						ControlObject *_self;
 | 
				
			||||||
 | 
						PyObject *_args;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
 | 
						SInt16 h;
 | 
				
			||||||
 | 
						SInt16 v;
 | 
				
			||||||
 | 
						if (!PyArg_ParseTuple(_args, "hh",
 | 
				
			||||||
 | 
						                      &h,
 | 
				
			||||||
 | 
						                      &v))
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
 | 
						MoveControl(_self->ob_itself,
 | 
				
			||||||
 | 
						            h,
 | 
				
			||||||
 | 
						            v);
 | 
				
			||||||
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
 | 
						_res = Py_None;
 | 
				
			||||||
 | 
						return _res;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static PyObject *CtlObj_SizeControl(_self, _args)
 | 
				
			||||||
 | 
						ControlObject *_self;
 | 
				
			||||||
 | 
						PyObject *_args;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
 | 
						SInt16 w;
 | 
				
			||||||
 | 
						SInt16 h;
 | 
				
			||||||
 | 
						if (!PyArg_ParseTuple(_args, "hh",
 | 
				
			||||||
 | 
						                      &w,
 | 
				
			||||||
 | 
						                      &h))
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
 | 
						SizeControl(_self->ob_itself,
 | 
				
			||||||
 | 
						            w,
 | 
				
			||||||
 | 
						            h);
 | 
				
			||||||
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
 | 
						_res = Py_None;
 | 
				
			||||||
 | 
						return _res;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *CtlObj_SetControlTitle(_self, _args)
 | 
					static PyObject *CtlObj_SetControlTitle(_self, _args)
 | 
				
			||||||
	ControlObject *_self;
 | 
						ControlObject *_self;
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
| 
						 | 
					@ -118,134 +284,12 @@ static PyObject *CtlObj_GetControlTitle(_self, _args)
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *CtlObj_DisposeControl(_self, _args)
 | 
					 | 
				
			||||||
	ControlObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	DisposeControl(_self->ob_itself);
 | 
					 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
					 | 
				
			||||||
	_res = Py_None;
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *CtlObj_HideControl(_self, _args)
 | 
					 | 
				
			||||||
	ControlObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	HideControl(_self->ob_itself);
 | 
					 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
					 | 
				
			||||||
	_res = Py_None;
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *CtlObj_ShowControl(_self, _args)
 | 
					 | 
				
			||||||
	ControlObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	ShowControl(_self->ob_itself);
 | 
					 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
					 | 
				
			||||||
	_res = Py_None;
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *CtlObj_Draw1Control(_self, _args)
 | 
					 | 
				
			||||||
	ControlObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	Draw1Control(_self->ob_itself);
 | 
					 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
					 | 
				
			||||||
	_res = Py_None;
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *CtlObj_HiliteControl(_self, _args)
 | 
					 | 
				
			||||||
	ControlObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	short hiliteState;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "h",
 | 
					 | 
				
			||||||
	                      &hiliteState))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	HiliteControl(_self->ob_itself,
 | 
					 | 
				
			||||||
	              hiliteState);
 | 
					 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
					 | 
				
			||||||
	_res = Py_None;
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *CtlObj_MoveControl(_self, _args)
 | 
					 | 
				
			||||||
	ControlObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	short h;
 | 
					 | 
				
			||||||
	short v;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "hh",
 | 
					 | 
				
			||||||
	                      &h,
 | 
					 | 
				
			||||||
	                      &v))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	MoveControl(_self->ob_itself,
 | 
					 | 
				
			||||||
	            h,
 | 
					 | 
				
			||||||
	            v);
 | 
					 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
					 | 
				
			||||||
	_res = Py_None;
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *CtlObj_SizeControl(_self, _args)
 | 
					 | 
				
			||||||
	ControlObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	short w;
 | 
					 | 
				
			||||||
	short h;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "hh",
 | 
					 | 
				
			||||||
	                      &w,
 | 
					 | 
				
			||||||
	                      &h))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	SizeControl(_self->ob_itself,
 | 
					 | 
				
			||||||
	            w,
 | 
					 | 
				
			||||||
	            h);
 | 
					 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
					 | 
				
			||||||
	_res = Py_None;
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *CtlObj_SetControlValue(_self, _args)
 | 
					 | 
				
			||||||
	ControlObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	short theValue;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "h",
 | 
					 | 
				
			||||||
	                      &theValue))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	SetControlValue(_self->ob_itself,
 | 
					 | 
				
			||||||
	                theValue);
 | 
					 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
					 | 
				
			||||||
	_res = Py_None;
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *CtlObj_GetControlValue(_self, _args)
 | 
					static PyObject *CtlObj_GetControlValue(_self, _args)
 | 
				
			||||||
	ControlObject *_self;
 | 
						ControlObject *_self;
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	short _rv;
 | 
						SInt16 _rv;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	_rv = GetControlValue(_self->ob_itself);
 | 
						_rv = GetControlValue(_self->ob_itself);
 | 
				
			||||||
| 
						 | 
					@ -254,17 +298,17 @@ static PyObject *CtlObj_GetControlValue(_self, _args)
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *CtlObj_SetControlMinimum(_self, _args)
 | 
					static PyObject *CtlObj_SetControlValue(_self, _args)
 | 
				
			||||||
	ControlObject *_self;
 | 
						ControlObject *_self;
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	short minValue;
 | 
						SInt16 newValue;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "h",
 | 
						if (!PyArg_ParseTuple(_args, "h",
 | 
				
			||||||
	                      &minValue))
 | 
						                      &newValue))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	SetControlMinimum(_self->ob_itself,
 | 
						SetControlValue(_self->ob_itself,
 | 
				
			||||||
	                  minValue);
 | 
						                newValue);
 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
	_res = Py_None;
 | 
						_res = Py_None;
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
| 
						 | 
					@ -275,7 +319,7 @@ static PyObject *CtlObj_GetControlMinimum(_self, _args)
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	short _rv;
 | 
						SInt16 _rv;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	_rv = GetControlMinimum(_self->ob_itself);
 | 
						_rv = GetControlMinimum(_self->ob_itself);
 | 
				
			||||||
| 
						 | 
					@ -284,17 +328,17 @@ static PyObject *CtlObj_GetControlMinimum(_self, _args)
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *CtlObj_SetControlMaximum(_self, _args)
 | 
					static PyObject *CtlObj_SetControlMinimum(_self, _args)
 | 
				
			||||||
	ControlObject *_self;
 | 
						ControlObject *_self;
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	short maxValue;
 | 
						SInt16 newMinimum;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "h",
 | 
						if (!PyArg_ParseTuple(_args, "h",
 | 
				
			||||||
	                      &maxValue))
 | 
						                      &newMinimum))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	SetControlMaximum(_self->ob_itself,
 | 
						SetControlMinimum(_self->ob_itself,
 | 
				
			||||||
	                  maxValue);
 | 
						                  newMinimum);
 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
	_res = Py_None;
 | 
						_res = Py_None;
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
| 
						 | 
					@ -305,7 +349,7 @@ static PyObject *CtlObj_GetControlMaximum(_self, _args)
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	short _rv;
 | 
						SInt16 _rv;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	_rv = GetControlMaximum(_self->ob_itself);
 | 
						_rv = GetControlMaximum(_self->ob_itself);
 | 
				
			||||||
| 
						 | 
					@ -314,32 +358,32 @@ static PyObject *CtlObj_GetControlMaximum(_self, _args)
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *CtlObj_SetControlReference(_self, _args)
 | 
					static PyObject *CtlObj_SetControlMaximum(_self, _args)
 | 
				
			||||||
	ControlObject *_self;
 | 
						ControlObject *_self;
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	long data;
 | 
						SInt16 newMaximum;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "l",
 | 
						if (!PyArg_ParseTuple(_args, "h",
 | 
				
			||||||
	                      &data))
 | 
						                      &newMaximum))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	SetControlReference(_self->ob_itself,
 | 
						SetControlMaximum(_self->ob_itself,
 | 
				
			||||||
	                    data);
 | 
						                  newMaximum);
 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
	_res = Py_None;
 | 
						_res = Py_None;
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *CtlObj_GetControlReference(_self, _args)
 | 
					static PyObject *CtlObj_GetControlVariant(_self, _args)
 | 
				
			||||||
	ControlObject *_self;
 | 
						ControlObject *_self;
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	long _rv;
 | 
						SInt16 _rv;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	_rv = GetControlReference(_self->ob_itself);
 | 
						_rv = GetControlVariant(_self->ob_itself);
 | 
				
			||||||
	_res = Py_BuildValue("l",
 | 
						_res = Py_BuildValue("h",
 | 
				
			||||||
	                     _rv);
 | 
						                     _rv);
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -358,125 +402,81 @@ static PyObject *CtlObj_SetControlAction(_self, _args)
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *CtlObj_DragControl(_self, _args)
 | 
					static PyObject *CtlObj_SetControlReference(_self, _args)
 | 
				
			||||||
	ControlObject *_self;
 | 
						ControlObject *_self;
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	Point startPt;
 | 
						SInt32 data;
 | 
				
			||||||
	Rect limitRect;
 | 
						if (!PyArg_ParseTuple(_args, "l",
 | 
				
			||||||
	Rect slopRect;
 | 
						                      &data))
 | 
				
			||||||
	short axis;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "O&O&O&h",
 | 
					 | 
				
			||||||
	                      PyMac_GetPoint, &startPt,
 | 
					 | 
				
			||||||
	                      PyMac_GetRect, &limitRect,
 | 
					 | 
				
			||||||
	                      PyMac_GetRect, &slopRect,
 | 
					 | 
				
			||||||
	                      &axis))
 | 
					 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	DragControl(_self->ob_itself,
 | 
						SetControlReference(_self->ob_itself,
 | 
				
			||||||
	            startPt,
 | 
						                    data);
 | 
				
			||||||
	            &limitRect,
 | 
					 | 
				
			||||||
	            &slopRect,
 | 
					 | 
				
			||||||
	            axis);
 | 
					 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
						Py_INCREF(Py_None);
 | 
				
			||||||
	_res = Py_None;
 | 
						_res = Py_None;
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *CtlObj_TestControl(_self, _args)
 | 
					static PyObject *CtlObj_GetControlReference(_self, _args)
 | 
				
			||||||
	ControlObject *_self;
 | 
						ControlObject *_self;
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	short _rv;
 | 
						SInt32 _rv;
 | 
				
			||||||
	Point thePt;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "O&",
 | 
					 | 
				
			||||||
	                      PyMac_GetPoint, &thePt))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	_rv = TestControl(_self->ob_itself,
 | 
					 | 
				
			||||||
	                  thePt);
 | 
					 | 
				
			||||||
	_res = Py_BuildValue("h",
 | 
					 | 
				
			||||||
	                     _rv);
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *CtlObj_GetControlVariant(_self, _args)
 | 
					 | 
				
			||||||
	ControlObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	short _rv;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	_rv = GetControlVariant(_self->ob_itself);
 | 
						_rv = GetControlReference(_self->ob_itself);
 | 
				
			||||||
	_res = Py_BuildValue("h",
 | 
						_res = Py_BuildValue("l",
 | 
				
			||||||
	                     _rv);
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *CtlObj_TrackControl(_self, _args)
 | 
					 | 
				
			||||||
	ControlObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	short _rv;
 | 
					 | 
				
			||||||
	Point thePoint;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "O&",
 | 
					 | 
				
			||||||
	                      PyMac_GetPoint, &thePoint))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	_rv = TrackControl(_self->ob_itself,
 | 
					 | 
				
			||||||
	                   thePoint,
 | 
					 | 
				
			||||||
	                   (ControlActionUPP)0);
 | 
					 | 
				
			||||||
	_res = Py_BuildValue("h",
 | 
					 | 
				
			||||||
	                     _rv);
 | 
						                     _rv);
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyMethodDef CtlObj_methods[] = {
 | 
					static PyMethodDef CtlObj_methods[] = {
 | 
				
			||||||
	{"SetControlTitle", (PyCFunction)CtlObj_SetControlTitle, 1,
 | 
					 | 
				
			||||||
	 "(Str255 title) -> None"},
 | 
					 | 
				
			||||||
	{"GetControlTitle", (PyCFunction)CtlObj_GetControlTitle, 1,
 | 
					 | 
				
			||||||
	 "(Str255 title) -> None"},
 | 
					 | 
				
			||||||
	{"DisposeControl", (PyCFunction)CtlObj_DisposeControl, 1,
 | 
						{"DisposeControl", (PyCFunction)CtlObj_DisposeControl, 1,
 | 
				
			||||||
	 "() -> None"},
 | 
						 "() -> None"},
 | 
				
			||||||
	{"HideControl", (PyCFunction)CtlObj_HideControl, 1,
 | 
					 | 
				
			||||||
	 "() -> None"},
 | 
					 | 
				
			||||||
	{"ShowControl", (PyCFunction)CtlObj_ShowControl, 1,
 | 
						{"ShowControl", (PyCFunction)CtlObj_ShowControl, 1,
 | 
				
			||||||
	 "() -> None"},
 | 
						 "() -> None"},
 | 
				
			||||||
 | 
						{"HideControl", (PyCFunction)CtlObj_HideControl, 1,
 | 
				
			||||||
 | 
						 "() -> None"},
 | 
				
			||||||
	{"Draw1Control", (PyCFunction)CtlObj_Draw1Control, 1,
 | 
						{"Draw1Control", (PyCFunction)CtlObj_Draw1Control, 1,
 | 
				
			||||||
	 "() -> None"},
 | 
						 "() -> None"},
 | 
				
			||||||
	{"HiliteControl", (PyCFunction)CtlObj_HiliteControl, 1,
 | 
						{"HiliteControl", (PyCFunction)CtlObj_HiliteControl, 1,
 | 
				
			||||||
	 "(short hiliteState) -> None"},
 | 
						 "(ControlPartCode hiliteState) -> None"},
 | 
				
			||||||
 | 
						{"TrackControl", (PyCFunction)CtlObj_TrackControl, 1,
 | 
				
			||||||
 | 
						 "(Point thePoint) -> (ControlPartCode _rv)"},
 | 
				
			||||||
 | 
						{"DragControl", (PyCFunction)CtlObj_DragControl, 1,
 | 
				
			||||||
 | 
						 "(Point startPt, Rect limitRect, Rect slopRect, DragConstraint axis) -> None"},
 | 
				
			||||||
 | 
						{"TestControl", (PyCFunction)CtlObj_TestControl, 1,
 | 
				
			||||||
 | 
						 "(Point thePt) -> (ControlPartCode _rv)"},
 | 
				
			||||||
	{"MoveControl", (PyCFunction)CtlObj_MoveControl, 1,
 | 
						{"MoveControl", (PyCFunction)CtlObj_MoveControl, 1,
 | 
				
			||||||
	 "(short h, short v) -> None"},
 | 
						 "(SInt16 h, SInt16 v) -> None"},
 | 
				
			||||||
	{"SizeControl", (PyCFunction)CtlObj_SizeControl, 1,
 | 
						{"SizeControl", (PyCFunction)CtlObj_SizeControl, 1,
 | 
				
			||||||
	 "(short w, short h) -> None"},
 | 
						 "(SInt16 w, SInt16 h) -> None"},
 | 
				
			||||||
	{"SetControlValue", (PyCFunction)CtlObj_SetControlValue, 1,
 | 
						{"SetControlTitle", (PyCFunction)CtlObj_SetControlTitle, 1,
 | 
				
			||||||
	 "(short theValue) -> None"},
 | 
						 "(Str255 title) -> None"},
 | 
				
			||||||
 | 
						{"GetControlTitle", (PyCFunction)CtlObj_GetControlTitle, 1,
 | 
				
			||||||
 | 
						 "(Str255 title) -> None"},
 | 
				
			||||||
	{"GetControlValue", (PyCFunction)CtlObj_GetControlValue, 1,
 | 
						{"GetControlValue", (PyCFunction)CtlObj_GetControlValue, 1,
 | 
				
			||||||
	 "() -> (short _rv)"},
 | 
						 "() -> (SInt16 _rv)"},
 | 
				
			||||||
	{"SetControlMinimum", (PyCFunction)CtlObj_SetControlMinimum, 1,
 | 
						{"SetControlValue", (PyCFunction)CtlObj_SetControlValue, 1,
 | 
				
			||||||
	 "(short minValue) -> None"},
 | 
						 "(SInt16 newValue) -> None"},
 | 
				
			||||||
	{"GetControlMinimum", (PyCFunction)CtlObj_GetControlMinimum, 1,
 | 
						{"GetControlMinimum", (PyCFunction)CtlObj_GetControlMinimum, 1,
 | 
				
			||||||
	 "() -> (short _rv)"},
 | 
						 "() -> (SInt16 _rv)"},
 | 
				
			||||||
	{"SetControlMaximum", (PyCFunction)CtlObj_SetControlMaximum, 1,
 | 
						{"SetControlMinimum", (PyCFunction)CtlObj_SetControlMinimum, 1,
 | 
				
			||||||
	 "(short maxValue) -> None"},
 | 
						 "(SInt16 newMinimum) -> None"},
 | 
				
			||||||
	{"GetControlMaximum", (PyCFunction)CtlObj_GetControlMaximum, 1,
 | 
						{"GetControlMaximum", (PyCFunction)CtlObj_GetControlMaximum, 1,
 | 
				
			||||||
	 "() -> (short _rv)"},
 | 
						 "() -> (SInt16 _rv)"},
 | 
				
			||||||
	{"SetControlReference", (PyCFunction)CtlObj_SetControlReference, 1,
 | 
						{"SetControlMaximum", (PyCFunction)CtlObj_SetControlMaximum, 1,
 | 
				
			||||||
	 "(long data) -> None"},
 | 
						 "(SInt16 newMaximum) -> None"},
 | 
				
			||||||
	{"GetControlReference", (PyCFunction)CtlObj_GetControlReference, 1,
 | 
						{"GetControlVariant", (PyCFunction)CtlObj_GetControlVariant, 1,
 | 
				
			||||||
	 "() -> (long _rv)"},
 | 
						 "() -> (SInt16 _rv)"},
 | 
				
			||||||
	{"SetControlAction", (PyCFunction)CtlObj_SetControlAction, 1,
 | 
						{"SetControlAction", (PyCFunction)CtlObj_SetControlAction, 1,
 | 
				
			||||||
	 "() -> None"},
 | 
						 "() -> None"},
 | 
				
			||||||
	{"DragControl", (PyCFunction)CtlObj_DragControl, 1,
 | 
						{"SetControlReference", (PyCFunction)CtlObj_SetControlReference, 1,
 | 
				
			||||||
	 "(Point startPt, Rect limitRect, Rect slopRect, short axis) -> None"},
 | 
						 "(SInt32 data) -> None"},
 | 
				
			||||||
	{"TestControl", (PyCFunction)CtlObj_TestControl, 1,
 | 
						{"GetControlReference", (PyCFunction)CtlObj_GetControlReference, 1,
 | 
				
			||||||
	 "(Point thePt) -> (short _rv)"},
 | 
						 "() -> (SInt32 _rv)"},
 | 
				
			||||||
	{"GetControlVariant", (PyCFunction)CtlObj_GetControlVariant, 1,
 | 
					 | 
				
			||||||
	 "() -> (short _rv)"},
 | 
					 | 
				
			||||||
	{"TrackControl", (PyCFunction)CtlObj_TrackControl, 1,
 | 
					 | 
				
			||||||
	 "(Point thePoint) -> (short _rv)"},
 | 
					 | 
				
			||||||
	{NULL, NULL, 0}
 | 
						{NULL, NULL, 0}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -517,11 +517,11 @@ static PyObject *Ctl_NewControl(_self, _args)
 | 
				
			||||||
	Rect boundsRect;
 | 
						Rect boundsRect;
 | 
				
			||||||
	Str255 title;
 | 
						Str255 title;
 | 
				
			||||||
	Boolean visible;
 | 
						Boolean visible;
 | 
				
			||||||
	short value;
 | 
						SInt16 value;
 | 
				
			||||||
	short min;
 | 
						SInt16 min;
 | 
				
			||||||
	short max;
 | 
						SInt16 max;
 | 
				
			||||||
	short procID;
 | 
						SInt16 procID;
 | 
				
			||||||
	long refCon;
 | 
						SInt32 refCon;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "O&O&O&bhhhhl",
 | 
						if (!PyArg_ParseTuple(_args, "O&O&O&bhhhhl",
 | 
				
			||||||
	                      WinObj_Convert, &theWindow,
 | 
						                      WinObj_Convert, &theWindow,
 | 
				
			||||||
	                      PyMac_GetRect, &boundsRect,
 | 
						                      PyMac_GetRect, &boundsRect,
 | 
				
			||||||
| 
						 | 
					@ -553,7 +553,7 @@ static PyObject *Ctl_GetNewControl(_self, _args)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	ControlHandle _rv;
 | 
						ControlHandle _rv;
 | 
				
			||||||
	short controlID;
 | 
						SInt16 controlID;
 | 
				
			||||||
	WindowPtr owner;
 | 
						WindowPtr owner;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "hO&",
 | 
						if (!PyArg_ParseTuple(_args, "hO&",
 | 
				
			||||||
	                      &controlID,
 | 
						                      &controlID,
 | 
				
			||||||
| 
						 | 
					@ -617,7 +617,7 @@ static PyObject *Ctl_FindControl(_self, _args)
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	short _rv;
 | 
						ControlPartCode _rv;
 | 
				
			||||||
	Point thePoint;
 | 
						Point thePoint;
 | 
				
			||||||
	WindowPtr theWindow;
 | 
						WindowPtr theWindow;
 | 
				
			||||||
	ControlHandle theControl;
 | 
						ControlHandle theControl;
 | 
				
			||||||
| 
						 | 
					@ -636,9 +636,9 @@ static PyObject *Ctl_FindControl(_self, _args)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyMethodDef Ctl_methods[] = {
 | 
					static PyMethodDef Ctl_methods[] = {
 | 
				
			||||||
	{"NewControl", (PyCFunction)Ctl_NewControl, 1,
 | 
						{"NewControl", (PyCFunction)Ctl_NewControl, 1,
 | 
				
			||||||
	 "(WindowPtr theWindow, Rect boundsRect, Str255 title, Boolean visible, short value, short min, short max, short procID, long refCon) -> (ControlHandle _rv)"},
 | 
						 "(WindowPtr theWindow, Rect boundsRect, Str255 title, Boolean visible, SInt16 value, SInt16 min, SInt16 max, SInt16 procID, SInt32 refCon) -> (ControlHandle _rv)"},
 | 
				
			||||||
	{"GetNewControl", (PyCFunction)Ctl_GetNewControl, 1,
 | 
						{"GetNewControl", (PyCFunction)Ctl_GetNewControl, 1,
 | 
				
			||||||
	 "(short controlID, WindowPtr owner) -> (ControlHandle _rv)"},
 | 
						 "(SInt16 controlID, WindowPtr owner) -> (ControlHandle _rv)"},
 | 
				
			||||||
	{"KillControls", (PyCFunction)Ctl_KillControls, 1,
 | 
						{"KillControls", (PyCFunction)Ctl_KillControls, 1,
 | 
				
			||||||
	 "(WindowPtr theWindow) -> None"},
 | 
						 "(WindowPtr theWindow) -> None"},
 | 
				
			||||||
	{"DrawControls", (PyCFunction)Ctl_DrawControls, 1,
 | 
						{"DrawControls", (PyCFunction)Ctl_DrawControls, 1,
 | 
				
			||||||
| 
						 | 
					@ -646,7 +646,7 @@ static PyMethodDef Ctl_methods[] = {
 | 
				
			||||||
	{"UpdateControls", (PyCFunction)Ctl_UpdateControls, 1,
 | 
						{"UpdateControls", (PyCFunction)Ctl_UpdateControls, 1,
 | 
				
			||||||
	 "(WindowPtr theWindow) -> None"},
 | 
						 "(WindowPtr theWindow) -> None"},
 | 
				
			||||||
	{"FindControl", (PyCFunction)Ctl_FindControl, 1,
 | 
						{"FindControl", (PyCFunction)Ctl_FindControl, 1,
 | 
				
			||||||
	 "(Point thePoint, WindowPtr theWindow) -> (short _rv, ControlHandle theControl)"},
 | 
						 "(Point thePoint, WindowPtr theWindow) -> (ControlPartCode _rv, ControlHandle theControl)"},
 | 
				
			||||||
	{NULL, NULL, 0}
 | 
						{NULL, NULL, 0}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,32 +1,20 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Controls.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Controls.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(ControlRef, 'NewControl',
 | 
					f = Function(ControlRef, 'NewControl',
 | 
				
			||||||
    (WindowRef, 'theWindow', InMode),
 | 
					    (WindowRef, 'theWindow', InMode),
 | 
				
			||||||
    (Rect_ptr, 'boundsRect', InMode),
 | 
					    (Rect_ptr, 'boundsRect', InMode),
 | 
				
			||||||
    (ConstStr255Param, 'title', InMode),
 | 
					    (ConstStr255Param, 'title', InMode),
 | 
				
			||||||
    (Boolean, 'visible', InMode),
 | 
					    (Boolean, 'visible', InMode),
 | 
				
			||||||
    (short, 'value', InMode),
 | 
					    (SInt16, 'value', InMode),
 | 
				
			||||||
    (short, 'min', InMode),
 | 
					    (SInt16, 'min', InMode),
 | 
				
			||||||
    (short, 'max', InMode),
 | 
					    (SInt16, 'max', InMode),
 | 
				
			||||||
    (short, 'procID', InMode),
 | 
					    (SInt16, 'procID', InMode),
 | 
				
			||||||
    (long, 'refCon', InMode),
 | 
					    (SInt32, 'refCon', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(void, 'SetControlTitle',
 | 
					 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					 | 
				
			||||||
    (ConstStr255Param, 'title', InMode),
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
methods.append(f)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
f = Method(void, 'GetControlTitle',
 | 
					 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					 | 
				
			||||||
    (Str255, 'title', InMode),
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
methods.append(f)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
f = Function(ControlRef, 'GetNewControl',
 | 
					f = Function(ControlRef, 'GetNewControl',
 | 
				
			||||||
    (short, 'controlID', InMode),
 | 
					    (SInt16, 'controlID', InMode),
 | 
				
			||||||
    (WindowRef, 'owner', InMode),
 | 
					    (WindowRef, 'owner', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
| 
						 | 
					@ -41,12 +29,12 @@
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(void, 'HideControl',
 | 
					f = Method(void, 'ShowControl',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(void, 'ShowControl',
 | 
					f = Method(void, 'HideControl',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
| 
						 | 
					@ -61,72 +49,107 @@
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(void, 'HiliteControl',
 | 
					 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					 | 
				
			||||||
    (short, 'hiliteState', InMode),
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
methods.append(f)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
f = Function(void, 'UpdateControls',
 | 
					f = Function(void, 'UpdateControls',
 | 
				
			||||||
    (WindowRef, 'theWindow', InMode),
 | 
					    (WindowRef, 'theWindow', InMode),
 | 
				
			||||||
    (RgnHandle, 'updateRgn', InMode),
 | 
					    (RgnHandle, 'updateRgn', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					f = Method(void, 'HiliteControl',
 | 
				
			||||||
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
 | 
					    (ControlPartCode, 'hiliteState', InMode),
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					f = Method(ControlPartCode, 'TrackControl',
 | 
				
			||||||
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
 | 
					    (Point, 'thePoint', InMode),
 | 
				
			||||||
 | 
					    (FakeType('(ControlActionUPP)0'), 'actionProc', InMode),
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					f = Method(void, 'DragControl',
 | 
				
			||||||
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
 | 
					    (Point, 'startPt', InMode),
 | 
				
			||||||
 | 
					    (Rect_ptr, 'limitRect', InMode),
 | 
				
			||||||
 | 
					    (Rect_ptr, 'slopRect', InMode),
 | 
				
			||||||
 | 
					    (DragConstraint, 'axis', InMode),
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					f = Method(ControlPartCode, 'TestControl',
 | 
				
			||||||
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
 | 
					    (Point, 'thePt', InMode),
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					f = Function(ControlPartCode, 'FindControl',
 | 
				
			||||||
 | 
					    (Point, 'thePoint', InMode),
 | 
				
			||||||
 | 
					    (WindowRef, 'theWindow', InMode),
 | 
				
			||||||
 | 
					    (ExistingControlHandle, 'theControl', OutMode),
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(void, 'MoveControl',
 | 
					f = Method(void, 'MoveControl',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
    (short, 'h', InMode),
 | 
					    (SInt16, 'h', InMode),
 | 
				
			||||||
    (short, 'v', InMode),
 | 
					    (SInt16, 'v', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(void, 'SizeControl',
 | 
					f = Method(void, 'SizeControl',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
    (short, 'w', InMode),
 | 
					    (SInt16, 'w', InMode),
 | 
				
			||||||
    (short, 'h', InMode),
 | 
					    (SInt16, 'h', InMode),
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					f = Method(void, 'SetControlTitle',
 | 
				
			||||||
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
 | 
					    (ConstStr255Param, 'title', InMode),
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					f = Method(void, 'GetControlTitle',
 | 
				
			||||||
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
 | 
					    (Str255, 'title', InMode),
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					f = Method(SInt16, 'GetControlValue',
 | 
				
			||||||
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(void, 'SetControlValue',
 | 
					f = Method(void, 'SetControlValue',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
    (short, 'theValue', InMode),
 | 
					    (SInt16, 'newValue', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(short, 'GetControlValue',
 | 
					f = Method(SInt16, 'GetControlMinimum',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(void, 'SetControlMinimum',
 | 
					f = Method(void, 'SetControlMinimum',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
    (short, 'minValue', InMode),
 | 
					    (SInt16, 'newMinimum', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(short, 'GetControlMinimum',
 | 
					f = Method(SInt16, 'GetControlMaximum',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(void, 'SetControlMaximum',
 | 
					f = Method(void, 'SetControlMaximum',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
    (short, 'maxValue', InMode),
 | 
					    (SInt16, 'newMaximum', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(short, 'GetControlMaximum',
 | 
					f = Method(SInt16, 'GetControlVariant',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
methods.append(f)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
f = Method(void, 'SetControlReference',
 | 
					 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					 | 
				
			||||||
    (long, 'data', InMode),
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
methods.append(f)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
f = Method(long, 'GetControlReference',
 | 
					 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
| 
						 | 
					@ -137,37 +160,14 @@
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(void, 'DragControl',
 | 
					f = Method(void, 'SetControlReference',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
    (Point, 'startPt', InMode),
 | 
					    (SInt32, 'data', InMode),
 | 
				
			||||||
    (Rect_ptr, 'limitRect', InMode),
 | 
					 | 
				
			||||||
    (Rect_ptr, 'slopRect', InMode),
 | 
					 | 
				
			||||||
    (short, 'axis', InMode),
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(short, 'TestControl',
 | 
					f = Method(SInt32, 'GetControlReference',
 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					 | 
				
			||||||
    (Point, 'thePt', InMode),
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
methods.append(f)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
f = Function(short, 'FindControl',
 | 
					 | 
				
			||||||
    (Point, 'thePoint', InMode),
 | 
					 | 
				
			||||||
    (WindowRef, 'theWindow', InMode),
 | 
					 | 
				
			||||||
    (ExistingControlHandle, 'theControl', OutMode),
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
functions.append(f)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
f = Method(short, 'GetControlVariant',
 | 
					 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					    (ControlRef, 'theControl', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Method(short, 'TrackControl',
 | 
					 | 
				
			||||||
    (ControlRef, 'theControl', InMode),
 | 
					 | 
				
			||||||
    (Point, 'thePoint', InMode),
 | 
					 | 
				
			||||||
    (FakeType('(ControlActionUPP)0'), 'actionProc', InMode),
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
methods.append(f)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -29,6 +29,8 @@
 | 
				
			||||||
ExistingControlHandle = OpaqueByValueType(OBJECTTYPE, "CtlObj_WhichControl", "BUG")
 | 
					ExistingControlHandle = OpaqueByValueType(OBJECTTYPE, "CtlObj_WhichControl", "BUG")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RgnHandle = FakeType("theWindow->visRgn") # XXX
 | 
					RgnHandle = FakeType("theWindow->visRgn") # XXX
 | 
				
			||||||
 | 
					ControlPartCode = Type("ControlPartCode", "h")
 | 
				
			||||||
 | 
					DragConstraint = Type("DragConstraint", "h")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
includestuff = includestuff + """
 | 
					includestuff = includestuff + """
 | 
				
			||||||
#include <%s>""" % MACHEADERFILE + """
 | 
					#include <%s>""" % MACHEADERFILE + """
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Dialogs.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Dialogs.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(DialogRef, 'NewDialog',
 | 
					f = Function(DialogRef, 'NewDialog',
 | 
				
			||||||
    (NullStorage, 'wStorage', InMode),
 | 
					    (NullStorage, 'wStorage', InMode),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -39,26 +39,12 @@ extern PyObject *WinObj_WhichWindow(WindowPtr);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *Evt_Error;
 | 
					static PyObject *Evt_Error;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *Evt_GetDblTime(_self, _args)
 | 
					 | 
				
			||||||
	PyObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	long _rv;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	_rv = GetDblTime();
 | 
					 | 
				
			||||||
	_res = Py_BuildValue("l",
 | 
					 | 
				
			||||||
	                     _rv);
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *Evt_GetCaretTime(_self, _args)
 | 
					static PyObject *Evt_GetCaretTime(_self, _args)
 | 
				
			||||||
	PyObject *_self;
 | 
						PyObject *_self;
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	long _rv;
 | 
						UInt32 _rv;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	_rv = GetCaretTime();
 | 
						_rv = GetCaretTime();
 | 
				
			||||||
| 
						 | 
					@ -72,7 +58,7 @@ static PyObject *Evt_SetEventMask(_self, _args)
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	short value;
 | 
						MacOSEventMask value;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "h",
 | 
						if (!PyArg_ParseTuple(_args, "h",
 | 
				
			||||||
	                      &value))
 | 
						                      &value))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
| 
						 | 
					@ -82,13 +68,27 @@ static PyObject *Evt_SetEventMask(_self, _args)
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static PyObject *Evt_GetDblTime(_self, _args)
 | 
				
			||||||
 | 
						PyObject *_self;
 | 
				
			||||||
 | 
						PyObject *_args;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
 | 
						UInt32 _rv;
 | 
				
			||||||
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
 | 
							return NULL;
 | 
				
			||||||
 | 
						_rv = GetDblTime();
 | 
				
			||||||
 | 
						_res = Py_BuildValue("l",
 | 
				
			||||||
 | 
						                     _rv);
 | 
				
			||||||
 | 
						return _res;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *Evt_GetNextEvent(_self, _args)
 | 
					static PyObject *Evt_GetNextEvent(_self, _args)
 | 
				
			||||||
	PyObject *_self;
 | 
						PyObject *_self;
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	Boolean _rv;
 | 
						Boolean _rv;
 | 
				
			||||||
	short eventMask;
 | 
						MacOSEventMask eventMask;
 | 
				
			||||||
	EventRecord theEvent;
 | 
						EventRecord theEvent;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "h",
 | 
						if (!PyArg_ParseTuple(_args, "h",
 | 
				
			||||||
	                      &eventMask))
 | 
						                      &eventMask))
 | 
				
			||||||
| 
						 | 
					@ -107,9 +107,9 @@ static PyObject *Evt_WaitNextEvent(_self, _args)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	Boolean _rv;
 | 
						Boolean _rv;
 | 
				
			||||||
	short eventMask;
 | 
						MacOSEventMask eventMask;
 | 
				
			||||||
	EventRecord theEvent;
 | 
						EventRecord theEvent;
 | 
				
			||||||
	unsigned long sleep;
 | 
						UInt32 sleep;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "hl",
 | 
						if (!PyArg_ParseTuple(_args, "hl",
 | 
				
			||||||
	                      &eventMask,
 | 
						                      &eventMask,
 | 
				
			||||||
	                      &sleep))
 | 
						                      &sleep))
 | 
				
			||||||
| 
						 | 
					@ -130,7 +130,7 @@ static PyObject *Evt_EventAvail(_self, _args)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	Boolean _rv;
 | 
						Boolean _rv;
 | 
				
			||||||
	short eventMask;
 | 
						MacOSEventMask eventMask;
 | 
				
			||||||
	EventRecord theEvent;
 | 
						EventRecord theEvent;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "h",
 | 
						if (!PyArg_ParseTuple(_args, "h",
 | 
				
			||||||
	                      &eventMask))
 | 
						                      &eventMask))
 | 
				
			||||||
| 
						 | 
					@ -219,7 +219,7 @@ static PyObject *Evt_TickCount(_self, _args)
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	unsigned long _rv;
 | 
						UInt32 _rv;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, ""))
 | 
						if (!PyArg_ParseTuple(_args, ""))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	_rv = TickCount();
 | 
						_rv = TickCount();
 | 
				
			||||||
| 
						 | 
					@ -234,8 +234,8 @@ static PyObject *Evt_PostEvent(_self, _args)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	OSErr _err;
 | 
						OSErr _err;
 | 
				
			||||||
	short eventNum;
 | 
						MacOSEventKind eventNum;
 | 
				
			||||||
	long eventMsg;
 | 
						UInt32 eventMsg;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "hl",
 | 
						if (!PyArg_ParseTuple(_args, "hl",
 | 
				
			||||||
	                      &eventNum,
 | 
						                      &eventNum,
 | 
				
			||||||
	                      &eventMsg))
 | 
						                      &eventMsg))
 | 
				
			||||||
| 
						 | 
					@ -254,7 +254,7 @@ static PyObject *Evt_OSEventAvail(_self, _args)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	Boolean _rv;
 | 
						Boolean _rv;
 | 
				
			||||||
	short mask;
 | 
						MacOSEventMask mask;
 | 
				
			||||||
	EventRecord theEvent;
 | 
						EventRecord theEvent;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "h",
 | 
						if (!PyArg_ParseTuple(_args, "h",
 | 
				
			||||||
	                      &mask))
 | 
						                      &mask))
 | 
				
			||||||
| 
						 | 
					@ -273,7 +273,7 @@ static PyObject *Evt_GetOSEvent(_self, _args)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	Boolean _rv;
 | 
						Boolean _rv;
 | 
				
			||||||
	short mask;
 | 
						MacOSEventMask mask;
 | 
				
			||||||
	EventRecord theEvent;
 | 
						EventRecord theEvent;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "h",
 | 
						if (!PyArg_ParseTuple(_args, "h",
 | 
				
			||||||
	                      &mask))
 | 
						                      &mask))
 | 
				
			||||||
| 
						 | 
					@ -291,8 +291,8 @@ static PyObject *Evt_FlushEvents(_self, _args)
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	short whichMask;
 | 
						MacOSEventMask whichMask;
 | 
				
			||||||
	short stopMask;
 | 
						MacOSEventMask stopMask;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "hh",
 | 
						if (!PyArg_ParseTuple(_args, "hh",
 | 
				
			||||||
	                      &whichMask,
 | 
						                      &whichMask,
 | 
				
			||||||
	                      &stopMask))
 | 
						                      &stopMask))
 | 
				
			||||||
| 
						 | 
					@ -352,18 +352,18 @@ static PyObject *Evt_SystemEvent(_self, _args)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyMethodDef Evt_methods[] = {
 | 
					static PyMethodDef Evt_methods[] = {
 | 
				
			||||||
	{"GetDblTime", (PyCFunction)Evt_GetDblTime, 1,
 | 
					 | 
				
			||||||
	 "() -> (long _rv)"},
 | 
					 | 
				
			||||||
	{"GetCaretTime", (PyCFunction)Evt_GetCaretTime, 1,
 | 
						{"GetCaretTime", (PyCFunction)Evt_GetCaretTime, 1,
 | 
				
			||||||
	 "() -> (long _rv)"},
 | 
						 "() -> (UInt32 _rv)"},
 | 
				
			||||||
	{"SetEventMask", (PyCFunction)Evt_SetEventMask, 1,
 | 
						{"SetEventMask", (PyCFunction)Evt_SetEventMask, 1,
 | 
				
			||||||
	 "(short value) -> None"},
 | 
						 "(MacOSEventMask value) -> None"},
 | 
				
			||||||
 | 
						{"GetDblTime", (PyCFunction)Evt_GetDblTime, 1,
 | 
				
			||||||
 | 
						 "() -> (UInt32 _rv)"},
 | 
				
			||||||
	{"GetNextEvent", (PyCFunction)Evt_GetNextEvent, 1,
 | 
						{"GetNextEvent", (PyCFunction)Evt_GetNextEvent, 1,
 | 
				
			||||||
	 "(short eventMask) -> (Boolean _rv, EventRecord theEvent)"},
 | 
						 "(MacOSEventMask eventMask) -> (Boolean _rv, EventRecord theEvent)"},
 | 
				
			||||||
	{"WaitNextEvent", (PyCFunction)Evt_WaitNextEvent, 1,
 | 
						{"WaitNextEvent", (PyCFunction)Evt_WaitNextEvent, 1,
 | 
				
			||||||
	 "(short eventMask, unsigned long sleep) -> (Boolean _rv, EventRecord theEvent)"},
 | 
						 "(MacOSEventMask eventMask, UInt32 sleep) -> (Boolean _rv, EventRecord theEvent)"},
 | 
				
			||||||
	{"EventAvail", (PyCFunction)Evt_EventAvail, 1,
 | 
						{"EventAvail", (PyCFunction)Evt_EventAvail, 1,
 | 
				
			||||||
	 "(short eventMask) -> (Boolean _rv, EventRecord theEvent)"},
 | 
						 "(MacOSEventMask eventMask) -> (Boolean _rv, EventRecord theEvent)"},
 | 
				
			||||||
	{"GetMouse", (PyCFunction)Evt_GetMouse, 1,
 | 
						{"GetMouse", (PyCFunction)Evt_GetMouse, 1,
 | 
				
			||||||
	 "() -> (Point mouseLoc)"},
 | 
						 "() -> (Point mouseLoc)"},
 | 
				
			||||||
	{"Button", (PyCFunction)Evt_Button, 1,
 | 
						{"Button", (PyCFunction)Evt_Button, 1,
 | 
				
			||||||
| 
						 | 
					@ -375,15 +375,15 @@ static PyMethodDef Evt_methods[] = {
 | 
				
			||||||
	{"GetKeys", (PyCFunction)Evt_GetKeys, 1,
 | 
						{"GetKeys", (PyCFunction)Evt_GetKeys, 1,
 | 
				
			||||||
	 "() -> (KeyMap theKeys)"},
 | 
						 "() -> (KeyMap theKeys)"},
 | 
				
			||||||
	{"TickCount", (PyCFunction)Evt_TickCount, 1,
 | 
						{"TickCount", (PyCFunction)Evt_TickCount, 1,
 | 
				
			||||||
	 "() -> (unsigned long _rv)"},
 | 
						 "() -> (UInt32 _rv)"},
 | 
				
			||||||
	{"PostEvent", (PyCFunction)Evt_PostEvent, 1,
 | 
						{"PostEvent", (PyCFunction)Evt_PostEvent, 1,
 | 
				
			||||||
	 "(short eventNum, long eventMsg) -> None"},
 | 
						 "(MacOSEventKind eventNum, UInt32 eventMsg) -> None"},
 | 
				
			||||||
	{"OSEventAvail", (PyCFunction)Evt_OSEventAvail, 1,
 | 
						{"OSEventAvail", (PyCFunction)Evt_OSEventAvail, 1,
 | 
				
			||||||
	 "(short mask) -> (Boolean _rv, EventRecord theEvent)"},
 | 
						 "(MacOSEventMask mask) -> (Boolean _rv, EventRecord theEvent)"},
 | 
				
			||||||
	{"GetOSEvent", (PyCFunction)Evt_GetOSEvent, 1,
 | 
						{"GetOSEvent", (PyCFunction)Evt_GetOSEvent, 1,
 | 
				
			||||||
	 "(short mask) -> (Boolean _rv, EventRecord theEvent)"},
 | 
						 "(MacOSEventMask mask) -> (Boolean _rv, EventRecord theEvent)"},
 | 
				
			||||||
	{"FlushEvents", (PyCFunction)Evt_FlushEvents, 1,
 | 
						{"FlushEvents", (PyCFunction)Evt_FlushEvents, 1,
 | 
				
			||||||
	 "(short whichMask, short stopMask) -> None"},
 | 
						 "(MacOSEventMask whichMask, MacOSEventMask stopMask) -> None"},
 | 
				
			||||||
	{"SystemClick", (PyCFunction)Evt_SystemClick, 1,
 | 
						{"SystemClick", (PyCFunction)Evt_SystemClick, 1,
 | 
				
			||||||
	 "(EventRecord theEvent, WindowPtr theWindow) -> None"},
 | 
						 "(EventRecord theEvent, WindowPtr theWindow) -> None"},
 | 
				
			||||||
	{"SystemTask", (PyCFunction)Evt_SystemTask, 1,
 | 
						{"SystemTask", (PyCFunction)Evt_SystemTask, 1,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,34 +1,34 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Events.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Events.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(long, 'GetDblTime',
 | 
					f = Function(UInt32, 'GetCaretTime',
 | 
				
			||||||
)
 | 
					 | 
				
			||||||
functions.append(f)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
f = Function(long, 'GetCaretTime',
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(void, 'SetEventMask',
 | 
					f = Function(void, 'SetEventMask',
 | 
				
			||||||
    (short, 'value', InMode),
 | 
					    (MacOSEventMask, 'value', InMode),
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					f = Function(UInt32, 'GetDblTime',
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(Boolean, 'GetNextEvent',
 | 
					f = Function(Boolean, 'GetNextEvent',
 | 
				
			||||||
    (short, 'eventMask', InMode),
 | 
					    (MacOSEventMask, 'eventMask', InMode),
 | 
				
			||||||
    (EventRecord, 'theEvent', OutMode),
 | 
					    (EventRecord, 'theEvent', OutMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(Boolean, 'WaitNextEvent',
 | 
					f = Function(Boolean, 'WaitNextEvent',
 | 
				
			||||||
    (short, 'eventMask', InMode),
 | 
					    (MacOSEventMask, 'eventMask', InMode),
 | 
				
			||||||
    (EventRecord, 'theEvent', OutMode),
 | 
					    (EventRecord, 'theEvent', OutMode),
 | 
				
			||||||
    (unsigned_long, 'sleep', InMode),
 | 
					    (UInt32, 'sleep', InMode),
 | 
				
			||||||
    (RgnHandle, 'mouseRgn', InMode),
 | 
					    (RgnHandle, 'mouseRgn', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(Boolean, 'EventAvail',
 | 
					f = Function(Boolean, 'EventAvail',
 | 
				
			||||||
    (short, 'eventMask', InMode),
 | 
					    (MacOSEventMask, 'eventMask', InMode),
 | 
				
			||||||
    (EventRecord, 'theEvent', OutMode),
 | 
					    (EventRecord, 'theEvent', OutMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
| 
						 | 
					@ -55,31 +55,31 @@
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(unsigned_long, 'TickCount',
 | 
					f = Function(UInt32, 'TickCount',
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(OSErr, 'PostEvent',
 | 
					f = Function(OSErr, 'PostEvent',
 | 
				
			||||||
    (short, 'eventNum', InMode),
 | 
					    (MacOSEventKind, 'eventNum', InMode),
 | 
				
			||||||
    (long, 'eventMsg', InMode),
 | 
					    (UInt32, 'eventMsg', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(Boolean, 'OSEventAvail',
 | 
					f = Function(Boolean, 'OSEventAvail',
 | 
				
			||||||
    (short, 'mask', InMode),
 | 
					    (MacOSEventMask, 'mask', InMode),
 | 
				
			||||||
    (EventRecord, 'theEvent', OutMode),
 | 
					    (EventRecord, 'theEvent', OutMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(Boolean, 'GetOSEvent',
 | 
					f = Function(Boolean, 'GetOSEvent',
 | 
				
			||||||
    (short, 'mask', InMode),
 | 
					    (MacOSEventMask, 'mask', InMode),
 | 
				
			||||||
    (EventRecord, 'theEvent', OutMode),
 | 
					    (EventRecord, 'theEvent', OutMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(void, 'FlushEvents',
 | 
					f = Function(void, 'FlushEvents',
 | 
				
			||||||
    (short, 'whichMask', InMode),
 | 
					    (MacOSEventMask, 'whichMask', InMode),
 | 
				
			||||||
    (short, 'stopMask', InMode),
 | 
					    (MacOSEventMask, 'stopMask', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -34,7 +34,8 @@ def destination(self, type, name, arglist):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def makeblacklistnames(self):
 | 
						def makeblacklistnames(self):
 | 
				
			||||||
		return [
 | 
							return [
 | 
				
			||||||
			"KeyTranslate"
 | 
								"KeyTranslate",
 | 
				
			||||||
 | 
								"GetEventMask",		# I cannot seem to find this routine...
 | 
				
			||||||
			]
 | 
								]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def makeblacklisttypes(self):
 | 
						def makeblacklisttypes(self):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -27,6 +27,8 @@
 | 
				
			||||||
RgnHandle = FakeType("(RgnHandle)0") # XXX
 | 
					RgnHandle = FakeType("(RgnHandle)0") # XXX
 | 
				
			||||||
 | 
					
 | 
				
			||||||
KeyMap = ArrayOutputBufferType("KeyMap")
 | 
					KeyMap = ArrayOutputBufferType("KeyMap")
 | 
				
			||||||
 | 
					MacOSEventKind = Type("MacOSEventKind", "h")
 | 
				
			||||||
 | 
					MacOSEventMask = Type("MacOSEventMask", "h")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
includestuff = includestuff + """
 | 
					includestuff = includestuff + """
 | 
				
			||||||
#include <%s>""" % MACHEADERFILE + """
 | 
					#include <%s>""" % MACHEADERFILE + """
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -382,7 +382,7 @@ static PyObject *MenuObj_GetItemStyle(_self, _args)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PyObject *_res = NULL;
 | 
						PyObject *_res = NULL;
 | 
				
			||||||
	short item;
 | 
						short item;
 | 
				
			||||||
	unsigned char chStyle;
 | 
						Style chStyle;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "h",
 | 
						if (!PyArg_ParseTuple(_args, "h",
 | 
				
			||||||
	                      &item))
 | 
						                      &item))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
| 
						 | 
					@ -558,7 +558,7 @@ static PyMethodDef MenuObj_methods[] = {
 | 
				
			||||||
	{"SetItemStyle", (PyCFunction)MenuObj_SetItemStyle, 1,
 | 
						{"SetItemStyle", (PyCFunction)MenuObj_SetItemStyle, 1,
 | 
				
			||||||
	 "(short item, short chStyle) -> None"},
 | 
						 "(short item, short chStyle) -> None"},
 | 
				
			||||||
	{"GetItemStyle", (PyCFunction)MenuObj_GetItemStyle, 1,
 | 
						{"GetItemStyle", (PyCFunction)MenuObj_GetItemStyle, 1,
 | 
				
			||||||
	 "(short item) -> (unsigned char chStyle)"},
 | 
						 "(short item) -> (Style chStyle)"},
 | 
				
			||||||
	{"CalcMenuSize", (PyCFunction)MenuObj_CalcMenuSize, 1,
 | 
						{"CalcMenuSize", (PyCFunction)MenuObj_CalcMenuSize, 1,
 | 
				
			||||||
	 "() -> None"},
 | 
						 "() -> None"},
 | 
				
			||||||
	{"CountMItems", (PyCFunction)MenuObj_CountMItems, 1,
 | 
						{"CountMItems", (PyCFunction)MenuObj_CountMItems, 1,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Menus.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Menus.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(short, 'GetMBarHeight',
 | 
					f = Function(short, 'GetMBarHeight',
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					@ -174,7 +174,7 @@
 | 
				
			||||||
f = Method(void, 'GetItemStyle',
 | 
					f = Method(void, 'GetItemStyle',
 | 
				
			||||||
    (MenuRef, 'theMenu', InMode),
 | 
					    (MenuRef, 'theMenu', InMode),
 | 
				
			||||||
    (short, 'item', InMode),
 | 
					    (short, 'item', InMode),
 | 
				
			||||||
    (unsigned_char, 'chStyle', OutMode),
 | 
					    (Style, 'chStyle', OutMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
methods.append(f)
 | 
					methods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:QuickDraw.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDraw.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(void, 'OpenPort',
 | 
					f = Function(void, 'OpenPort',
 | 
				
			||||||
    (GrafPtr, 'port', InMode),
 | 
					    (GrafPtr, 'port', InMode),
 | 
				
			||||||
| 
						 | 
					@ -713,7 +713,7 @@
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
functions.append(f)
 | 
					functions.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:QuickDrawText.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDrawText.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(void, 'TextFont',
 | 
					f = Function(void, 'TextFont',
 | 
				
			||||||
    (short, 'font', InMode),
 | 
					    (short, 'font', InMode),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -78,6 +78,7 @@ def makeblacklisttypes(self):
 | 
				
			||||||
			'ColorSearchProcPtr',
 | 
								'ColorSearchProcPtr',
 | 
				
			||||||
			'ColorSearchUPP',
 | 
								'ColorSearchUPP',
 | 
				
			||||||
			'ConstPatternParam',
 | 
								'ConstPatternParam',
 | 
				
			||||||
 | 
								'Pattern_ptr',
 | 
				
			||||||
			'Cursor_ptr',
 | 
								'Cursor_ptr',
 | 
				
			||||||
			'DeviceLoopDrawingProcPtr',
 | 
								'DeviceLoopDrawingProcPtr',
 | 
				
			||||||
			'DeviceLoopFlags',
 | 
								'DeviceLoopFlags',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1183,25 +1183,6 @@ static PyObject *Res_FSpCreateResFile(_self, _args)
 | 
				
			||||||
	return _res;
 | 
						return _res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static PyObject *Res_TempInsertROMMap(_self, _args)
 | 
					 | 
				
			||||||
	PyObject *_self;
 | 
					 | 
				
			||||||
	PyObject *_args;
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	PyObject *_res = NULL;
 | 
					 | 
				
			||||||
	Boolean tempResLoad;
 | 
					 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "b",
 | 
					 | 
				
			||||||
	                      &tempResLoad))
 | 
					 | 
				
			||||||
		return NULL;
 | 
					 | 
				
			||||||
	TempInsertROMMap(tempResLoad);
 | 
					 | 
				
			||||||
	{
 | 
					 | 
				
			||||||
		OSErr _err = ResError();
 | 
					 | 
				
			||||||
		if (_err != noErr) return PyMac_Error(_err);
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	Py_INCREF(Py_None);
 | 
					 | 
				
			||||||
	_res = Py_None;
 | 
					 | 
				
			||||||
	return _res;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static PyObject *Res_Resource(_self, _args)
 | 
					static PyObject *Res_Resource(_self, _args)
 | 
				
			||||||
	PyObject *_self;
 | 
						PyObject *_self;
 | 
				
			||||||
	PyObject *_args;
 | 
						PyObject *_args;
 | 
				
			||||||
| 
						 | 
					@ -1293,8 +1274,6 @@ static PyMethodDef Res_methods[] = {
 | 
				
			||||||
	 "(FSSpec spec, SignedByte permission) -> (short _rv)"},
 | 
						 "(FSSpec spec, SignedByte permission) -> (short _rv)"},
 | 
				
			||||||
	{"FSpCreateResFile", (PyCFunction)Res_FSpCreateResFile, 1,
 | 
						{"FSpCreateResFile", (PyCFunction)Res_FSpCreateResFile, 1,
 | 
				
			||||||
	 "(FSSpec spec, OSType creator, OSType fileType, ScriptCode scriptTag) -> None"},
 | 
						 "(FSSpec spec, OSType creator, OSType fileType, ScriptCode scriptTag) -> None"},
 | 
				
			||||||
	{"TempInsertROMMap", (PyCFunction)Res_TempInsertROMMap, 1,
 | 
					 | 
				
			||||||
	 "(Boolean tempResLoad) -> None"},
 | 
					 | 
				
			||||||
	{"Resource", (PyCFunction)Res_Resource, 1,
 | 
						{"Resource", (PyCFunction)Res_Resource, 1,
 | 
				
			||||||
	 "Convert a string to a resource object.\n\nThe created resource object is actually just a handle.\nApply AddResource() to write it to a resource file.\n"},
 | 
						 "Convert a string to a resource object.\n\nThe created resource object is actually just a handle.\nApply AddResource() to write it to a resource file.\n"},
 | 
				
			||||||
	{NULL, NULL, 0}
 | 
						{NULL, NULL, 0}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Resources.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Resources.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = ResFunction(short, 'InitResources',
 | 
					f = ResFunction(short, 'InitResources',
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					@ -275,8 +275,3 @@
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
resmethods.append(f)
 | 
					resmethods.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = ResFunction(void, 'TempInsertROMMap',
 | 
					 | 
				
			||||||
    (Boolean, 'tempResLoad', InMode),
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
functions.append(f)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -40,6 +40,7 @@ def makeblacklistnames(self):
 | 
				
			||||||
		return [
 | 
							return [
 | 
				
			||||||
			"ReadPartialResource",
 | 
								"ReadPartialResource",
 | 
				
			||||||
			"WritePartialResource",
 | 
								"WritePartialResource",
 | 
				
			||||||
 | 
								"TempInsertROMMap",
 | 
				
			||||||
##			"RmveResource",		# RemoveResource
 | 
					##			"RmveResource",		# RemoveResource
 | 
				
			||||||
##			"SizeResource",		# GetResourceSizeOnDisk
 | 
					##			"SizeResource",		# GetResourceSizeOnDisk
 | 
				
			||||||
##			"MaxSizeRsrc",		# GetMaxResourceSize
 | 
					##			"MaxSizeRsrc",		# GetMaxResourceSize
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -496,15 +496,14 @@ static PyObject *Snd_Comp3to1(_self, _args)
 | 
				
			||||||
	char *buffer__out__;
 | 
						char *buffer__out__;
 | 
				
			||||||
	long buffer__len__;
 | 
						long buffer__len__;
 | 
				
			||||||
	int buffer__in_len__;
 | 
						int buffer__in_len__;
 | 
				
			||||||
	char *state__in__;
 | 
						StateBlock *state__in__;
 | 
				
			||||||
	char state__out__[128];
 | 
						StateBlock state__out__;
 | 
				
			||||||
	int state__len__;
 | 
					 | 
				
			||||||
	int state__in_len__;
 | 
						int state__in_len__;
 | 
				
			||||||
	unsigned long numChannels;
 | 
						unsigned long numChannels;
 | 
				
			||||||
	unsigned long whichChannel;
 | 
						unsigned long whichChannel;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "s#s#ll",
 | 
						if (!PyArg_ParseTuple(_args, "s#s#ll",
 | 
				
			||||||
	                      &buffer__in__, &buffer__in_len__,
 | 
						                      &buffer__in__, &buffer__in_len__,
 | 
				
			||||||
	                      &state__in__, &state__in_len__,
 | 
						                      (char **)&state__in__, &state__in_len__,
 | 
				
			||||||
	                      &numChannels,
 | 
						                      &numChannels,
 | 
				
			||||||
	                      &whichChannel))
 | 
						                      &whichChannel))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
| 
						 | 
					@ -514,19 +513,18 @@ static PyObject *Snd_Comp3to1(_self, _args)
 | 
				
			||||||
		goto buffer__error__;
 | 
							goto buffer__error__;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	buffer__len__ = buffer__in_len__;
 | 
						buffer__len__ = buffer__in_len__;
 | 
				
			||||||
	if (state__in_len__ != 128)
 | 
						if (state__in_len__ != sizeof(StateBlock))
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		PyErr_SetString(PyExc_TypeError, "buffer length should be 128");
 | 
							PyErr_SetString(PyExc_TypeError, "buffer length should be sizeof(StateBlock)");
 | 
				
			||||||
		goto state__error__;
 | 
							goto state__error__;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	state__len__ = state__in_len__;
 | 
					 | 
				
			||||||
	Comp3to1(buffer__in__, buffer__out__, (long)buffer__len__,
 | 
						Comp3to1(buffer__in__, buffer__out__, (long)buffer__len__,
 | 
				
			||||||
	         state__in__, state__out__,
 | 
						         state__in__, &state__out__,
 | 
				
			||||||
	         numChannels,
 | 
						         numChannels,
 | 
				
			||||||
	         whichChannel);
 | 
						         whichChannel);
 | 
				
			||||||
	_res = Py_BuildValue("s#s#",
 | 
						_res = Py_BuildValue("s#s#",
 | 
				
			||||||
	                     buffer__out__, (int)buffer__len__,
 | 
						                     buffer__out__, (int)buffer__len__,
 | 
				
			||||||
	                     state__out__, (int)128);
 | 
						                     (char *)&state__out__, (int)sizeof(StateBlock));
 | 
				
			||||||
 state__error__: ;
 | 
					 state__error__: ;
 | 
				
			||||||
	free(buffer__out__);
 | 
						free(buffer__out__);
 | 
				
			||||||
 buffer__error__: ;
 | 
					 buffer__error__: ;
 | 
				
			||||||
| 
						 | 
					@ -542,15 +540,14 @@ static PyObject *Snd_Exp1to3(_self, _args)
 | 
				
			||||||
	char *buffer__out__;
 | 
						char *buffer__out__;
 | 
				
			||||||
	long buffer__len__;
 | 
						long buffer__len__;
 | 
				
			||||||
	int buffer__in_len__;
 | 
						int buffer__in_len__;
 | 
				
			||||||
	char *state__in__;
 | 
						StateBlock *state__in__;
 | 
				
			||||||
	char state__out__[128];
 | 
						StateBlock state__out__;
 | 
				
			||||||
	int state__len__;
 | 
					 | 
				
			||||||
	int state__in_len__;
 | 
						int state__in_len__;
 | 
				
			||||||
	unsigned long numChannels;
 | 
						unsigned long numChannels;
 | 
				
			||||||
	unsigned long whichChannel;
 | 
						unsigned long whichChannel;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "s#s#ll",
 | 
						if (!PyArg_ParseTuple(_args, "s#s#ll",
 | 
				
			||||||
	                      &buffer__in__, &buffer__in_len__,
 | 
						                      &buffer__in__, &buffer__in_len__,
 | 
				
			||||||
	                      &state__in__, &state__in_len__,
 | 
						                      (char **)&state__in__, &state__in_len__,
 | 
				
			||||||
	                      &numChannels,
 | 
						                      &numChannels,
 | 
				
			||||||
	                      &whichChannel))
 | 
						                      &whichChannel))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
| 
						 | 
					@ -560,19 +557,18 @@ static PyObject *Snd_Exp1to3(_self, _args)
 | 
				
			||||||
		goto buffer__error__;
 | 
							goto buffer__error__;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	buffer__len__ = buffer__in_len__;
 | 
						buffer__len__ = buffer__in_len__;
 | 
				
			||||||
	if (state__in_len__ != 128)
 | 
						if (state__in_len__ != sizeof(StateBlock))
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		PyErr_SetString(PyExc_TypeError, "buffer length should be 128");
 | 
							PyErr_SetString(PyExc_TypeError, "buffer length should be sizeof(StateBlock)");
 | 
				
			||||||
		goto state__error__;
 | 
							goto state__error__;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	state__len__ = state__in_len__;
 | 
					 | 
				
			||||||
	Exp1to3(buffer__in__, buffer__out__, (long)buffer__len__,
 | 
						Exp1to3(buffer__in__, buffer__out__, (long)buffer__len__,
 | 
				
			||||||
	        state__in__, state__out__,
 | 
						        state__in__, &state__out__,
 | 
				
			||||||
	        numChannels,
 | 
						        numChannels,
 | 
				
			||||||
	        whichChannel);
 | 
						        whichChannel);
 | 
				
			||||||
	_res = Py_BuildValue("s#s#",
 | 
						_res = Py_BuildValue("s#s#",
 | 
				
			||||||
	                     buffer__out__, (int)buffer__len__,
 | 
						                     buffer__out__, (int)buffer__len__,
 | 
				
			||||||
	                     state__out__, (int)128);
 | 
						                     (char *)&state__out__, (int)sizeof(StateBlock));
 | 
				
			||||||
 state__error__: ;
 | 
					 state__error__: ;
 | 
				
			||||||
	free(buffer__out__);
 | 
						free(buffer__out__);
 | 
				
			||||||
 buffer__error__: ;
 | 
					 buffer__error__: ;
 | 
				
			||||||
| 
						 | 
					@ -588,15 +584,14 @@ static PyObject *Snd_Comp6to1(_self, _args)
 | 
				
			||||||
	char *buffer__out__;
 | 
						char *buffer__out__;
 | 
				
			||||||
	long buffer__len__;
 | 
						long buffer__len__;
 | 
				
			||||||
	int buffer__in_len__;
 | 
						int buffer__in_len__;
 | 
				
			||||||
	char *state__in__;
 | 
						StateBlock *state__in__;
 | 
				
			||||||
	char state__out__[128];
 | 
						StateBlock state__out__;
 | 
				
			||||||
	int state__len__;
 | 
					 | 
				
			||||||
	int state__in_len__;
 | 
						int state__in_len__;
 | 
				
			||||||
	unsigned long numChannels;
 | 
						unsigned long numChannels;
 | 
				
			||||||
	unsigned long whichChannel;
 | 
						unsigned long whichChannel;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "s#s#ll",
 | 
						if (!PyArg_ParseTuple(_args, "s#s#ll",
 | 
				
			||||||
	                      &buffer__in__, &buffer__in_len__,
 | 
						                      &buffer__in__, &buffer__in_len__,
 | 
				
			||||||
	                      &state__in__, &state__in_len__,
 | 
						                      (char **)&state__in__, &state__in_len__,
 | 
				
			||||||
	                      &numChannels,
 | 
						                      &numChannels,
 | 
				
			||||||
	                      &whichChannel))
 | 
						                      &whichChannel))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
| 
						 | 
					@ -606,19 +601,18 @@ static PyObject *Snd_Comp6to1(_self, _args)
 | 
				
			||||||
		goto buffer__error__;
 | 
							goto buffer__error__;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	buffer__len__ = buffer__in_len__;
 | 
						buffer__len__ = buffer__in_len__;
 | 
				
			||||||
	if (state__in_len__ != 128)
 | 
						if (state__in_len__ != sizeof(StateBlock))
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		PyErr_SetString(PyExc_TypeError, "buffer length should be 128");
 | 
							PyErr_SetString(PyExc_TypeError, "buffer length should be sizeof(StateBlock)");
 | 
				
			||||||
		goto state__error__;
 | 
							goto state__error__;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	state__len__ = state__in_len__;
 | 
					 | 
				
			||||||
	Comp6to1(buffer__in__, buffer__out__, (long)buffer__len__,
 | 
						Comp6to1(buffer__in__, buffer__out__, (long)buffer__len__,
 | 
				
			||||||
	         state__in__, state__out__,
 | 
						         state__in__, &state__out__,
 | 
				
			||||||
	         numChannels,
 | 
						         numChannels,
 | 
				
			||||||
	         whichChannel);
 | 
						         whichChannel);
 | 
				
			||||||
	_res = Py_BuildValue("s#s#",
 | 
						_res = Py_BuildValue("s#s#",
 | 
				
			||||||
	                     buffer__out__, (int)buffer__len__,
 | 
						                     buffer__out__, (int)buffer__len__,
 | 
				
			||||||
	                     state__out__, (int)128);
 | 
						                     (char *)&state__out__, (int)sizeof(StateBlock));
 | 
				
			||||||
 state__error__: ;
 | 
					 state__error__: ;
 | 
				
			||||||
	free(buffer__out__);
 | 
						free(buffer__out__);
 | 
				
			||||||
 buffer__error__: ;
 | 
					 buffer__error__: ;
 | 
				
			||||||
| 
						 | 
					@ -634,15 +628,14 @@ static PyObject *Snd_Exp1to6(_self, _args)
 | 
				
			||||||
	char *buffer__out__;
 | 
						char *buffer__out__;
 | 
				
			||||||
	long buffer__len__;
 | 
						long buffer__len__;
 | 
				
			||||||
	int buffer__in_len__;
 | 
						int buffer__in_len__;
 | 
				
			||||||
	char *state__in__;
 | 
						StateBlock *state__in__;
 | 
				
			||||||
	char state__out__[128];
 | 
						StateBlock state__out__;
 | 
				
			||||||
	int state__len__;
 | 
					 | 
				
			||||||
	int state__in_len__;
 | 
						int state__in_len__;
 | 
				
			||||||
	unsigned long numChannels;
 | 
						unsigned long numChannels;
 | 
				
			||||||
	unsigned long whichChannel;
 | 
						unsigned long whichChannel;
 | 
				
			||||||
	if (!PyArg_ParseTuple(_args, "s#s#ll",
 | 
						if (!PyArg_ParseTuple(_args, "s#s#ll",
 | 
				
			||||||
	                      &buffer__in__, &buffer__in_len__,
 | 
						                      &buffer__in__, &buffer__in_len__,
 | 
				
			||||||
	                      &state__in__, &state__in_len__,
 | 
						                      (char **)&state__in__, &state__in_len__,
 | 
				
			||||||
	                      &numChannels,
 | 
						                      &numChannels,
 | 
				
			||||||
	                      &whichChannel))
 | 
						                      &whichChannel))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
| 
						 | 
					@ -652,19 +645,18 @@ static PyObject *Snd_Exp1to6(_self, _args)
 | 
				
			||||||
		goto buffer__error__;
 | 
							goto buffer__error__;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	buffer__len__ = buffer__in_len__;
 | 
						buffer__len__ = buffer__in_len__;
 | 
				
			||||||
	if (state__in_len__ != 128)
 | 
						if (state__in_len__ != sizeof(StateBlock))
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		PyErr_SetString(PyExc_TypeError, "buffer length should be 128");
 | 
							PyErr_SetString(PyExc_TypeError, "buffer length should be sizeof(StateBlock)");
 | 
				
			||||||
		goto state__error__;
 | 
							goto state__error__;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	state__len__ = state__in_len__;
 | 
					 | 
				
			||||||
	Exp1to6(buffer__in__, buffer__out__, (long)buffer__len__,
 | 
						Exp1to6(buffer__in__, buffer__out__, (long)buffer__len__,
 | 
				
			||||||
	        state__in__, state__out__,
 | 
						        state__in__, &state__out__,
 | 
				
			||||||
	        numChannels,
 | 
						        numChannels,
 | 
				
			||||||
	        whichChannel);
 | 
						        whichChannel);
 | 
				
			||||||
	_res = Py_BuildValue("s#s#",
 | 
						_res = Py_BuildValue("s#s#",
 | 
				
			||||||
	                     buffer__out__, (int)buffer__len__,
 | 
						                     buffer__out__, (int)buffer__len__,
 | 
				
			||||||
	                     state__out__, (int)128);
 | 
						                     (char *)&state__out__, (int)sizeof(StateBlock));
 | 
				
			||||||
 state__error__: ;
 | 
					 state__error__: ;
 | 
				
			||||||
	free(buffer__out__);
 | 
						free(buffer__out__);
 | 
				
			||||||
 buffer__error__: ;
 | 
					 buffer__error__: ;
 | 
				
			||||||
| 
						 | 
					@ -776,13 +768,13 @@ static PyMethodDef Snd_methods[] = {
 | 
				
			||||||
	{"MACEVersion", (PyCFunction)Snd_MACEVersion, 1,
 | 
						{"MACEVersion", (PyCFunction)Snd_MACEVersion, 1,
 | 
				
			||||||
	 "() -> (NumVersion _rv)"},
 | 
						 "() -> (NumVersion _rv)"},
 | 
				
			||||||
	{"Comp3to1", (PyCFunction)Snd_Comp3to1, 1,
 | 
						{"Comp3to1", (PyCFunction)Snd_Comp3to1, 1,
 | 
				
			||||||
	 "(Buffer buffer, Buffer state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, Buffer state)"},
 | 
						 "(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"},
 | 
				
			||||||
	{"Exp1to3", (PyCFunction)Snd_Exp1to3, 1,
 | 
						{"Exp1to3", (PyCFunction)Snd_Exp1to3, 1,
 | 
				
			||||||
	 "(Buffer buffer, Buffer state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, Buffer state)"},
 | 
						 "(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"},
 | 
				
			||||||
	{"Comp6to1", (PyCFunction)Snd_Comp6to1, 1,
 | 
						{"Comp6to1", (PyCFunction)Snd_Comp6to1, 1,
 | 
				
			||||||
	 "(Buffer buffer, Buffer state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, Buffer state)"},
 | 
						 "(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"},
 | 
				
			||||||
	{"Exp1to6", (PyCFunction)Snd_Exp1to6, 1,
 | 
						{"Exp1to6", (PyCFunction)Snd_Exp1to6, 1,
 | 
				
			||||||
	 "(Buffer buffer, Buffer state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, Buffer state)"},
 | 
						 "(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"},
 | 
				
			||||||
	{"GetSysBeepVolume", (PyCFunction)Snd_GetSysBeepVolume, 1,
 | 
						{"GetSysBeepVolume", (PyCFunction)Snd_GetSysBeepVolume, 1,
 | 
				
			||||||
	 "() -> (long level)"},
 | 
						 "() -> (long level)"},
 | 
				
			||||||
	{"SetSysBeepVolume", (PyCFunction)Snd_SetSysBeepVolume, 1,
 | 
						{"SetSysBeepVolume", (PyCFunction)Snd_SetSysBeepVolume, 1,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Sound.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Sound.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = SndFunction(void, 'SetSoundVol',
 | 
					f = SndFunction(void, 'SetSoundVol',
 | 
				
			||||||
    (short, 'level', InMode),
 | 
					    (short, 'level', InMode),
 | 
				
			||||||
| 
						 | 
					@ -100,7 +100,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = SndFunction(void, 'Comp3to1',
 | 
					f = SndFunction(void, 'Comp3to1',
 | 
				
			||||||
    (InOutBuffer, 'buffer', InOutMode),
 | 
					    (InOutBuffer, 'buffer', InOutMode),
 | 
				
			||||||
    (InOutBuf128, 'state', InOutMode),
 | 
					    (StateBlock, 'state', InOutMode),
 | 
				
			||||||
    (unsigned_long, 'numChannels', InMode),
 | 
					    (unsigned_long, 'numChannels', InMode),
 | 
				
			||||||
    (unsigned_long, 'whichChannel', InMode),
 | 
					    (unsigned_long, 'whichChannel', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					@ -108,7 +108,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = SndFunction(void, 'Exp1to3',
 | 
					f = SndFunction(void, 'Exp1to3',
 | 
				
			||||||
    (InOutBuffer, 'buffer', InOutMode),
 | 
					    (InOutBuffer, 'buffer', InOutMode),
 | 
				
			||||||
    (InOutBuf128, 'state', InOutMode),
 | 
					    (StateBlock, 'state', InOutMode),
 | 
				
			||||||
    (unsigned_long, 'numChannels', InMode),
 | 
					    (unsigned_long, 'numChannels', InMode),
 | 
				
			||||||
    (unsigned_long, 'whichChannel', InMode),
 | 
					    (unsigned_long, 'whichChannel', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					@ -116,7 +116,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = SndFunction(void, 'Comp6to1',
 | 
					f = SndFunction(void, 'Comp6to1',
 | 
				
			||||||
    (InOutBuffer, 'buffer', InOutMode),
 | 
					    (InOutBuffer, 'buffer', InOutMode),
 | 
				
			||||||
    (InOutBuf128, 'state', InOutMode),
 | 
					    (StateBlock, 'state', InOutMode),
 | 
				
			||||||
    (unsigned_long, 'numChannels', InMode),
 | 
					    (unsigned_long, 'numChannels', InMode),
 | 
				
			||||||
    (unsigned_long, 'whichChannel', InMode),
 | 
					    (unsigned_long, 'whichChannel', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					@ -124,7 +124,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = SndFunction(void, 'Exp1to6',
 | 
					f = SndFunction(void, 'Exp1to6',
 | 
				
			||||||
    (InOutBuffer, 'buffer', InOutMode),
 | 
					    (InOutBuffer, 'buffer', InOutMode),
 | 
				
			||||||
    (InOutBuf128, 'state', InOutMode),
 | 
					    (StateBlock, 'state', InOutMode),
 | 
				
			||||||
    (unsigned_long, 'numChannels', InMode),
 | 
					    (unsigned_long, 'numChannels', InMode),
 | 
				
			||||||
    (unsigned_long, 'whichChannel', InMode),
 | 
					    (unsigned_long, 'whichChannel', InMode),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -43,6 +43,9 @@ def makeblacklistnames(self):
 | 
				
			||||||
			'GetSoundPreference',
 | 
								'GetSoundPreference',
 | 
				
			||||||
			'SetSoundPreference',
 | 
								'SetSoundPreference',
 | 
				
			||||||
			'GetCompressionInfo',
 | 
								'GetCompressionInfo',
 | 
				
			||||||
 | 
								# And 3.1 calls, ditto...
 | 
				
			||||||
 | 
								'SndGetInfo',
 | 
				
			||||||
 | 
								'SndSetInfo',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			]
 | 
								]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -89,8 +92,11 @@ def makerepairinstructions(self):
 | 
				
			||||||
			 [("InOutBuffer", "buffer", "InOutMode")]),
 | 
								 [("InOutBuffer", "buffer", "InOutMode")]),
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			# Ditto
 | 
								# Ditto
 | 
				
			||||||
			([("void_ptr", "inState", "InMode"), ("void", "outState", "OutMode")],
 | 
					##			([("void_ptr", "inState", "InMode"), ("void", "outState", "OutMode")],
 | 
				
			||||||
			 [("InOutBuf128", "state", "InOutMode")]),
 | 
					##			 [("InOutBuf128", "state", "InOutMode")]),
 | 
				
			||||||
 | 
								([("StateBlockPtr", "inState", "InMode"), ("StateBlockPtr", "outState", "InMode")],
 | 
				
			||||||
 | 
								 [("StateBlock", "state", "InOutMode")]),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			]
 | 
								]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == "__main__":
 | 
					if __name__ == "__main__":
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -81,7 +81,8 @@ def cleanup(self, name):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
NumVersion = OpaqueByValueType('NumVersion', 'NumVer')
 | 
					NumVersion = OpaqueByValueType('NumVersion', 'NumVer')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
InOutBuf128 = FixedInputOutputBufferType(128)
 | 
					##InOutBuf128 = FixedInputOutputBufferType(128)
 | 
				
			||||||
 | 
					StateBlock = StructInputOutputBufferType('StateBlock')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
AudioSelectionPtr = FakeType('0') # XXX
 | 
					AudioSelectionPtr = FakeType('0') # XXX
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:Windows.h'
 | 
					# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Windows.h'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
f = Function(void, 'InitWindows',
 | 
					f = Function(void, 'InitWindows',
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,6 +16,11 @@
 | 
				
			||||||
Size = Type("Size", "l")
 | 
					Size = Type("Size", "l")
 | 
				
			||||||
Style = Type("Style", "b")
 | 
					Style = Type("Style", "b")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					UInt16 = Type("UInt16", "h")
 | 
				
			||||||
 | 
					SInt16 = Type("SInt16", "h")
 | 
				
			||||||
 | 
					UInt32 = Type("UInt32", "l")
 | 
				
			||||||
 | 
					SInt32 = Type("SInt32", "l")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Pascal strings
 | 
					# Pascal strings
 | 
				
			||||||
ConstStr255Param = OpaqueArrayType("Str255", "PyMac_BuildStr255", "PyMac_GetStr255")
 | 
					ConstStr255Param = OpaqueArrayType("Str255", "PyMac_BuildStr255", "PyMac_GetStr255")
 | 
				
			||||||
Str255 = OpaqueArrayType("Str255", "PyMac_BuildStr255", "PyMac_GetStr255")
 | 
					Str255 = OpaqueArrayType("Str255", "PyMac_BuildStr255", "PyMac_GetStr255")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,7 +30,7 @@
 | 
				
			||||||
#CREATOR = 'KAHL'		# Guido's favorite text editor on the Mac
 | 
					#CREATOR = 'KAHL'		# Guido's favorite text editor on the Mac
 | 
				
			||||||
#INCLUDEDIR = "D:Development:THINK C:Mac #includes:Apple #includes:"
 | 
					#INCLUDEDIR = "D:Development:THINK C:Mac #includes:Apple #includes:"
 | 
				
			||||||
CREATOR = 'MPCC'		# Jack's favorite text editor on the Mac
 | 
					CREATOR = 'MPCC'		# Jack's favorite text editor on the Mac
 | 
				
			||||||
INCLUDEDIR = "Moes:CW5 GOLD Ä:Metrowerks C/C++ Ä:Headers Ä:Universal Headers 2.0a3 Ä:"
 | 
					INCLUDEDIR = "Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Error = "scantools.Error"
 | 
					Error = "scantools.Error"
 | 
				
			||||||
| 
						 | 
					@ -309,7 +309,10 @@ def openinput(self, filename):
 | 
				
			||||||
				except IOError:
 | 
									except IOError:
 | 
				
			||||||
					pass
 | 
										pass
 | 
				
			||||||
		# If not on the path, or absolute, try default open()
 | 
							# If not on the path, or absolute, try default open()
 | 
				
			||||||
		return open(filename, 'r')
 | 
							try:
 | 
				
			||||||
 | 
								return open(filename, 'r')
 | 
				
			||||||
 | 
							except IOError, arg:
 | 
				
			||||||
 | 
								raise IOError, (arg, filename)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def getline(self):
 | 
						def getline(self):
 | 
				
			||||||
		if not self.scanfile:
 | 
							if not self.scanfile:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue