[Python-checkins] python/dist/src/Mac/Modules/cm _Cmmodule.c,1.9,1.10

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2002年8月16日 02:09:54 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules/cm
In directory usw-pr-cvs1:/tmp/cvs-serv18405/cm
Modified Files:
	_Cmmodule.c 
Log Message:
Regenerated with PyDoc_STR() around docstrings.
Index: _Cmmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/cm/_Cmmodule.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** _Cmmodule.c	23 Apr 2002 22:45:25 -0000	1.9
--- _Cmmodule.c	16 Aug 2002 09:09:19 -0000	1.10
***************
*** 278,306 ****
 static PyMethodDef CmpInstObj_methods[] = {
 	{"CloseComponent", (PyCFunction)CmpInstObj_CloseComponent, 1,
! 	 "() -> None"},
 	{"GetComponentInstanceError", (PyCFunction)CmpInstObj_GetComponentInstanceError, 1,
! 	 "() -> None"},
 	{"SetComponentInstanceError", (PyCFunction)CmpInstObj_SetComponentInstanceError, 1,
! 	 "(OSErr theError) -> None"},
 	{"GetComponentInstanceStorage", (PyCFunction)CmpInstObj_GetComponentInstanceStorage, 1,
! 	 "() -> (Handle _rv)"},
 	{"SetComponentInstanceStorage", (PyCFunction)CmpInstObj_SetComponentInstanceStorage, 1,
! 	 "(Handle theStorage) -> None"},
 
 #if !TARGET_API_MAC_CARBON
 	{"GetComponentInstanceA5", (PyCFunction)CmpInstObj_GetComponentInstanceA5, 1,
! 	 "() -> (long _rv)"},
 #endif
 
 #if !TARGET_API_MAC_CARBON
 	{"SetComponentInstanceA5", (PyCFunction)CmpInstObj_SetComponentInstanceA5, 1,
! 	 "(long theA5) -> None"},
 #endif
 	{"ComponentFunctionImplemented", (PyCFunction)CmpInstObj_ComponentFunctionImplemented, 1,
! 	 "(short ftnNumber) -> (long _rv)"},
 	{"GetComponentVersion", (PyCFunction)CmpInstObj_GetComponentVersion, 1,
! 	 "() -> (long _rv)"},
 	{"ComponentSetTarget", (PyCFunction)CmpInstObj_ComponentSetTarget, 1,
! 	 "(ComponentInstance target) -> (long _rv)"},
 	{NULL, NULL, 0}
 };
--- 278,306 ----
 static PyMethodDef CmpInstObj_methods[] = {
 	{"CloseComponent", (PyCFunction)CmpInstObj_CloseComponent, 1,
! 	 PyDoc_STR("() -> None")},
 	{"GetComponentInstanceError", (PyCFunction)CmpInstObj_GetComponentInstanceError, 1,
! 	 PyDoc_STR("() -> None")},
 	{"SetComponentInstanceError", (PyCFunction)CmpInstObj_SetComponentInstanceError, 1,
! 	 PyDoc_STR("(OSErr theError) -> None")},
 	{"GetComponentInstanceStorage", (PyCFunction)CmpInstObj_GetComponentInstanceStorage, 1,
! 	 PyDoc_STR("() -> (Handle _rv)")},
 	{"SetComponentInstanceStorage", (PyCFunction)CmpInstObj_SetComponentInstanceStorage, 1,
! 	 PyDoc_STR("(Handle theStorage) -> None")},
 
 #if !TARGET_API_MAC_CARBON
 	{"GetComponentInstanceA5", (PyCFunction)CmpInstObj_GetComponentInstanceA5, 1,
! 	 PyDoc_STR("() -> (long _rv)")},
 #endif
 
 #if !TARGET_API_MAC_CARBON
 	{"SetComponentInstanceA5", (PyCFunction)CmpInstObj_SetComponentInstanceA5, 1,
! 	 PyDoc_STR("(long theA5) -> None")},
 #endif
 	{"ComponentFunctionImplemented", (PyCFunction)CmpInstObj_ComponentFunctionImplemented, 1,
! 	 PyDoc_STR("(short ftnNumber) -> (long _rv)")},
 	{"GetComponentVersion", (PyCFunction)CmpInstObj_GetComponentVersion, 1,
! 	 PyDoc_STR("() -> (long _rv)")},
 	{"ComponentSetTarget", (PyCFunction)CmpInstObj_ComponentSetTarget, 1,
! 	 PyDoc_STR("(ComponentInstance target) -> (long _rv)")},
 	{NULL, NULL, 0}
 };
