[Zope-Checkins] CVS: Zope2 - intkeymacros.h:1.2.2.3
Jim Fulton
jim@digiciool.com
Mon, 12 Mar 2001 11:27:12 -0500 (EST)
Update of /cvs-repository/Zope2/lib/python/BTrees
In directory korak:/tmp/cvs-serv25857
Modified Files:
Tag: Catalog-BTrees-Integration
intkeymacros.h
Log Message:
Added support for treating single items as sets for purposes of set
operations. This means that you can::
set = union(set, 42)
--- Updated File intkeymacros.h in package Zope2 --
--- intkeymacros.h 2001/02/28 17:37:24 1.2.2.2
+++ intkeymacros.h 2001/03/12 16:27:12 1.2.2.3
@@ -1,4 +1,5 @@
#define KEY_TYPE int
+#define KEY_CHECK PyInt_Check
#define TEST_KEY(K, T) (((K) < (T)) ? -1 : (((K) > (T)) ? 1: 0))
#define DECREF_KEY(KEY)
#define INCREF_KEY(k)