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
1b7a70fa
Commit
1b7a70fa
authored
Mar 03, 2000
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed parameters to a few time and timebase calls: InOut parameters were
inadvertantly seen as out-only.
parent
6dc8ce91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
12 deletions
+25
-12
Mac/Modules/qt/Qtmodule.c
Mac/Modules/qt/Qtmodule.c
+17
-12
Mac/Modules/qt/qtscan.py
Mac/Modules/qt/qtscan.py
+8
-0
No files found.
Mac/Modules/qt/Qtmodule.c
View file @
1b7a70fa
...
@@ -1382,12 +1382,13 @@ static PyObject *TimeBaseObj_SetTimeBaseZero(_self, _args)
...
@@ -1382,12 +1382,13 @@ static PyObject *TimeBaseObj_SetTimeBaseZero(_self, _args)
{
{
PyObject
*
_res
=
NULL
;
PyObject
*
_res
=
NULL
;
TimeRecord
zero
;
TimeRecord
zero
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
QtTimeRecord_Convert
,
&
zero
))
return
NULL
;
return
NULL
;
SetTimeBaseZero
(
_self
->
ob_itself
,
SetTimeBaseZero
(
_self
->
ob_itself
,
&
zero
);
&
zero
);
_res
=
Py_BuildValue
(
"O&"
,
Py_INCREF
(
Py_None
);
QtTimeRecord_New
,
&
zero
)
;
_res
=
Py_None
;
return
_res
;
return
_res
;
}
}
...
@@ -1441,7 +1442,7 @@ static PyMethodDef TimeBaseObj_methods[] = {
...
@@ -1441,7 +1442,7 @@ static PyMethodDef TimeBaseObj_methods[] = {
{
"GetTimeBaseStatus"
,
(
PyCFunction
)
TimeBaseObj_GetTimeBaseStatus
,
1
,
{
"GetTimeBaseStatus"
,
(
PyCFunction
)
TimeBaseObj_GetTimeBaseStatus
,
1
,
"() -> (long _rv, TimeRecord unpinnedTime)"
},
"() -> (long _rv, TimeRecord unpinnedTime)"
},
{
"SetTimeBaseZero"
,
(
PyCFunction
)
TimeBaseObj_SetTimeBaseZero
,
1
,
{
"SetTimeBaseZero"
,
(
PyCFunction
)
TimeBaseObj_SetTimeBaseZero
,
1
,
"(
) -> (TimeRecord zero)
"
},
"(
TimeRecord zero) -> None
"
},
{
"GetTimeBaseEffectiveRate"
,
(
PyCFunction
)
TimeBaseObj_GetTimeBaseEffectiveRate
,
1
,
{
"GetTimeBaseEffectiveRate"
,
(
PyCFunction
)
TimeBaseObj_GetTimeBaseEffectiveRate
,
1
,
"() -> (Fixed _rv)"
},
"() -> (Fixed _rv)"
},
{
NULL
,
NULL
,
0
}
{
NULL
,
NULL
,
0
}
...
@@ -7633,7 +7634,8 @@ static PyObject *Qt_ConvertTime(_self, _args)
...
@@ -7633,7 +7634,8 @@ static PyObject *Qt_ConvertTime(_self, _args)
PyObject
*
_res
=
NULL
;
PyObject
*
_res
=
NULL
;
TimeRecord
inout
;
TimeRecord
inout
;
TimeBase
newBase
;
TimeBase
newBase
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
if
(
!
PyArg_ParseTuple
(
_args
,
"O&O&"
,
QtTimeRecord_Convert
,
&
inout
,
TimeBaseObj_Convert
,
&
newBase
))
TimeBaseObj_Convert
,
&
newBase
))
return
NULL
;
return
NULL
;
ConvertTime
(
&
inout
,
ConvertTime
(
&
inout
,
...
@@ -7650,7 +7652,8 @@ static PyObject *Qt_ConvertTimeScale(_self, _args)
...
@@ -7650,7 +7652,8 @@ static PyObject *Qt_ConvertTimeScale(_self, _args)
PyObject
*
_res
=
NULL
;
PyObject
*
_res
=
NULL
;
TimeRecord
inout
;
TimeRecord
inout
;
TimeScale
newScale
;
TimeScale
newScale
;
if
(
!
PyArg_ParseTuple
(
_args
,
"l"
,
if
(
!
PyArg_ParseTuple
(
_args
,
"O&l"
,
QtTimeRecord_Convert
,
&
inout
,
&
newScale
))
&
newScale
))
return
NULL
;
return
NULL
;
ConvertTimeScale
(
&
inout
,
ConvertTimeScale
(
&
inout
,
...
@@ -7667,7 +7670,8 @@ static PyObject *Qt_AddTime(_self, _args)
...
@@ -7667,7 +7670,8 @@ static PyObject *Qt_AddTime(_self, _args)
PyObject
*
_res
=
NULL
;
PyObject
*
_res
=
NULL
;
TimeRecord
dst
;
TimeRecord
dst
;
TimeRecord
src
;
TimeRecord
src
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
if
(
!
PyArg_ParseTuple
(
_args
,
"O&O&"
,
QtTimeRecord_Convert
,
&
dst
,
QtTimeRecord_Convert
,
&
src
))
QtTimeRecord_Convert
,
&
src
))
return
NULL
;
return
NULL
;
AddTime
(
&
dst
,
AddTime
(
&
dst
,
...
@@ -7684,7 +7688,8 @@ static PyObject *Qt_SubtractTime(_self, _args)
...
@@ -7684,7 +7688,8 @@ static PyObject *Qt_SubtractTime(_self, _args)
PyObject
*
_res
=
NULL
;
PyObject
*
_res
=
NULL
;
TimeRecord
dst
;
TimeRecord
dst
;
TimeRecord
src
;
TimeRecord
src
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
if
(
!
PyArg_ParseTuple
(
_args
,
"O&O&"
,
QtTimeRecord_Convert
,
&
dst
,
QtTimeRecord_Convert
,
&
src
))
QtTimeRecord_Convert
,
&
src
))
return
NULL
;
return
NULL
;
SubtractTime
(
&
dst
,
SubtractTime
(
&
dst
,
...
@@ -7903,13 +7908,13 @@ static PyMethodDef Qt_methods[] = {
...
@@ -7903,13 +7908,13 @@ static PyMethodDef Qt_methods[] = {
{
"NewTimeBase"
,
(
PyCFunction
)
Qt_NewTimeBase
,
1
,
{
"NewTimeBase"
,
(
PyCFunction
)
Qt_NewTimeBase
,
1
,
"() -> (TimeBase _rv)"
},
"() -> (TimeBase _rv)"
},
{
"ConvertTime"
,
(
PyCFunction
)
Qt_ConvertTime
,
1
,
{
"ConvertTime"
,
(
PyCFunction
)
Qt_ConvertTime
,
1
,
"(TimeBase newBase) -> (TimeRecord inout)"
},
"(Time
Record inout, Time
Base newBase) -> (TimeRecord inout)"
},
{
"ConvertTimeScale"
,
(
PyCFunction
)
Qt_ConvertTimeScale
,
1
,
{
"ConvertTimeScale"
,
(
PyCFunction
)
Qt_ConvertTimeScale
,
1
,
"(TimeScale newScale) -> (TimeRecord inout)"
},
"(Time
Record inout, Time
Scale newScale) -> (TimeRecord inout)"
},
{
"AddTime"
,
(
PyCFunction
)
Qt_AddTime
,
1
,
{
"AddTime"
,
(
PyCFunction
)
Qt_AddTime
,
1
,
"(TimeRecord src) -> (TimeRecord dst)"
},
"(TimeRecord
dst, TimeRecord
src) -> (TimeRecord dst)"
},
{
"SubtractTime"
,
(
PyCFunction
)
Qt_SubtractTime
,
1
,
{
"SubtractTime"
,
(
PyCFunction
)
Qt_SubtractTime
,
1
,
"(TimeRecord src) -> (TimeRecord dst)"
},
"(TimeRecord
dst, TimeRecord
src) -> (TimeRecord dst)"
},
{
"MusicMediaGetIndexedTunePlayer"
,
(
PyCFunction
)
Qt_MusicMediaGetIndexedTunePlayer
,
1
,
{
"MusicMediaGetIndexedTunePlayer"
,
(
PyCFunction
)
Qt_MusicMediaGetIndexedTunePlayer
,
1
,
"(ComponentInstance ti, long sampleDescIndex) -> (ComponentResult _rv, ComponentInstance tp)"
},
"(ComponentInstance ti, long sampleDescIndex) -> (ComponentResult _rv, ComponentInstance tp)"
},
{
"AlignWindow"
,
(
PyCFunction
)
Qt_AlignWindow
,
1
,
{
"AlignWindow"
,
(
PyCFunction
)
Qt_AlignWindow
,
1
,
...
...
Mac/Modules/qt/qtscan.py
View file @
1b7a70fa
...
@@ -110,6 +110,14 @@ class MyScanner(Scanner):
...
@@ -110,6 +110,14 @@ class MyScanner(Scanner):
# MCDoAction and more
# MCDoAction and more
([(
'void'
,
'*'
,
'OutMode'
)],
[(
'mcactionparams'
,
'*'
,
'InMode'
)]),
([(
'void'
,
'*'
,
'OutMode'
)],
[(
'mcactionparams'
,
'*'
,
'InMode'
)]),
# SetTimeBaseZero. Does not handle NULLs, unfortunately
([(
'TimeRecord'
,
'zero'
,
'OutMode'
)],
[(
'TimeRecord'
,
'zero'
,
'InMode'
)]),
# ConvertTime and ConvertTimeScale
([(
'TimeRecord'
,
'inout'
,
'OutMode'
)],
[(
'TimeRecord'
,
'inout'
,
'InOutMode'
)]),
# AddTime and SubtractTime
([(
'TimeRecord'
,
'dst'
,
'OutMode'
)],
[(
'TimeRecord'
,
'dst'
,
'InOutMode'
)]),
]
]
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
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