diff options
author | Just van Rossum <just@letterror.com> | 2002-01-03 20:45:47 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2002-01-03 20:45:47 (GMT) |
commit | 43c2de230d926bf3befc7dc55b51e7b37ee5a58f (patch) | |
tree | 793916fdf93ef636f8cbb5a2293ce38acdac3cf6 /Mac/Modules/carbonevt/_CarbonEvtmodule.c | |
parent | 8edfc542f098f98754a959d3414238eab152cb88 (diff) | |
download | cpython-43c2de230d926bf3befc7dc55b51e7b37ee5a58f.zip cpython-43c2de230d926bf3befc7dc55b51e7b37ee5a58f.tar.gz cpython-43c2de230d926bf3befc7dc55b51e7b37ee5a58f.tar.bz2 |
fixed SetEventParameter() signature: removed unneccesary length arg.
Diffstat (limited to 'Mac/Modules/carbonevt/_CarbonEvtmodule.c')
-rwxr-xr-x | Mac/Modules/carbonevt/_CarbonEvtmodule.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Mac/Modules/carbonevt/_CarbonEvtmodule.c b/Mac/Modules/carbonevt/_CarbonEvtmodule.c index eef1e3c..8488a2f 100755 --- a/Mac/Modules/carbonevt/_CarbonEvtmodule.c +++ b/Mac/Modules/carbonevt/_CarbonEvtmodule.c @@ -215,19 +215,19 @@ static PyObject *EventRef_SetEventParameter(EventRefObject *_self, PyObject *_ar OSStatus _err; OSType inName; OSType inType; - UInt32 inSize; - char* inDataPtr; - if (!PyArg_ParseTuple(_args, "O&O&ls", + char *inDataPtr__in__; + long inDataPtr__len__; + int inDataPtr__in_len__; + if (!PyArg_ParseTuple(_args, "O&O&s#", PyMac_GetOSType, &inName, PyMac_GetOSType, &inType, - &inSize, - &inDataPtr)) + &inDataPtr__in__, &inDataPtr__in_len__)) return NULL; + inDataPtr__len__ = inDataPtr__in_len__; _err = SetEventParameter(_self->ob_itself, inName, inType, - inSize, - inDataPtr); + inDataPtr__len__, inDataPtr__in__); if (_err != noErr) return PyMac_Error(_err); Py_INCREF(Py_None); _res = Py_None; @@ -386,7 +386,7 @@ static PyMethodDef EventRef_methods[] = { {"ReleaseEvent", (PyCFunction)EventRef_ReleaseEvent, 1, "() -> None"}, {"SetEventParameter", (PyCFunction)EventRef_SetEventParameter, 1, - "(OSType inName, OSType inType, UInt32 inSize, char* inDataPtr) -> None"}, + "(OSType inName, OSType inType, Buffer inDataPtr) -> None"}, {"GetEventClass", (PyCFunction)EventRef_GetEventClass, 1, "() -> (UInt32 _rv)"}, {"GetEventKind", (PyCFunction)EventRef_GetEventKind, 1, |