[Python-checkins] python/dist/src/Objects boolobject.c,1.2,1.3

gvanrossum@sourceforge.net gvanrossum@sourceforge.net
2002年4月25日 13:01:13 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv17330
Modified Files:
	boolobject.c 
Log Message:
Clean up the layout of the bool_as_number struct initializer.
Index: boolobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/boolobject.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** boolobject.c	4 Apr 2002 01:00:42 -0000	1.2
--- boolobject.c	25 Apr 2002 20:01:10 -0000	1.3
***************
*** 104,145 ****
 
 static PyNumberMethods bool_as_number = {
! 	0,	/*nb_add*/
! 	0,	/*nb_subtract*/
! 	0,	/*nb_multiply*/
! 	0, /*nb_divide*/
! 	0,	/*nb_remainder*/
! 	0,	/*nb_divmod*/
! 	0,	/*nb_power*/
! 	0,	/*nb_negative*/
! 	0,	/*nb_positive*/
! 	0,	/*nb_absolute*/
! 	0,	/*nb_nonzero*/
! 	0,	/*nb_invert*/
! 	0,	/*nb_lshift*/
! 	0,	/*nb_rshift*/
! 	(binaryfunc)bool_and,	/*nb_and*/
! 	(binaryfunc)bool_xor,	/*nb_xor*/
! 	(binaryfunc)bool_or,	/*nb_or*/
! 	0,		/*nb_coerce*/
! 	0,	/*nb_int*/
! 	0,	/*nb_long*/
! 	0,	/*nb_float*/
! 	0,	/*nb_oct*/
! 	0, 	/*nb_hex*/
! 	0,			/*nb_inplace_add*/
! 	0,			/*nb_inplace_subtract*/
! 	0,			/*nb_inplace_multiply*/
! 	0,			/*nb_inplace_divide*/
! 	0,			/*nb_inplace_remainder*/
! 	0,			/*nb_inplace_power*/
! 	0,			/*nb_inplace_lshift*/
! 	0,			/*nb_inplace_rshift*/
! 	0,			/*nb_inplace_and*/
! 	0,			/*nb_inplace_xor*/
! 	0,			/*nb_inplace_or*/
! 	0,	/* nb_floor_divide */
! 	0,	/* nb_true_divide */
! 	0,			/* nb_inplace_floor_divide */
! 	0,			/* nb_inplace_true_divide */
 };
 
--- 104,145 ----
 
 static PyNumberMethods bool_as_number = {
! 	0,					/* nb_add */
! 	0,					/* nb_subtract */
! 	0,					/* nb_multiply */
! 	0,					/* nb_divide */
! 	0,					/* nb_remainder */
! 	0,					/* nb_divmod */
! 	0,					/* nb_power */
! 	0,					/* nb_negative */
! 	0,					/* nb_positive */
! 	0,					/* nb_absolute */
! 	0,					/* nb_nonzero */
! 	0,					/* nb_invert */
! 	0,					/* nb_lshift */
! 	0,					/* nb_rshift */
! 	(binaryfunc)bool_and,			/* nb_and */
! 	(binaryfunc)bool_xor,			/* nb_xor */
! 	(binaryfunc)bool_or,			/* nb_or */
! 	0,					/* nb_coerce */
! 	0,					/* nb_int */
! 	0,					/* nb_long */
! 	0,					/* nb_float */
! 	0,					/* nb_oct */
! 	0,		 			/* nb_hex */
! 	0,					/* nb_inplace_add */
! 	0,					/* nb_inplace_subtract */
! 	0,					/* nb_inplace_multiply */
! 	0,					/* nb_inplace_divide */
! 	0,					/* nb_inplace_remainder */
! 	0,					/* nb_inplace_power */
! 	0,					/* nb_inplace_lshift */
! 	0,					/* nb_inplace_rshift */
! 	0,					/* nb_inplace_and */
! 	0,					/* nb_inplace_xor */
! 	0,					/* nb_inplace_or */
! 	0,					/* nb_floor_divide */
! 	0,					/* nb_true_divide */
! 	0,					/* nb_inplace_floor_divide */
! 	0,					/* nb_inplace_true_divide */
 };
 

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