[Python-checkins] CVS: python/dist/src/Objects weakrefobject.c,1.2,1.3

Fred L. Drake fdrake@users.sourceforge.net
2001年10月18日 12:21:48 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv19027/Objects
Modified Files:
	weakrefobject.c 
Log Message:
Remove an unnecessary check for NULL.
Index: weakrefobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/weakrefobject.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** weakrefobject.c	2001年10月18日 18:04:18	1.2
--- weakrefobject.c	2001年10月18日 19:21:46	1.3
***************
*** 234,239 ****
 }
 
! /* Note that the second and third args need to be checked for NULL since
! * (at least) the tp_call slot can receive NULL for either of those args.
 */
 #define WRAP_TERNARY(method, generic) \
--- 234,239 ----
 }
 
! /* Note that the third arg needs to be checked for NULL since the tp_call
! * slot can receive NULL for this arg.
 */
 #define WRAP_TERNARY(method, generic) \
***************
*** 241,246 ****
 method(PyObject *proxy, PyObject *v, PyObject *w) { \
 UNWRAP(proxy); \
! if (v != NULL) \
! UNWRAP(v); \
 if (w != NULL) \
 UNWRAP(w); \
--- 241,245 ----
 method(PyObject *proxy, PyObject *v, PyObject *w) { \
 UNWRAP(proxy); \
! UNWRAP(v); \
 if (w != NULL) \
 UNWRAP(w); \

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