@@ -146,54 +146,6 @@ static PyObject *CmpInstObj_GetComponentInstanceError(_self, _args)
146146 return _res ;
147147}
148148
149- static PyObject * CmpInstObj_ComponentFunctionImplemented (_self , _args )
150- ComponentInstanceObject * _self ;
151- PyObject * _args ;
152- {
153- PyObject * _res = NULL ;
154- long _rv ;
155- short ftnNumber ;
156- if (!PyArg_ParseTuple (_args , "h" ,
157- & ftnNumber ))
158- return NULL ;
159- _rv = ComponentFunctionImplemented (_self -> ob_itself ,
160- ftnNumber );
161- _res = Py_BuildValue ("l" ,
162- _rv );
163- return _res ;
164- }
165-
166- static PyObject * CmpInstObj_GetComponentVersion (_self , _args )
167- ComponentInstanceObject * _self ;
168- PyObject * _args ;
169- {
170- PyObject * _res = NULL ;
171- long _rv ;
172- if (!PyArg_ParseTuple (_args , "" ))
173- return NULL ;
174- _rv = GetComponentVersion (_self -> ob_itself );
175- _res = Py_BuildValue ("l" ,
176- _rv );
177- return _res ;
178- }
179-
180- static PyObject * CmpInstObj_ComponentSetTarget (_self , _args )
181- ComponentInstanceObject * _self ;
182- PyObject * _args ;
183- {
184- PyObject * _res = NULL ;
185- long _rv ;
186- ComponentInstance target ;
187- if (!PyArg_ParseTuple (_args , "O&" ,
188- CmpInstObj_Convert , & target ))
189- return NULL ;
190- _rv = ComponentSetTarget (_self -> ob_itself ,
191- target );
192- _res = Py_BuildValue ("l" ,
193- _rv );
194- return _res ;
195- }
196-
197149static PyObject * CmpInstObj_SetComponentInstanceError (_self , _args )
198150 ComponentInstanceObject * _self ;
199151 PyObject * _args ;
@@ -270,17 +222,59 @@ static PyObject *CmpInstObj_SetComponentInstanceA5(_self, _args)
270222 return _res ;
271223}
272224
225+ static PyObject * CmpInstObj_ComponentFunctionImplemented (_self , _args )
226+ ComponentInstanceObject * _self ;
227+ PyObject * _args ;
228+ {
229+ PyObject * _res = NULL ;
230+ long _rv ;
231+ short ftnNumber ;
232+ if (!PyArg_ParseTuple (_args , "h" ,
233+ & ftnNumber ))
234+ return NULL ;
235+ _rv = ComponentFunctionImplemented (_self -> ob_itself ,
236+ ftnNumber );
237+ _res = Py_BuildValue ("l" ,
238+ _rv );
239+ return _res ;
240+ }
241+
242+ static PyObject * CmpInstObj_GetComponentVersion (_self , _args )
243+ ComponentInstanceObject * _self ;
244+ PyObject * _args ;
245+ {
246+ PyObject * _res = NULL ;
247+ long _rv ;
248+ if (!PyArg_ParseTuple (_args , "" ))
249+ return NULL ;
250+ _rv = GetComponentVersion (_self -> ob_itself );
251+ _res = Py_BuildValue ("l" ,
252+ _rv );
253+ return _res ;
254+ }
255+
256+ static PyObject * CmpInstObj_ComponentSetTarget (_self , _args )
257+ ComponentInstanceObject * _self ;
258+ PyObject * _args ;
259+ {
260+ PyObject * _res = NULL ;
261+ long _rv ;
262+ ComponentInstance target ;
263+ if (!PyArg_ParseTuple (_args , "O&" ,
264+ CmpInstObj_Convert , & target ))
265+ return NULL ;
266+ _rv = ComponentSetTarget (_self -> ob_itself ,
267+ target );
268+ _res = Py_BuildValue ("l" ,
269+ _rv );
270+ return _res ;
271+ }
272+
273273static PyMethodDef CmpInstObj_methods [] = {
274274 {"CloseComponent" , (PyCFunction )CmpInstObj_CloseComponent , 1 ,
275275 "() -> None" },
276276 {"GetComponentInstanceError" , (PyCFunction )CmpInstObj_GetComponentInstanceError , 1 ,
277277 "() -> None" },
278- {"ComponentFunctionImplemented" , (PyCFunction )CmpInstObj_ComponentFunctionImplemented , 1 ,
279- "(short ftnNumber) -> (long _rv)" },
280- {"GetComponentVersion" , (PyCFunction )CmpInstObj_GetComponentVersion , 1 ,
281- "() -> (long _rv)" },
282- {"ComponentSetTarget" , (PyCFunction )CmpInstObj_ComponentSetTarget , 1 ,
283- "(ComponentInstance target) -> (long _rv)" },
284278 {"SetComponentInstanceError" , (PyCFunction )CmpInstObj_SetComponentInstanceError , 1 ,
285279 "(OSErr theError) -> None" },
286280 {"GetComponentInstanceStorage" , (PyCFunction )CmpInstObj_GetComponentInstanceStorage , 1 ,
@@ -291,6 +285,12 @@ static PyMethodDef CmpInstObj_methods[] = {
291285 "() -> (long _rv)" },
292286 {"SetComponentInstanceA5" , (PyCFunction )CmpInstObj_SetComponentInstanceA5 , 1 ,
293287 "(long theA5) -> None" },
288+ {"ComponentFunctionImplemented" , (PyCFunction )CmpInstObj_ComponentFunctionImplemented , 1 ,
289+ "(short ftnNumber) -> (long _rv)" },
290+ {"GetComponentVersion" , (PyCFunction )CmpInstObj_GetComponentVersion , 1 ,
291+ "() -> (long _rv)" },
292+ {"ComponentSetTarget" , (PyCFunction )CmpInstObj_ComponentSetTarget , 1 ,
293+ "(ComponentInstance target) -> (long _rv)" },
294294 {NULL , NULL , 0 }
295295};
296296
@@ -609,13 +609,13 @@ static PyObject *Cm_RegisterComponentResource(_self, _args)
609609{
610610 PyObject * _res = NULL ;
611611 Component _rv ;
612- ComponentResourceHandle tr ;
612+ ComponentResourceHandle cr ;
613613 short global ;
614614 if (!PyArg_ParseTuple (_args , "O&h" ,
615- ResObj_Convert , & tr ,
615+ ResObj_Convert , & cr ,
616616 & global ))
617617 return NULL ;
618- _rv = RegisterComponentResource (tr ,
618+ _rv = RegisterComponentResource (cr ,
619619 global );
620620 _res = Py_BuildValue ("O&" ,
621621 CmpObj_New , _rv );
@@ -728,7 +728,7 @@ static PyObject *Cm_RegisterComponentResourceFile(_self, _args)
728728
729729static PyMethodDef Cm_methods [] = {
730730 {"RegisterComponentResource" , (PyCFunction )Cm_RegisterComponentResource , 1 ,
731- "(ComponentResourceHandle tr , short global) -> (Component _rv)" },
731+ "(ComponentResourceHandle cr , short global) -> (Component _rv)" },
732732 {"FindNextComponent" , (PyCFunction )Cm_FindNextComponent , 1 ,
733733 "(Component aComponent, ComponentDescription looking) -> (Component _rv)" },
734734 {"CountComponents" , (PyCFunction )Cm_CountComponents , 1 ,
0 commit comments