[Python-checkins] python/dist/src/Include setobject.h,2.1,2.2
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Mon Nov 17 11:42:34 EST 2003
Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv10398/Include
Modified Files:
setobject.h
Log Message:
Various fixups (most suggested by Armin Rigo).
Index: setobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/setobject.h,v
retrieving revision 2.1
retrieving revision 2.2
diff -C2 -d -r2.1 -r2.2
*** setobject.h 16 Nov 2003 16:17:48 -0000 2.1
--- setobject.h 17 Nov 2003 16:42:32 -0000 2.2
***************
*** 21,24 ****
--- 21,30 ----
PyAPI_DATA(PyTypeObject) PyFrozenSet_Type;
+
+ #define PyAnySet_Check(ob) \
+ ((ob)->ob_type == &PySet_Type || (ob)->ob_type == &PyFrozenSet_Type || \
+ PyType_IsSubtype((ob)->ob_type, &PySet_Type) || \
+ PyType_IsSubtype((ob)->ob_type, &PyFrozenSet_Type))
+
#ifdef __cplusplus
}
More information about the Python-checkins
mailing list