[Python-checkins] python/nondist/sandbox/twister _random.c,1.13,1.14

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
2002年12月29日 00:24:13 -0800


Update of /cvsroot/python/python/nondist/sandbox/twister
In directory sc8-pr-cvs1:/tmp/cvs-serv3661
Modified Files:
	_random.c 
Log Message:
There aren't any module-level functions, so don't bother creating a
method struct with just NULLs.
Index: _random.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/twister/_random.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** _random.c	29 Dec 2002 08:15:59 -0000	1.13
--- _random.c	29 Dec 2002 08:24:11 -0000	1.14
***************
*** 500,507 ****
 "Module implements the Mersenne Twister random number generator .");
 
- static PyMethodDef module_functions[] = {
- 	{NULL,		NULL}		/* sentinel */
- };
- 
 PyMODINIT_FUNC
 init_random(void)
--- 500,503 ----
***************
*** 510,514 ****
 
 	Random_Type.ob_type = &PyType_Type;
! 	m = Py_InitModule3("_random", module_functions, module_doc);
 	Py_INCREF((PyObject *)&Random_Type);
 	PyModule_AddObject(m, "Random", (PyObject *)&Random_Type);
--- 506,510 ----
 
 	Random_Type.ob_type = &PyType_Type;
! 	m = Py_InitModule3("_random", NULL, module_doc);
 	Py_INCREF((PyObject *)&Random_Type);
 	PyModule_AddObject(m, "Random", (PyObject *)&Random_Type);

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