Rect inBounds;
ThemeMenuBarState inState;
UInt32 inAttributes;
- if (!PyArg_ParseTuple(_args, "O&hl",
+ if (!PyArg_ParseTuple(_args, "O&Hl",
PyMac_GetRect, &inBounds,
&inState,
&inAttributes))
OSStatus _err;
Rect inMenuRect;
ThemeMenuType inMenuType;
- if (!PyArg_ParseTuple(_args, "O&h",
+ if (!PyArg_ParseTuple(_args, "O&H",
PyMac_GetRect, &inMenuRect,
&inMenuType))
return NULL;
OSStatus _err;
Rect inMenuRect;
ThemeMenuType menuType;
- if (!PyArg_ParseTuple(_args, "O&h",
+ if (!PyArg_ParseTuple(_args, "O&H",
PyMac_GetRect, &inMenuRect,
&menuType))
return NULL;
ThemeMenuItemType inItemType;
SInt16 outHeight;
SInt16 outWidth;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&inItemType))
return NULL;
_err = GetThemeMenuItemExtra(inItemType,
Rect inRect;
ThemeTabStyle inStyle;
ThemeTabDirection inDirection;
- if (!PyArg_ParseTuple(_args, "O&hh",
+ if (!PyArg_ParseTuple(_args, "O&HH",
PyMac_GetRect, &inRect,
&inStyle,
&inDirection))
return NULL;
_err = GetThemeScrollBarThumbStyle(&outStyle);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
outStyle);
return _res;
}
return NULL;
_err = GetThemeScrollBarArrowStyle(&outStyle);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
outStyle);
return _res;
}
return NULL;
_err = GetThemeCheckBoxStyle(&outStyle);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
outStyle);
return _res;
}
OSStatus _err;
ThemeFontID inFontID;
ScriptCode inScript;
- if (!PyArg_ParseTuple(_args, "hh",
+ if (!PyArg_ParseTuple(_args, "Hh",
&inFontID,
&inScript))
return NULL;
Rect inContRect;
ThemeDrawState state;
ThemeWindowAttributes attributes;
- if (!PyArg_ParseTuple(_args, "hO&ll",
+ if (!PyArg_ParseTuple(_args, "HO&ll",
&flavor,
PyMac_GetRect, &inContRect,
&state,
ThemeGrowDirection growDirection;
Boolean isSmall;
ThemeDrawState state;
- if (!PyArg_ParseTuple(_args, "O&hbl",
+ if (!PyArg_ParseTuple(_args, "O&Hbl",
PyMac_GetPoint, &origin,
&growDirection,
&isSmall,
ThemeGrowDirection growDirection;
Boolean isSmall;
ThemeDrawState state;
- if (!PyArg_ParseTuple(_args, "O&hbl",
+ if (!PyArg_ParseTuple(_args, "O&Hbl",
PyMac_GetPoint, &origin,
&growDirection,
&isSmall,
ThemeGrowDirection growDirection;
Boolean isSmall;
Rect bounds;
- if (!PyArg_ParseTuple(_args, "O&hb",
+ if (!PyArg_ParseTuple(_args, "O&Hb",
PyMac_GetPoint, &origin,
&growDirection,
&isSmall))
ThemeBrush = Type("ThemeBrush", "h")
ThemeColor = Type("ThemeColor", "h")
ThemeTextColor = Type("ThemeTextColor", "h")
-ThemeMenuBarState = Type("ThemeMenuBarState", "h")
-ThemeMenuState = Type("ThemeMenuState", "h")
-ThemeMenuType = Type("ThemeMenuType", "h")
-ThemeMenuItemType = Type("ThemeMenuItemType", "h")
-ThemeFontID = Type("ThemeFontID", "h")
-ThemeTabStyle = Type("ThemeTabStyle", "h")
-ThemeTabDirection = Type("ThemeTabDirection", "h")
+ThemeMenuBarState = Type("ThemeMenuBarState", "H")
+ThemeMenuState = Type("ThemeMenuState", "H")
+ThemeMenuType = Type("ThemeMenuType", "H")
+ThemeMenuItemType = Type("ThemeMenuItemType", "H")
+ThemeFontID = Type("ThemeFontID", "H")
+ThemeTabStyle = Type("ThemeTabStyle", "H")
+ThemeTabDirection = Type("ThemeTabDirection", "H")
ThemeDrawState = Type("ThemeDrawState", "l")
ThemeCursor = Type("ThemeCursor", "l")
-ThemeCheckBoxStyle = Type("ThemeCheckBoxStyle", "h")
-ThemeScrollBarArrowStyle = Type("ThemeScrollBarArrowStyle", "h")
-ThemeScrollBarThumbStyle = Type("ThemeScrollBarThumbStyle", "h")
+ThemeCheckBoxStyle = Type("ThemeCheckBoxStyle", "H")
+ThemeScrollBarArrowStyle = Type("ThemeScrollBarArrowStyle", "H")
+ThemeScrollBarThumbStyle = Type("ThemeScrollBarThumbStyle", "H")
CTabHandle = OpaqueByValueType("CTabHandle", "ResObj")
ThemeTrackEnableState = Type("ThemeTrackEnableState", "b")
ThemeTrackPressState = Type("ThemeTrackPressState", "b")
ThemeThumbDirection = Type("ThemeThumbDirection", "b")
-ThemeTrackAttributes = Type("ThemeTrackAttributes", "h")
+ThemeTrackAttributes = Type("ThemeTrackAttributes", "H")
ControlPartCode = Type("ControlPartCode", "h")
ThemeWindowAttributes = Type("ThemeWindowAttributes", "l")
-ThemeWindowType = Type("ThemeWindowType", "h")
-ThemeTitleBarWidget = Type("ThemeTitleBarWidget", "h")
-ThemeArrowOrientation = Type("ThemeArrowOrientation", "h")
-ThemePopupArrowSize = Type("ThemePopupArrowSize", "h")
-ThemeGrowDirection = Type("ThemeGrowDirection", "h")
+ThemeWindowType = Type("ThemeWindowType", "H")
+ThemeTitleBarWidget = Type("ThemeTitleBarWidget", "H")
+ThemeArrowOrientation = Type("ThemeArrowOrientation", "H")
+ThemePopupArrowSize = Type("ThemePopupArrowSize", "H")
+ThemeGrowDirection = Type("ThemeGrowDirection", "H")
ThemeSoundKind = OSTypeType("ThemeSoundKind")
ThemeDragSoundKind = OSTypeType("ThemeDragSoundKind")
ThemeBackgroundKind = Type("ThemeBackgroundKind", "l")
Rect limitRect;
Rect slopRect;
DragConstraint axis;
- if (!PyArg_ParseTuple(_args, "O&O&O&h",
+ if (!PyArg_ParseTuple(_args, "O&O&O&H",
PyMac_GetPoint, &startPoint,
PyMac_GetRect, &limitRect,
PyMac_GetRect, &slopRect,
_err = CountSubControls(_self->ob_itself,
&outNumChildren);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
outNumChildren);
return _res;
}
OSErr _err;
UInt16 inIndex;
ControlHandle outSubControl;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&inIndex))
return NULL;
_err = GetIndexedSubControl(_self->ob_itself,
CCTabHandle = OpaqueByValueType("CCTabHandle", "ResObj")
AuxCtlHandle = OpaqueByValueType("AuxCtlHandle", "ResObj")
ControlPartCode = Type("ControlPartCode", "h")
-DragConstraint = Type("DragConstraint", "h")
+DragConstraint = Type("DragConstraint", "H")
ControlVariant = Type("ControlVariant", "h")
IconTransformType = Type("IconTransformType", "h")
ControlButtonGraphicAlignment = Type("ControlButtonGraphicAlignment", "h")
PyObject *_res = NULL;
OSStatus _err;
EventMask inMask;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&inMask))
return NULL;
_err = SetModalDialogEventMask(_self->ob_itself,
_err = GetModalDialogEventMask(_self->ob_itself,
&outMask);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
outMask);
return _res;
}
DialogItemIndexZeroBased = Type("DialogItemIndexZeroBased", "h")
AlertType = Type("AlertType", "h")
StringPtr = Str255
-EventMask = Type("EventMask", "h")
+EventMask = Type("EventMask", "H")
includestuff = includestuff + """
#include <Dialogs.h>
_err = CountDragItems(_self->ob_itself,
&numItems);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
numItems);
return _res;
}
OSErr _err;
UInt16 index;
ItemReference theItemRef;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&index))
return NULL;
_err = GetDragItemReferenceNumber(_self->ob_itself,
theItemRef,
&numFlavors);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
numFlavors);
return _res;
}
ItemReference theItemRef;
UInt16 index;
FlavorType theType;
- if (!PyArg_ParseTuple(_args, "lh",
+ if (!PyArg_ParseTuple(_args, "lH",
&theItemRef,
&index))
return NULL;
{
PyObject *_res = NULL;
EventMask value;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&value))
return NULL;
SetEventMask(value);
Boolean _rv;
EventMask eventMask;
EventRecord theEvent;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&eventMask))
return NULL;
_rv = GetNextEvent(eventMask,
Boolean _rv;
EventMask eventMask;
EventRecord theEvent;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&eventMask))
return NULL;
_rv = EventAvail(eventMask,
OSErr _err;
EventKind eventNum;
UInt32 eventMsg;
- if (!PyArg_ParseTuple(_args, "hl",
+ if (!PyArg_ParseTuple(_args, "Hl",
&eventNum,
&eventMsg))
return NULL;
Boolean _rv;
EventMask mask;
EventRecord theEvent;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&mask))
return NULL;
_rv = OSEventAvail(mask,
Boolean _rv;
EventMask mask;
EventRecord theEvent;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&mask))
return NULL;
_rv = GetOSEvent(mask,
PyObject *_res = NULL;
EventMask whichMask;
EventMask stopMask;
- if (!PyArg_ParseTuple(_args, "hh",
+ if (!PyArg_ParseTuple(_args, "HH",
&whichMask,
&stopMask))
return NULL;
# RgnHandle = OpaqueByValueType("RgnHandle", "OptResObj")
KeyMap = ArrayOutputBufferType("KeyMap")
-MacOSEventKind = Type("MacOSEventKind", "h") # Old-style
-MacOSEventMask = Type("MacOSEventMask", "h") # Old-style
-EventMask = Type("EventMask", "h")
-EventKind = Type("EventKind", "h")
+##MacOSEventKind = Type("MacOSEventKind", "h") # Old-style
+##MacOSEventMask = Type("MacOSEventMask", "h") # Old-style
+EventMask = Type("EventMask", "H")
+EventKind = Type("EventKind", "H")
includestuff = includestuff + """
#include <%s>""" % MACHEADERFILE + """
PyObject *_res = NULL;
OSErr _err;
UInt16 fontSize;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&fontSize))
return NULL;
_err = HMSetFontSize(fontSize);
return NULL;
_err = HMGetFontSize(&fontSize);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
fontSize);
return _res;
}
# RgnHandle = OpaqueByValueType("RgnHandle", "OptResObj")
KeyMap = ArrayOutputBufferType("KeyMap")
-MacOSEventKind = Type("MacOSEventKind", "h") # Old-style
-MacOSEventMask = Type("MacOSEventMask", "h") # Old-style
-EventMask = Type("EventMask", "h")
-EventKind = Type("EventKind", "h")
+##MacOSEventKind = Type("MacOSEventKind", "h") # Old-style
+##MacOSEventMask = Type("MacOSEventMask", "h") # Old-style
+EventMask = Type("EventMask", "H")
+EventKind = Type("EventKind", "H")
includestuff = includestuff + """
#include <%s>""" % MACHEADERFILE + """
HRReference = OpaqueByValueType("HRReference", "HtmlObj")
HRScrollbarState = Type("HRScrollbarState", "h")
-URLSourceType = Type("URLSourceType", "h")
+URLSourceType = Type("URLSourceType", "H")
GrafPtr = OpaqueByValueType("GrafPtr", "GrafObj")
RgnHandle = OpaqueByValueType("RgnHandle", "ResObj")
char_ptr = Type("char *", "s")
_err = GetIconRefOwners(theIconRef,
&owners);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
owners);
return _res;
}
# KeyMap = ArrayOutputBufferType("KeyMap")
#MacOSEventKind = Type("MacOSEventKind", "h") # Old-style
#MacOSEventMask = Type("MacOSEventMask", "h") # Old-style
-#EventMask = Type("EventMask", "h")
-#EventKind = Type("EventKind", "h")
+#EventMask = Type("EventMask", "H")
+#EventKind = Type("EventKind", "H")
includestuff = includestuff + """
#include <%s>""" % MACHEADERFILE + """
#ifdef USE_UCNHASH
extern void initucnhash();
#endif
+extern void init_sre();
/* -- ADDMODULE MARKER 1 -- */
extern void PyMarshal_Init();
#ifdef USE_UCNHASH
{"ucnhash", initucnhash},
#endif
-
+ {"_sre", init_sre},
/* -- ADDMODULE MARKER 2 -- */
/* This module "lives in" with marshal.c */
short refnum;
long dirid;
- if (!PyArg_ParseTuple(args, "hO&i", &where, PyMac_GetOSType, &which, &create) )
+ if (!PyArg_ParseTuple(args, "HO&i", &where, PyMac_GetOSType, &which, &create) )
return NULL;
err = FindFolder(where, which, (Boolean)create, &refnum, &dirid);
if ( err ) {
&outFontID,
&outFontSize);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("hh",
+ _res = Py_BuildValue("hH",
outFontID,
outFontSize);
return _res;
OSStatus _err;
SInt16 inFontID;
UInt16 inFontSize;
- if (!PyArg_ParseTuple(_args, "hh",
+ if (!PyArg_ParseTuple(_args, "hH",
&inFontID,
&inFontSize))
return NULL;
OSStatus _err;
Str255 inString;
UInt16 afterItem;
- if (!PyArg_ParseTuple(_args, "O&h",
+ if (!PyArg_ParseTuple(_args, "O&H",
PyMac_GetStr255, inString,
&afterItem))
return NULL;
{
PyObject *_res = NULL;
UInt16 item;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&item))
return NULL;
MacEnableMenuItem(_self->ob_itself,
{
PyObject *_res = NULL;
UInt16 item;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&item))
return NULL;
DisableMenuItem(_self->ob_itself,
PyObject *_res = NULL;
Boolean _rv;
UInt16 item;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&item))
return NULL;
_rv = IsMenuItemEnabled(_self->ob_itself,
{
PyObject *_res = NULL;
UInt16 item;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&item))
return NULL;
EnableMenuItemIcon(_self->ob_itself,
{
PyObject *_res = NULL;
UInt16 item;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&item))
return NULL;
DisableMenuItemIcon(_self->ob_itself,
PyObject *_res = NULL;
Boolean _rv;
UInt16 item;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&item))
return NULL;
_rv = IsMenuItemIconEnabled(_self->ob_itself,
TimeValue = Type("TimeValue", "l")
TimeScale = Type("TimeScale", "l")
TimeBaseFlags = Type("TimeBaseFlags", "l")
-QTCallBackFlags = Type("QTCallBackFlags", "h")
+QTCallBackFlags = Type("QTCallBackFlags", "H")
TimeBaseStatus = Type("TimeBaseStatus", "l")
-QTCallBackType = Type("QTCallBackType", "h")
-nextTimeFlagsEnum = Type("nextTimeFlagsEnum", "h")
+QTCallBackType = Type("QTCallBackType", "H")
+nextTimeFlagsEnum = Type("nextTimeFlagsEnum", "H")
createMovieFileFlagsEnum = Type("createMovieFileFlagsEnum", "l")
movieFlattenFlagsEnum = Type("movieFlattenFlagsEnum", "l")
dataRefAttributesFlags = Type("dataRefAttributesFlags", "l")
if (PyArg_ParseTuple(v, "h|hl", &pc->cmd, &pc->param1, &pc->param2))
return 1;
PyErr_Clear();
- return PyArg_ParseTuple(v, "hhs#", &pc->cmd, &pc->param1, &pc->param2, &len);
+ return PyArg_ParseTuple(v, "Hhs#", &pc->cmd, &pc->param1, &pc->param2, &len);
}
- return PyArg_Parse(v, "h", &pc->cmd);
+ return PyArg_Parse(v, "H", &pc->cmd);
}
static pascal void SndCh_UserRoutine(SndChannelPtr chan, SndCommand *cmd); /* Forward */
if (PyArg_ParseTuple(v, "h|hl", &pc->cmd, &pc->param1, &pc->param2))
return 1;
PyErr_Clear();
- return PyArg_ParseTuple(v, "hhs#", &pc->cmd, &pc->param1, &pc->param2, &len);
+ return PyArg_ParseTuple(v, "Hhs#", &pc->cmd, &pc->param1, &pc->param2, &len);
}
- return PyArg_Parse(v, "h", &pc->cmd);
+ return PyArg_Parse(v, "H", &pc->cmd);
}
static pascal void SndCh_UserRoutine(SndChannelPtr chan, SndCommand *cmd); /* Forward */
WEObjectReference = OpaqueByValueType("WEObjectReference", "WEOObj")
StScrpHandle = OpaqueByValueType("StScrpHandle", "ResObj")
RgnHandle = OpaqueByValueType("RgnHandle", "ResObj")
-EventModifiers = Type("EventModifiers", "h")
+EventModifiers = Type("EventModifiers", "H")
FlavorType = OSTypeType("FlavorType")
WESelector = OSTypeType("WESelector")
OptSoupHandle = OpaqueByValueType("WESoupHandle", "OptResObj")
OptStScrpHandle = OpaqueByValueType("StScrpHandle", "OptResObj")
-WEStyleMode = Type("WEStyleMode", "h")
+WEStyleMode = Type("WEStyleMode", "H")
WEActionKind = Type("WEActionKind", "h")
WEAlignment = Type("WEAlignment", "b")
WEEdge = Type("WEEdge", "b")
OSStatus _err;
WindowRegionCode inRegionCode;
RgnHandle ioWinRgn;
- if (!PyArg_ParseTuple(_args, "hO&",
+ if (!PyArg_ParseTuple(_args, "HO&",
&inRegionCode,
ResObj_Convert, &ioWinRgn))
return NULL;
OSStatus _err;
WindowRegionCode regionCode;
Rect globalBounds;
- if (!PyArg_ParseTuple(_args, "hO&",
+ if (!PyArg_ParseTuple(_args, "HO&",
®ionCode,
PyMac_GetRect, &globalBounds))
return NULL;
OSStatus _err;
WindowRegionCode regionCode;
Rect globalBounds;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
®ionCode))
return NULL;
_err = GetWindowBounds(_self->ob_itself,
AliasHandle = OpaqueByValueType("AliasHandle", "ResObj")
IconRef = OpaqueByValueType("IconRef", "ResObj")
-WindowRegionCode = Type("WindowRegionCode", "h")
+WindowRegionCode = Type("WindowRegionCode", "H")
WindowClass = Type("WindowClass", "l")
WindowAttributes = Type("WindowAttributes", "l")
WindowPositionMethod = Type("WindowPositionMethod", "l")
WindowTransitionEffect = Type("WindowTransitionEffect", "l")
WindowTransitionAction = Type("WindowTransitionAction", "l")
-WindowRegionCode = Type("WindowRegionCode", "h")
RGBColor = OpaqueType("RGBColor", "QdRGB")
PropertyCreator = OSTypeType("PropertyCreator")
PropertyTag = OSTypeType("PropertyTag")