Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
69387e19
Commit
69387e19
authored
Jan 11, 2004
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More cases of input parameters passed by reference without const.
parent
ae57b7f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
Mac/Modules/qt/_Qtmodule.c
Mac/Modules/qt/_Qtmodule.c
+15
-15
Mac/Modules/qt/qtscan.py
Mac/Modules/qt/qtscan.py
+3
-0
Mac/Modules/qt/qtsupport.py
Mac/Modules/qt/qtsupport.py
+1
-0
No files found.
Mac/Modules/qt/_Qtmodule.c
View file @
69387e19
...
...
@@ -25835,18 +25835,18 @@ static PyObject *Qt_TuneSetHeader(PyObject *_self, PyObject *_args)
PyObject
*
_res
=
NULL
;
ComponentResult
_rv
;
TunePlayer
tp
;
unsigned
long
header
;
unsigned
long
*
header
;
#ifndef TuneSetHeader
PyMac_PRECHECK
(
TuneSetHeader
);
#endif
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
CmpInstObj_Convert
,
&
tp
))
if
(
!
PyArg_ParseTuple
(
_args
,
"O&s"
,
CmpInstObj_Convert
,
&
tp
,
&
header
))
return
NULL
;
_rv
=
TuneSetHeader
(
tp
,
&
header
);
_res
=
Py_BuildValue
(
"ll"
,
_rv
,
header
);
header
);
_res
=
Py_BuildValue
(
"l"
,
_rv
);
return
_res
;
}
...
...
@@ -26149,21 +26149,21 @@ static PyObject *Qt_TuneSetHeaderWithSize(PyObject *_self, PyObject *_args)
PyObject
*
_res
=
NULL
;
ComponentResult
_rv
;
TunePlayer
tp
;
unsigned
long
header
;
unsigned
long
*
header
;
unsigned
long
size
;
#ifndef TuneSetHeaderWithSize
PyMac_PRECHECK
(
TuneSetHeaderWithSize
);
#endif
if
(
!
PyArg_ParseTuple
(
_args
,
"O&l"
,
if
(
!
PyArg_ParseTuple
(
_args
,
"O&
s
l"
,
CmpInstObj_Convert
,
&
tp
,
&
header
,
&
size
))
return
NULL
;
_rv
=
TuneSetHeaderWithSize
(
tp
,
&
header
,
header
,
size
);
_res
=
Py_BuildValue
(
"ll"
,
_rv
,
header
);
_res
=
Py_BuildValue
(
"l"
,
_rv
);
return
_res
;
}
...
...
@@ -27937,7 +27937,7 @@ static PyMethodDef Qt_methods[] = {
{
"NATask"
,
(
PyCFunction
)
Qt_NATask
,
1
,
PyDoc_STR
(
"(NoteAllocator na) -> (ComponentResult _rv)"
)},
{
"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
,
PyDoc_STR
(
"(TunePlayer tp) -> (ComponentResult _rv, TimeBase tb)"
)},
{
"TuneSetTimeScale"
,
(
PyCFunction
)
Qt_TuneSetTimeScale
,
1
,
...
...
@@ -27969,7 +27969,7 @@ static PyMethodDef Qt_methods[] = {
{
"TuneSetSoundLocalization"
,
(
PyCFunction
)
Qt_TuneSetSoundLocalization
,
1
,
PyDoc_STR
(
"(TunePlayer tp, Handle data) -> (ComponentResult _rv)"
)},
{
"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
,
PyDoc_STR
(
"(TunePlayer tp, unsigned long partNumber, long volume, long balance, long mixFlags) -> (ComponentResult _rv)"
)},
{
"TuneGetPartMix"
,
(
PyCFunction
)
Qt_TuneGetPartMix
,
1
,
...
...
Mac/Modules/qt/qtscan.py
View file @
69387e19
...
...
@@ -306,6 +306,9 @@ class MyScanner(Scanner):
# It seems MusicMIDIPacket if never flagged with const but always used
# for sending only. If that ever changes this needs to be fixed.
([(
'MusicMIDIPacket'
,
'*'
,
'OutMode'
)],
[(
'MusicMIDIPacket_ptr'
,
'*'
,
'InMode'
)]),
# QTMusic const-less input parameters
([(
'unsigned_long'
,
'header'
,
'OutMode'
)],
[(
'UnsignedLongPtr'
,
'header'
,
'InMode'
)]),
]
if
__name__
==
"__main__"
:
...
...
Mac/Modules/qt/qtsupport.py
View file @
69387e19
...
...
@@ -211,6 +211,7 @@ VideoDigitizerError = Type("ComponentResult", "l")
HandlerError
=
Type
(
"HandlerError"
,
"l"
)
Ptr
=
InputOnlyType
(
"Ptr"
,
"s"
)
StringPtr
=
Type
(
"StringPtr"
,
"s"
)
UnsignedLongPtr
=
Type
(
"unsigned long *"
,
"s"
)
mcactionparams
=
InputOnlyType
(
"void *"
,
"s"
)
QTParameterDialog
=
Type
(
"QTParameterDialog"
,
"l"
)
QTAtomID
=
Type
(
"QTAtomID"
,
"l"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment