More cases of input parameters passed by reference without const.
This commit is contained in:
parent
ae57b7f843
commit
69387e19ef
|
@ -25835,18 +25835,18 @@ static PyObject *Qt_TuneSetHeader(PyObject *_self, PyObject *_args)
|
||||||
PyObject *_res = NULL;
|
PyObject *_res = NULL;
|
||||||
ComponentResult _rv;
|
ComponentResult _rv;
|
||||||
TunePlayer tp;
|
TunePlayer tp;
|
||||||
unsigned long header;
|
unsigned long * header;
|
||||||
#ifndef TuneSetHeader
|
#ifndef TuneSetHeader
|
||||||
PyMac_PRECHECK(TuneSetHeader);
|
PyMac_PRECHECK(TuneSetHeader);
|
||||||
#endif
|
#endif
|
||||||
if (!PyArg_ParseTuple(_args, "O&",
|
if (!PyArg_ParseTuple(_args, "O&s",
|
||||||
CmpInstObj_Convert, &tp))
|
CmpInstObj_Convert, &tp,
|
||||||
|
&header))
|
||||||
return NULL;
|
return NULL;
|
||||||
_rv = TuneSetHeader(tp,
|
_rv = TuneSetHeader(tp,
|
||||||
&header);
|
header);
|
||||||
_res = Py_BuildValue("ll",
|
_res = Py_BuildValue("l",
|
||||||
_rv,
|
_rv);
|
||||||
header);
|
|
||||||
return _res;
|
return _res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26149,21 +26149,21 @@ static PyObject *Qt_TuneSetHeaderWithSize(PyObject *_self, PyObject *_args)
|
||||||
PyObject *_res = NULL;
|
PyObject *_res = NULL;
|
||||||
ComponentResult _rv;
|
ComponentResult _rv;
|
||||||
TunePlayer tp;
|
TunePlayer tp;
|
||||||
unsigned long header;
|
unsigned long * header;
|
||||||
unsigned long size;
|
unsigned long size;
|
||||||
#ifndef TuneSetHeaderWithSize
|
#ifndef TuneSetHeaderWithSize
|
||||||
PyMac_PRECHECK(TuneSetHeaderWithSize);
|
PyMac_PRECHECK(TuneSetHeaderWithSize);
|
||||||
#endif
|
#endif
|
||||||
if (!PyArg_ParseTuple(_args, "O&l",
|
if (!PyArg_ParseTuple(_args, "O&sl",
|
||||||
CmpInstObj_Convert, &tp,
|
CmpInstObj_Convert, &tp,
|
||||||
|
&header,
|
||||||
&size))
|
&size))
|
||||||
return NULL;
|
return NULL;
|
||||||
_rv = TuneSetHeaderWithSize(tp,
|
_rv = TuneSetHeaderWithSize(tp,
|
||||||
&header,
|
header,
|
||||||
size);
|
size);
|
||||||
_res = Py_BuildValue("ll",
|
_res = Py_BuildValue("l",
|
||||||
_rv,
|
_rv);
|
||||||
header);
|
|
||||||
return _res;
|
return _res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27937,7 +27937,7 @@ static PyMethodDef Qt_methods[] = {
|
||||||
{"NATask", (PyCFunction)Qt_NATask, 1,
|
{"NATask", (PyCFunction)Qt_NATask, 1,
|
||||||
PyDoc_STR("(NoteAllocator na) -> (ComponentResult _rv)")},
|
PyDoc_STR("(NoteAllocator na) -> (ComponentResult _rv)")},
|
||||||
{"TuneSetHeader", (PyCFunction)Qt_TuneSetHeader, 1,
|
{"TuneSetHeader", (PyCFunction)Qt_TuneSetHeader, 1,
|
||||||
PyDoc_STR("(TunePlayer tp) -> (ComponentResult _rv, unsigned long header)")},
|
PyDoc_STR("(TunePlayer tp, unsigned long * header) -> (ComponentResult _rv)")},
|
||||||
{"TuneGetTimeBase", (PyCFunction)Qt_TuneGetTimeBase, 1,
|
{"TuneGetTimeBase", (PyCFunction)Qt_TuneGetTimeBase, 1,
|
||||||
PyDoc_STR("(TunePlayer tp) -> (ComponentResult _rv, TimeBase tb)")},
|
PyDoc_STR("(TunePlayer tp) -> (ComponentResult _rv, TimeBase tb)")},
|
||||||
{"TuneSetTimeScale", (PyCFunction)Qt_TuneSetTimeScale, 1,
|
{"TuneSetTimeScale", (PyCFunction)Qt_TuneSetTimeScale, 1,
|
||||||
|
@ -27969,7 +27969,7 @@ static PyMethodDef Qt_methods[] = {
|
||||||
{"TuneSetSoundLocalization", (PyCFunction)Qt_TuneSetSoundLocalization, 1,
|
{"TuneSetSoundLocalization", (PyCFunction)Qt_TuneSetSoundLocalization, 1,
|
||||||
PyDoc_STR("(TunePlayer tp, Handle data) -> (ComponentResult _rv)")},
|
PyDoc_STR("(TunePlayer tp, Handle data) -> (ComponentResult _rv)")},
|
||||||
{"TuneSetHeaderWithSize", (PyCFunction)Qt_TuneSetHeaderWithSize, 1,
|
{"TuneSetHeaderWithSize", (PyCFunction)Qt_TuneSetHeaderWithSize, 1,
|
||||||
PyDoc_STR("(TunePlayer tp, unsigned long size) -> (ComponentResult _rv, unsigned long header)")},
|
PyDoc_STR("(TunePlayer tp, unsigned long * header, unsigned long size) -> (ComponentResult _rv)")},
|
||||||
{"TuneSetPartMix", (PyCFunction)Qt_TuneSetPartMix, 1,
|
{"TuneSetPartMix", (PyCFunction)Qt_TuneSetPartMix, 1,
|
||||||
PyDoc_STR("(TunePlayer tp, unsigned long partNumber, long volume, long balance, long mixFlags) -> (ComponentResult _rv)")},
|
PyDoc_STR("(TunePlayer tp, unsigned long partNumber, long volume, long balance, long mixFlags) -> (ComponentResult _rv)")},
|
||||||
{"TuneGetPartMix", (PyCFunction)Qt_TuneGetPartMix, 1,
|
{"TuneGetPartMix", (PyCFunction)Qt_TuneGetPartMix, 1,
|
||||||
|
|
|
@ -306,6 +306,9 @@ class MyScanner(Scanner):
|
||||||
# It seems MusicMIDIPacket if never flagged with const but always used
|
# It seems MusicMIDIPacket if never flagged with const but always used
|
||||||
# for sending only. If that ever changes this needs to be fixed.
|
# for sending only. If that ever changes this needs to be fixed.
|
||||||
([('MusicMIDIPacket', '*', 'OutMode')], [('MusicMIDIPacket_ptr', '*', 'InMode')]),
|
([('MusicMIDIPacket', '*', 'OutMode')], [('MusicMIDIPacket_ptr', '*', 'InMode')]),
|
||||||
|
|
||||||
|
# QTMusic const-less input parameters
|
||||||
|
([('unsigned_long', 'header', 'OutMode')], [('UnsignedLongPtr', 'header', 'InMode')]),
|
||||||
]
|
]
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
@ -211,6 +211,7 @@ VideoDigitizerError = Type("ComponentResult", "l")
|
||||||
HandlerError = Type("HandlerError", "l")
|
HandlerError = Type("HandlerError", "l")
|
||||||
Ptr = InputOnlyType("Ptr", "s")
|
Ptr = InputOnlyType("Ptr", "s")
|
||||||
StringPtr = Type("StringPtr", "s")
|
StringPtr = Type("StringPtr", "s")
|
||||||
|
UnsignedLongPtr = Type("unsigned long *", "s")
|
||||||
mcactionparams = InputOnlyType("void *", "s")
|
mcactionparams = InputOnlyType("void *", "s")
|
||||||
QTParameterDialog = Type("QTParameterDialog", "l")
|
QTParameterDialog = Type("QTParameterDialog", "l")
|
||||||
QTAtomID = Type("QTAtomID", "l")
|
QTAtomID = Type("QTAtomID", "l")
|
||||||
|
|
Loading…
Reference in New Issue