Diff of /Mac/Modules/carbonevt/CarbonEvtsupport.py [c840c5] .. [ca568f] Maximize Restore

Repo status: analyzing...

  Switch to unified view

a/Mac/Modules/carbonevt/CarbonEvtsupport.py b/Mac/Modules/carbonevt/CarbonEvtsupport.py
...
...
84
int EventTargetRef_Convert(PyObject *, EventTargetRef *);
84
int EventTargetRef_Convert(PyObject *, EventTargetRef *);
85
PyObject *EventHandlerCallRef_New(EventHandlerCallRef itself);
85
PyObject *EventHandlerCallRef_New(EventHandlerCallRef itself);
86
PyObject *EventRef_New(EventRef itself);
86
PyObject *EventRef_New(EventRef itself);
87
87
88
/********** EventTypeSpec *******/
88
/********** EventTypeSpec *******/
89
#if 0
89
static PyObject*
90
static PyObject*
90
EventTypeSpec_New(EventTypeSpec *in)
91
EventTypeSpec_New(EventTypeSpec *in)
91
{
92
{
92
        return Py_BuildValue("ll", in->eventClass, in->eventKind);
93
        return Py_BuildValue("ll", in->eventClass, in->eventKind);
93
}
94
}
95
#endif
94
96
95
static int
97
static int
96
EventTypeSpec_Convert(PyObject *v, EventTypeSpec *out)
98
EventTypeSpec_Convert(PyObject *v, EventTypeSpec *out)
97
{
99
{
98
        if (PyArg_Parse(v, "(O&l)",
100
        if (PyArg_Parse(v, "(O&l)",
99
                        PyMac_GetOSType, &(out->eventClass),
101
                        PyMac_GetOSType, &(out->eventClass),
100
                        &(out->eventKind)))
102
                        &(out->eventKind)))
101
                return 1;
103
                return 1;
102
        return NULL;
104
        return 0;
103
}
105
}
104
106
105
/********** end EventTypeSpec *******/
107
/********** end EventTypeSpec *******/
106
108
107
/********** HIPoint *******/
109
/********** HIPoint *******/
...
...
116
static int
118
static int
117
HIPoint_Convert(PyObject *v, HIPoint *out)
119
HIPoint_Convert(PyObject *v, HIPoint *out)
118
{
120
{
119
        if (PyArg_ParseTuple(v, "ff", &(out->x), &(out->y)))
121
        if (PyArg_ParseTuple(v, "ff", &(out->x), &(out->y)))
120
                return 1;
122
                return 1;
121
        return NULL;
123
        return 0;
122
}
124
}
123
#endif
125
#endif
124
126
125
/********** end HIPoint *******/
127
/********** end HIPoint *******/
126
128
127
/********** EventHotKeyID *******/
129
/********** EventHotKeyID *******/
128
130
#if 0
129
static PyObject*
131
static PyObject*
130
EventHotKeyID_New(EventHotKeyID *in)
132
EventHotKeyID_New(EventHotKeyID *in)
131
{
133
{
132
        return Py_BuildValue("ll", in->signature, in->id);
134
        return Py_BuildValue("ll", in->signature, in->id);
133
}
135
}
136
#endif
134
137
135
static int
138
static int
136
EventHotKeyID_Convert(PyObject *v, EventHotKeyID *out)
139
EventHotKeyID_Convert(PyObject *v, EventHotKeyID *out)
137
{
140
{
138
        if (PyArg_ParseTuple(v, "ll", &out->signature, &out->id))
141
        if (PyArg_ParseTuple(v, "ll", &out->signature, &out->id))