[Python-checkins] CVS: python/dist/src/Modules spam.c,1.1.2.8,1.1.2.9

Tim Peters tim_one@users.sourceforge.net
2001年7月02日 18:26:38 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv25111/python/dist/src/Modules
Modified Files:
 Tag: descr-branch
	spam.c 
Log Message:
Add spam module to Windows build.
BUG: The spam PyMethodDef list didn't end with a proper sentinel, causing
the Windows Python to run off into outer space (eventually died w/ a memory
error). Repeared that.
Index: spam.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/Attic/spam.c,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -C2 -r1.1.2.8 -r1.1.2.9
*** spam.c	2001年06月29日 20:57:12	1.1.2.8
--- spam.c	2001年07月03日 01:26:36	1.1.2.9
***************
*** 198,202 ****
 
 static PyMethodDef spam_functions[] = {
! 	{"bench", spam_bench, 1}
 };
 
--- 198,203 ----
 
 static PyMethodDef spam_functions[] = {
! 	{"bench", spam_bench, 1},
! 	{NULL,			NULL}		/* sentinel */
 };
 

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