[Zope-Checkins] CVS: Zope3/lib/python/Persistence/BTrees - Maintainer.txt:1.1.2.2

Tim Peters tim.one@comcast.net
Wed, 5 Jun 2002 14:09:08 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees
In directory cvs.zope.org:/tmp/cvs-serv22156

Modified Files:
      Tag: Zope-3x-branch
	Maintainer.txt 
Log Message:
Document two macros unique to the branch.


=== Zope3/lib/python/Persistence/BTrees/Maintainer.txt 1.1.2.1 => 1.1.2.2 ===
 btree node.  Someday this will be tunable on BTree instances.
 
+
 Macros for Keys
 
 KEY_TYPE
@@ -78,6 +79,10 @@
 done (for example, KEY_CHECK(ARG) returns false), set a Python error
 and set status to 0.  If there is no error, leave status alone.
 
+KEY_IF_OBJECT(K) K
+If KEY_TYPE is a PyObject*, return K (the argument), else expand to
+NULL.
+
 
 Macros for Values
 
@@ -112,6 +117,10 @@
 Normalize the value, V, using the parameter MIN.  This is almost
 certainly a YAGNI.  It is a no op for most types. For integers, V is
 replaced by V/MIN only if MIN > 0.
+
+VALUE_IF_OBJECT(V)
+If VALUE_TYPE is a PyObject*, return V (the argument), else expand to
+NULL.
 
 
 Macros for Set Operations