***************
*** 670,702 ****
 static PyMethodDef CmpObj_methods[] = {
 	{"UnregisterComponent", (PyCFunction)CmpObj_UnregisterComponent, 1,
! 	 "() -> None"},
 	{"GetComponentInfo", (PyCFunction)CmpObj_GetComponentInfo, 1,
! 	 "(Handle componentName, Handle componentInfo, Handle componentIcon) -> (ComponentDescription cd)"},
 	{"OpenComponent", (PyCFunction)CmpObj_OpenComponent, 1,
! 	 "() -> (ComponentInstance _rv)"},
 	{"ResolveComponentAlias", (PyCFunction)CmpObj_ResolveComponentAlias, 1,
! 	 "() -> (Component _rv)"},
 	{"GetComponentPublicIndString", (PyCFunction)CmpObj_GetComponentPublicIndString, 1,
! 	 "(Str255 theString, short strListID, short index) -> None"},
 	{"GetComponentRefcon", (PyCFunction)CmpObj_GetComponentRefcon, 1,
! 	 "() -> (long _rv)"},
 	{"SetComponentRefcon", (PyCFunction)CmpObj_SetComponentRefcon, 1,
! 	 "(long theRefcon) -> None"},
 	{"OpenComponentResFile", (PyCFunction)CmpObj_OpenComponentResFile, 1,
! 	 "() -> (short _rv)"},
 	{"GetComponentResource", (PyCFunction)CmpObj_GetComponentResource, 1,
! 	 "(OSType resType, short resID) -> (Handle theResource)"},
 	{"GetComponentIndString", (PyCFunction)CmpObj_GetComponentIndString, 1,
! 	 "(Str255 theString, short strListID, short index) -> None"},
 	{"CountComponentInstances", (PyCFunction)CmpObj_CountComponentInstances, 1,
! 	 "() -> (long _rv)"},
 	{"SetDefaultComponent", (PyCFunction)CmpObj_SetDefaultComponent, 1,
! 	 "(short flags) -> None"},
 	{"CaptureComponent", (PyCFunction)CmpObj_CaptureComponent, 1,
! 	 "(Component capturingComponent) -> (Component _rv)"},
 	{"UncaptureComponent", (PyCFunction)CmpObj_UncaptureComponent, 1,
! 	 "() -> None"},
 	{"GetComponentIconSuite", (PyCFunction)CmpObj_GetComponentIconSuite, 1,
! 	 "() -> (Handle iconSuite)"},
 	{NULL, NULL, 0}
 };
