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
b9fa1a9e
Commit
b9fa1a9e
authored
Feb 04, 2003
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed an edit instruction because of a changed parameter name (sigh).
parent
57d57524
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
Mac/Modules/qt/_Qtmodule.c
Mac/Modules/qt/_Qtmodule.c
+9
-7
Mac/Modules/qt/qtscan.py
Mac/Modules/qt/qtscan.py
+1
-0
No files found.
Mac/Modules/qt/_Qtmodule.c
View file @
b9fa1a9e
...
...
@@ -14,9 +14,9 @@
/* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
PyErr_SetString(PyExc_NotImplementedError, \
"Not available in this shared library/OS version"); \
return NULL; \
PyErr_SetString(PyExc_NotImplementedError, \
"Not available in this shared library/OS version"); \
return NULL; \
}} while(0)
...
...
@@ -9340,7 +9340,8 @@ static PyObject *Qt_ConvertTime(PyObject *_self, PyObject *_args)
#ifndef ConvertTime
PyMac_PRECHECK
(
ConvertTime
);
#endif
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
if
(
!
PyArg_ParseTuple
(
_args
,
"O&O&"
,
QtTimeRecord_Convert
,
&
theTime
,
TimeBaseObj_Convert
,
&
newBase
))
return
NULL
;
ConvertTime
(
&
theTime
,
...
...
@@ -9358,7 +9359,8 @@ static PyObject *Qt_ConvertTimeScale(PyObject *_self, PyObject *_args)
#ifndef ConvertTimeScale
PyMac_PRECHECK
(
ConvertTimeScale
);
#endif
if
(
!
PyArg_ParseTuple
(
_args
,
"l"
,
if
(
!
PyArg_ParseTuple
(
_args
,
"O&l"
,
QtTimeRecord_Convert
,
&
theTime
,
&
newScale
))
return
NULL
;
ConvertTimeScale
(
&
theTime
,
...
...
@@ -9691,9 +9693,9 @@ static PyMethodDef Qt_methods[] = {
{
"NewTimeBase"
,
(
PyCFunction
)
Qt_NewTimeBase
,
1
,
PyDoc_STR
(
"() -> (TimeBase _rv)"
)},
{
"ConvertTime"
,
(
PyCFunction
)
Qt_ConvertTime
,
1
,
PyDoc_STR
(
"(TimeBase newBase) -> (TimeRecord theTime)"
)},
PyDoc_STR
(
"(Time
Record theTime, Time
Base newBase) -> (TimeRecord theTime)"
)},
{
"ConvertTimeScale"
,
(
PyCFunction
)
Qt_ConvertTimeScale
,
1
,
PyDoc_STR
(
"(TimeScale newScale) -> (TimeRecord theTime)"
)},
PyDoc_STR
(
"(Time
Record theTime, Time
Scale newScale) -> (TimeRecord theTime)"
)},
{
"AddTime"
,
(
PyCFunction
)
Qt_AddTime
,
1
,
PyDoc_STR
(
"(TimeRecord dst, TimeRecord src) -> (TimeRecord dst)"
)},
{
"SubtractTime"
,
(
PyCFunction
)
Qt_SubtractTime
,
1
,
...
...
Mac/Modules/qt/qtscan.py
View file @
b9fa1a9e
...
...
@@ -139,6 +139,7 @@ class MyScanner(Scanner):
# ConvertTime and ConvertTimeScale
([(
'TimeRecord'
,
'inout'
,
'OutMode'
)],
[(
'TimeRecord'
,
'inout'
,
'InOutMode'
)]),
([(
'TimeRecord'
,
'theTime'
,
'OutMode'
)],
[(
'TimeRecord'
,
'theTime'
,
'InOutMode'
)]),
# AddTime and SubtractTime
([(
'TimeRecord'
,
'dst'
,
'OutMode'
)],
[(
'TimeRecord'
,
'dst'
,
'InOutMode'
)]),
...
...
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