[Python-checkins] python/dist/src/Mac/Modules/app _Appmodule.c, 1.19, 1.20
jackjansen@users.sourceforge.net
jackjansen at users.sourceforge.net
Sun Jul 3 23:00:11 CEST 2005
Update of /cvsroot/python/python/dist/src/Mac/Modules/app
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25508/app
Modified Files:
_Appmodule.c
Log Message:
Updated (and regenerated) for name change in tp_init method arguments:
they are now _self, _args and _kwds.
Index: _Appmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/app/_Appmodule.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- _Appmodule.c 20 Nov 2003 13:30:55 -0000 1.19
+++ _Appmodule.c 3 Jul 2005 20:59:37 -0000 1.20
@@ -20,7 +20,7 @@
int ThemeButtonDrawInfo_Convert(PyObject *v, ThemeButtonDrawInfo *p_itself)
{
- return PyArg_Parse(v, "(iHH)", &p_itself->state, &p_itself->value, &p_itself->adornment);
+ return PyArg_Parse(v, "(iHH)", &p_itself->state, &p_itself->value, &p_itself->adornment);
}
@@ -45,6 +45,7 @@
it->ob_itself = itself;
return (PyObject *)it;
}
+
int ThemeDrawingStateObj_Convert(PyObject *v, ThemeDrawingState *p_itself)
{
if (!ThemeDrawingStateObj_Check(v))
@@ -115,16 +116,16 @@
#define ThemeDrawingStateObj_tp_alloc PyType_GenericAlloc
-static PyObject *ThemeDrawingStateObj_tp_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
+static PyObject *ThemeDrawingStateObj_tp_new(PyTypeObject *type, PyObject *_args, PyObject *_kwds)
{
- PyObject *self;
+ PyObject *_self;
ThemeDrawingState itself;
char *kw[] = {"itself", 0};
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&", kw, ThemeDrawingStateObj_Convert, &itself)) return NULL;
- if ((self = type->tp_alloc(type, 0)) == NULL) return NULL;
- ((ThemeDrawingStateObject *)self)->ob_itself = itself;
- return self;
+ if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "O&", kw, ThemeDrawingStateObj_Convert, &itself)) return NULL;
+ if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL;
+ ((ThemeDrawingStateObject *)_self)->ob_itself = itself;
+ return _self;
}
#define ThemeDrawingStateObj_tp_free PyObject_Del
More information about the Python-checkins
mailing list