--- 670,702 ----
 static PyMethodDef CmpObj_methods[] = {
 	{"UnregisterComponent", (PyCFunction)CmpObj_UnregisterComponent, 1,
! 	 PyDoc_STR("() -> None")},
 	{"GetComponentInfo", (PyCFunction)CmpObj_GetComponentInfo, 1,
! 	 PyDoc_STR("(Handle componentName, Handle componentInfo, Handle componentIcon) -> (ComponentDescription cd)")},
 	{"OpenComponent", (PyCFunction)CmpObj_OpenComponent, 1,
! 	 PyDoc_STR("() -> (ComponentInstance _rv)")},
 	{"ResolveComponentAlias", (PyCFunction)CmpObj_ResolveComponentAlias, 1,
! 	 PyDoc_STR("() -> (Component _rv)")},
 	{"GetComponentPublicIndString", (PyCFunction)CmpObj_GetComponentPublicIndString, 1,
! 	 PyDoc_STR("(Str255 theString, short strListID, short index) -> None")},
 	{"GetComponentRefcon", (PyCFunction)CmpObj_GetComponentRefcon, 1,
! 	 PyDoc_STR("() -> (long _rv)")},
 	{"SetComponentRefcon", (PyCFunction)CmpObj_SetComponentRefcon, 1,
! 	 PyDoc_STR("(long theRefcon) -> None")},
 	{"OpenComponentResFile", (PyCFunction)CmpObj_OpenComponentResFile, 1,
! 	 PyDoc_STR("() -> (short _rv)")},
 	{"GetComponentResource", (PyCFunction)CmpObj_GetComponentResource, 1,
! 	 PyDoc_STR("(OSType resType, short resID) -> (Handle theResource)")},
 	{"GetComponentIndString", (PyCFunction)CmpObj_GetComponentIndString, 1,
! 	 PyDoc_STR("(Str255 theString, short strListID, short index) -> None")},
 	{"CountComponentInstances", (PyCFunction)CmpObj_CountComponentInstances, 1,
! 	 PyDoc_STR("() -> (long _rv)")},
 	{"SetDefaultComponent", (PyCFunction)CmpObj_SetDefaultComponent, 1,
! 	 PyDoc_STR("(short flags) -> None")},
 	{"CaptureComponent", (PyCFunction)CmpObj_CaptureComponent, 1,
! 	 PyDoc_STR("(Component capturingComponent) -> (Component _rv)")},
 	{"UncaptureComponent", (PyCFunction)CmpObj_UncaptureComponent, 1,
! 	 PyDoc_STR("() -> None")},
 	{"GetComponentIconSuite", (PyCFunction)CmpObj_GetComponentIconSuite, 1,
! 	 PyDoc_STR("() -> (Handle iconSuite)")},
 	{NULL, NULL, 0}
 };
***************
*** 871,887 ****
 static PyMethodDef Cm_methods[] = {
 	{"RegisterComponentResource", (PyCFunction)Cm_RegisterComponentResource, 1,
! 	 "(ComponentResourceHandle cr, short global) -> (Component _rv)"},
 	{"FindNextComponent", (PyCFunction)Cm_FindNextComponent, 1,
! 	 "(Component aComponent, ComponentDescription looking) -> (Component _rv)"},
 	{"CountComponents", (PyCFunction)Cm_CountComponents, 1,
! 	 "(ComponentDescription looking) -> (long _rv)"},
 	{"GetComponentListModSeed", (PyCFunction)Cm_GetComponentListModSeed, 1,
! 	 "() -> (long _rv)"},
 	{"CloseComponentResFile", (PyCFunction)Cm_CloseComponentResFile, 1,
! 	 "(short refnum) -> None"},
 	{"OpenDefaultComponent", (PyCFunction)Cm_OpenDefaultComponent, 1,
! 	 "(OSType componentType, OSType componentSubType) -> (ComponentInstance _rv)"},
 	{"RegisterComponentResourceFile", (PyCFunction)Cm_RegisterComponentResourceFile, 1,
! 	 "(short resRefNum, short global) -> (long _rv)"},
 	{NULL, NULL, 0}
 };
--- 871,887 ----
 static PyMethodDef Cm_methods[] = {
 	{"RegisterComponentResource", (PyCFunction)Cm_RegisterComponentResource, 1,
! 	 PyDoc_STR("(ComponentResourceHandle cr, short global) -> (Component _rv)")},
 	{"FindNextComponent", (PyCFunction)Cm_FindNextComponent, 1,
! 	 PyDoc_STR("(Component aComponent, ComponentDescription looking) -> (Component _rv)")},
 	{"CountComponents", (PyCFunction)Cm_CountComponents, 1,
! 	 PyDoc_STR("(ComponentDescription looking) -> (long _rv)")},
 	{"GetComponentListModSeed", (PyCFunction)Cm_GetComponentListModSeed, 1,
! 	 PyDoc_STR("() -> (long _rv)")},
 	{"CloseComponentResFile", (PyCFunction)Cm_CloseComponentResFile, 1,
! 	 PyDoc_STR("(short refnum) -> None")},
 	{"OpenDefaultComponent", (PyCFunction)Cm_OpenDefaultComponent, 1,
! 	 PyDoc_STR("(OSType componentType, OSType componentSubType) -> (ComponentInstance _rv)")},
 	{"RegisterComponentResourceFile", (PyCFunction)Cm_RegisterComponentResourceFile, 1,
! 	 PyDoc_STR("(short resRefNum, short global) -> (long _rv)")},
 	{NULL, NULL, 0}
 };

AltStyle によって変換されたページ (->オリジナル) /