summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-04 15:35:07 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-02-04 15:35:07 (GMT)
commitb9fa1a9ec533c0842a3a2948d2efbf3be4ebdd54 (patch)
tree2b01073d04706f939bfde2f981c3a1ce4d7284d3 /Mac
parent57d575240c384d67505a261a1640e1c632b5416a (diff)
downloadcpython-b9fa1a9ec533c0842a3a2948d2efbf3be4ebdd54.zip
cpython-b9fa1a9ec533c0842a3a2948d2efbf3be4ebdd54.tar.gz
cpython-b9fa1a9ec533c0842a3a2948d2efbf3be4ebdd54.tar.bz2
Changed an edit instruction because of a changed parameter name (sigh).
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/qt/_Qtmodule.c16
-rw-r--r--Mac/Modules/qt/qtscan.py1
2 files changed, 10 insertions, 7 deletions
diff --git a/Mac/Modules/qt/_Qtmodule.c b/Mac/Modules/qt/_Qtmodule.c
index 6da1a53..66bca4b 100644
--- a/Mac/Modules/qt/_Qtmodule.c
+++ b/Mac/Modules/qt/_Qtmodule.c
@@ -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("(TimeRecord theTime, TimeBase newBase) -> (TimeRecord theTime)")},
{"ConvertTimeScale", (PyCFunction)Qt_ConvertTimeScale, 1,
- PyDoc_STR("(TimeScale newScale) -> (TimeRecord theTime)")},
+ PyDoc_STR("(TimeRecord theTime, TimeScale newScale) -> (TimeRecord theTime)")},
{"AddTime", (PyCFunction)Qt_AddTime, 1,
PyDoc_STR("(TimeRecord dst, TimeRecord src) -> (TimeRecord dst)")},
{"SubtractTime", (PyCFunction)Qt_SubtractTime, 1,
diff --git a/Mac/Modules/qt/qtscan.py b/Mac/Modules/qt/qtscan.py
index 9c26ceb..86ddd54 100644
--- a/Mac/Modules/qt/qtscan.py
+++ b/Mac/Modules/qt/qtscan.py
@@ -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')]),