[Zope-Checkins] CVS: Zope/lib/python/BTrees - BTreeModuleTemplate.c:1.29

Tim Peters tim.one@comcast.net
Sun, 2 Jun 2002 03:46:44 -0400


Update of /cvs-repository/Zope/lib/python/BTrees
In directory cvs.zope.org:/tmp/cvs-serv10337

Modified Files:
	BTreeModuleTemplate.c 
Log Message:
Repaired some new comments.


=== Zope/lib/python/BTrees/BTreeModuleTemplate.c 1.28 => 1.29 ===
  * 4. Process all the elements:
  *        while (si.position >= 0) {
- *            do something si.key and/or si.value;
+ *            do something with si.key and/or si.value;
  *            if (si.next(&si) < 0) {
  *                there was an error;
  *                Py_XDECREF(si.set);
@@ -214,8 +214,8 @@
   int position;     /* initialized to 0; set to -1 by next() when done */
   int hasValue;     /* true iff 'set' has values (as well as keys) */
   KEY_TYPE key;     /* next() sets to next key */
-  VALUE_TYPE value; /* next() sets to next value, iff hasValue is true */
-  int (*next)(struct SetIteration_s*);  /* function to get next element */
+  VALUE_TYPE value; /* next() may set to next value */
+  int (*next)(struct SetIteration_s*);  /* function to get next key+value */
 } SetIteration;
 
 static PyObject *