mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
Generated anew
This commit is contained in:
parent
b95ea18a4c
commit
d4c26469d6
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Controls.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Controls.h'
|
||||
|
||||
pushButProc = 0
|
||||
checkBoxProc = 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Dialogs.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Dialogs.h'
|
||||
|
||||
ctrlItem = 4
|
||||
btnCtrl = 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Events.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Events.h'
|
||||
|
||||
nullEvent = 0
|
||||
mouseDown = 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Menus.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Menus.h'
|
||||
|
||||
noMark = 0
|
||||
mDrawMsg = 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDraw.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDraw.h'
|
||||
|
||||
invalColReq = -1
|
||||
srcCopy = 0
|
||||
@ -82,7 +82,7 @@ allDevices = 1 << allDevicesBit
|
||||
kNoConstraint = 0
|
||||
kVerticalConstraint = 1
|
||||
kHorizontalConstraint = 2
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDrawText.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDrawText.h'
|
||||
|
||||
leftCaret = 0
|
||||
rightCaret = -1
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Resources.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Resources.h'
|
||||
|
||||
resSysHeap = 64
|
||||
resPurgeable = 32
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Sound.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Sound.h'
|
||||
|
||||
soundListRsrc = 'snd '
|
||||
rate44khz = 0xAC440000L
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Windows.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Windows.h'
|
||||
|
||||
kStandardWindowDefinition = 0
|
||||
kRoundWindowDefinition = 1
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <Controls.h>
|
||||
|
||||
extern PyObject *ResObj_New(Handle);
|
||||
extern PyObject *ResObj_OptNew(Handle);
|
||||
extern int ResObj_Convert(PyObject *, Handle *);
|
||||
|
||||
extern PyObject *WinObj_New(WindowPtr);
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Controls.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Controls.h'
|
||||
|
||||
f = Function(ControlRef, 'NewControl',
|
||||
(WindowRef, 'theWindow', InMode),
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <Controls.h>
|
||||
|
||||
extern PyObject *ResObj_New(Handle);
|
||||
extern PyObject *ResObj_OptNew(Handle);
|
||||
extern int ResObj_Convert(PyObject *, Handle *);
|
||||
|
||||
extern PyObject *WinObj_New(WindowPtr);
|
||||
@ -191,7 +192,7 @@ static PyObject *DlgObj_GetDialogItem(_self, _args)
|
||||
&box);
|
||||
_res = Py_BuildValue("hO&O&",
|
||||
itemType,
|
||||
ResObj_New, item,
|
||||
ResObj_OptNew, item,
|
||||
PyMac_BuildRect, &box);
|
||||
return _res;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Dialogs.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Dialogs.h'
|
||||
|
||||
f = Function(DialogRef, 'NewDialog',
|
||||
(NullStorage, 'wStorage', InMode),
|
||||
@ -85,7 +85,7 @@ f = Method(void, 'GetDialogItem',
|
||||
(DialogRef, 'theDialog', InMode),
|
||||
(short, 'itemNo', InMode),
|
||||
(short, 'itemType', OutMode),
|
||||
(Handle, 'item', OutMode),
|
||||
(OptHandle, 'item', OutMode),
|
||||
(Rect, 'box', OutMode),
|
||||
)
|
||||
methods.append(f)
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <Controls.h>
|
||||
|
||||
extern PyObject *ResObj_New(Handle);
|
||||
extern PyObject *ResObj_OptNew(Handle);
|
||||
extern int ResObj_Convert(PyObject *, Handle *);
|
||||
|
||||
extern PyObject *WinObj_New(WindowPtr);
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Events.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Events.h'
|
||||
|
||||
f = Function(UInt32, 'GetCaretTime',
|
||||
)
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <Controls.h>
|
||||
|
||||
extern PyObject *ResObj_New(Handle);
|
||||
extern PyObject *ResObj_OptNew(Handle);
|
||||
extern int ResObj_Convert(PyObject *, Handle *);
|
||||
|
||||
extern PyObject *WinObj_New(WindowPtr);
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <Controls.h>
|
||||
|
||||
extern PyObject *ResObj_New(Handle);
|
||||
extern PyObject *ResObj_OptNew(Handle);
|
||||
extern int ResObj_Convert(PyObject *, Handle *);
|
||||
|
||||
extern PyObject *WinObj_New(WindowPtr);
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Menus.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Menus.h'
|
||||
|
||||
f = Function(short, 'GetMBarHeight',
|
||||
)
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <Controls.h>
|
||||
|
||||
extern PyObject *ResObj_New(Handle);
|
||||
extern PyObject *ResObj_OptNew(Handle);
|
||||
extern int ResObj_Convert(PyObject *, Handle *);
|
||||
|
||||
extern PyObject *WinObj_New(WindowPtr);
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDraw.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDraw.h'
|
||||
|
||||
f = Function(void, 'OpenPort',
|
||||
(GrafPtr, 'port', InMode),
|
||||
@ -713,7 +713,7 @@ f = Function(short, 'QDError',
|
||||
)
|
||||
functions.append(f)
|
||||
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDrawText.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:QuickDrawText.h'
|
||||
|
||||
f = Function(void, 'TextFont',
|
||||
(short, 'font', InMode),
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <Controls.h>
|
||||
|
||||
extern PyObject *ResObj_New(Handle);
|
||||
extern PyObject *ResObj_OptNew(Handle);
|
||||
extern int ResObj_Convert(PyObject *, Handle *);
|
||||
|
||||
extern PyObject *WinObj_New(WindowPtr);
|
||||
@ -1331,6 +1332,19 @@ static PyMethodDef Res_methods[] = {
|
||||
|
||||
|
||||
|
||||
/* Alternative version of ResObj_New, which returns None for null argument */
|
||||
PyObject *ResObj_OptNew(itself)
|
||||
Handle itself;
|
||||
{
|
||||
ResourceObject *it;
|
||||
if (itself == NULL) {
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
return ResObj_New(itself);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void initRes()
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Resources.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Resources.h'
|
||||
|
||||
f = ResFunction(short, 'InitResources',
|
||||
)
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <Controls.h>
|
||||
|
||||
extern PyObject *ResObj_New(Handle);
|
||||
extern PyObject *ResObj_OptNew(Handle);
|
||||
extern int ResObj_Convert(PyObject *, Handle *);
|
||||
|
||||
extern PyObject *WinObj_New(WindowPtr);
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Sound.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Sound.h'
|
||||
|
||||
f = SndFunction(void, 'SetSoundVol',
|
||||
(short, 'level', InMode),
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <Controls.h>
|
||||
|
||||
extern PyObject *ResObj_New(Handle);
|
||||
extern PyObject *ResObj_OptNew(Handle);
|
||||
extern int ResObj_Convert(PyObject *, Handle *);
|
||||
|
||||
extern PyObject *WinObj_New(WindowPtr);
|
||||
@ -804,6 +805,20 @@ static PyObject *Win_GetNewCWindow(_self, _args)
|
||||
return _res;
|
||||
}
|
||||
|
||||
static PyObject *Win_WhichWindow(_self, _args)
|
||||
PyObject *_self;
|
||||
PyObject *_args;
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
|
||||
long ptr;
|
||||
|
||||
if ( !PyArg_ParseTuple(_args, "i", &ptr) )
|
||||
return NULL;
|
||||
return WinObj_WhichWindow((WindowPtr)ptr);
|
||||
|
||||
}
|
||||
|
||||
static PyMethodDef Win_methods[] = {
|
||||
{"InitWindows", (PyCFunction)Win_InitWindows, 1,
|
||||
"() -> None"},
|
||||
@ -827,6 +842,8 @@ static PyMethodDef Win_methods[] = {
|
||||
"(Rect boundsRect, Str255 title, Boolean visible, short procID, WindowPtr behind, Boolean goAwayFlag, long refCon) -> (WindowPtr _rv)"},
|
||||
{"GetNewCWindow", (PyCFunction)Win_GetNewCWindow, 1,
|
||||
"(short windowID, WindowPtr behind) -> (WindowPtr _rv)"},
|
||||
{"WhichWindow", (PyCFunction)Win_WhichWindow, 1,
|
||||
"Resolve an integer WindowPtr address to a Window object"},
|
||||
{NULL, NULL, 0}
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Generated from 'Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Windows.h'
|
||||
# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Windows.h'
|
||||
|
||||
f = Function(void, 'InitWindows',
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user