1414
1515/* Macro to test whether a weak-loaded CFM function exists */
1616#define PyMac_PRECHECK (rtn ) do { if ( &rtn == NULL ) {\
17- PyErr_SetString(PyExc_NotImplementedError, \
18- "Not available in this shared library/OS version"); \
19- return NULL; \
17+ PyErr_SetString(PyExc_NotImplementedError, \
18+ "Not available in this shared library/OS version"); \
19+ return NULL; \
2020 }} while(0)
2121
2222
@@ -9340,7 +9340,8 @@ static PyObject *Qt_ConvertTime(PyObject *_self, PyObject *_args)
93409340#ifndef ConvertTime
93419341 PyMac_PRECHECK (ConvertTime );
93429342#endif
9343- if (!PyArg_ParseTuple (_args , "O&" ,
9343+ if (!PyArg_ParseTuple (_args , "O&O&" ,
9344+ QtTimeRecord_Convert , & theTime ,
93449345 TimeBaseObj_Convert , & newBase ))
93459346 return NULL ;
93469347 ConvertTime (& theTime ,
@@ -9358,7 +9359,8 @@ static PyObject *Qt_ConvertTimeScale(PyObject *_self, PyObject *_args)
93589359#ifndef ConvertTimeScale
93599360 PyMac_PRECHECK (ConvertTimeScale );
93609361#endif
9361- if (!PyArg_ParseTuple (_args , "l" ,
9362+ if (!PyArg_ParseTuple (_args , "O&l" ,
9363+ QtTimeRecord_Convert , & theTime ,
93629364 & newScale ))
93639365 return NULL ;
93649366 ConvertTimeScale (& theTime ,
@@ -9691,9 +9693,9 @@ static PyMethodDef Qt_methods[] = {
96919693 {"NewTimeBase" , (PyCFunction )Qt_NewTimeBase , 1 ,
96929694 PyDoc_STR ("() -> (TimeBase _rv)" )},
96939695 {"ConvertTime" , (PyCFunction )Qt_ConvertTime , 1 ,
9694- PyDoc_STR ("(TimeBase newBase) -> (TimeRecord theTime)" )},
9696+ PyDoc_STR ("(TimeRecord theTime, TimeBase newBase) -> (TimeRecord theTime)" )},
96959697 {"ConvertTimeScale" , (PyCFunction )Qt_ConvertTimeScale , 1 ,
9696- PyDoc_STR ("(TimeScale newScale) -> (TimeRecord theTime)" )},
9698+ PyDoc_STR ("(TimeRecord theTime, TimeScale newScale) -> (TimeRecord theTime)" )},
96979699 {"AddTime" , (PyCFunction )Qt_AddTime , 1 ,
96989700 PyDoc_STR ("(TimeRecord dst, TimeRecord src) -> (TimeRecord dst)" )},
96999701 {"SubtractTime" , (PyCFunction )Qt_SubtractTime , 1 ,
0 commit comments