[Zope-Checkins] CVS: Zope3/lib/python/Persistence/BTrees - SetOpTemplate.c:1.1.2.4

Tim Peters tim.one@comcast.net
Tue, 4 Jun 2002 18:35:32 -0400


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

Modified Files:
      Tag: Zope-3x-branch
	SetOpTemplate.c 
Log Message:
Trim trailing whitespace.


=== Zope3/lib/python/Persistence/BTrees/SetOpTemplate.c 1.1.2.3 => 1.1.2.4 ===
   Copyright (c) 2001, 2002 Zope Corporation and Contributors.
   All Rights Reserved.
-  
+
   This software is subject to the provisions of the Zope Public License,
   Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
   THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
   WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
   WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
   FOR A PARTICULAR PURPOSE
-  
+
  ****************************************************************************/
 
 /****************************************************************************
@@ -19,9 +19,9 @@
 #define SETOPTEMPLATE_C "$Id$\n"
 
 #ifdef INTSET_H
-static int 
+static int
 nextIntSet(SetIteration *i)
-{    
+{
   if (i->position >= 0)
     {
       UNLESS(PER_USE(INTSET(i->set))) return -1;
@@ -40,13 +40,13 @@
       PER_ALLOW_DEACTIVATION(INTSET(i->set));
     }
 
-          
+
   return 0;
 }
 #endif
 
 #ifdef KEY_CHECK
-static int 
+static int
 nextKeyAsSet(SetIteration *i)
 {
   if (i->position >= 0)
@@ -72,7 +72,7 @@
       i->set = s;
       Py_INCREF(s);
 
-      if (w >= 0) 
+      if (w >= 0)
         {
           *merge=1;
           i->next=nextBucket;
@@ -95,7 +95,7 @@
       i->set=BTree_rangeSearch(BTREE(s), NULL, 'i');
       UNLESS(i->set) return -1;
 
-      if (w >= 0) 
+      if (w >= 0)
         {
           *merge=1;
           i->next=nextBTreeItems;
@@ -148,7 +148,7 @@
 #define MERGE_WEIGHT(O, w) (O)
 #endif
 
-static int 
+static int
 copyRemaining(Bucket *r, SetIteration *i, int merge, int w)
 {
   while (i->position >= 0)
@@ -170,7 +170,7 @@
 }
 
 static PyObject *
-set_operation(PyObject *s1, PyObject *s2, 
+set_operation(PyObject *s1, PyObject *s2,
               int w1, int w2,
               int c1, int c12, int c2)
 {
@@ -254,7 +254,7 @@
 #else
                   COPY_VALUE(r->values[r->len], i1.value);
                   INCREF_VALUE(r->values[r->len]);
-#endif                    
+#endif
                 }
 	      r->len++;
 	    }
@@ -306,14 +306,14 @@
   UNLESS(PyArg_ParseTuple(args, "OO", &o1, &o2)) return NULL;
 
 
-  if (o1==Py_None || o2==Py_None) 
+  if (o1==Py_None || o2==Py_None)
     {
       Py_INCREF(Py_None);
       return Py_None;
     }
-  
+
   return set_operation(o1, o2, 1, -1, 1, 0, 0);
-}         
+}
 
 static PyObject *
 union_m(PyObject *ignored, PyObject *args)
@@ -332,9 +332,9 @@
       Py_INCREF(o1);
       return o1;
     }
-  
+
   return set_operation(o1, o2, -1, -1, 1, 1, 1);
-}         
+}
 
 static PyObject *
 intersection_m(PyObject *ignored, PyObject *args)
@@ -353,9 +353,9 @@
       Py_INCREF(o1);
       return o1;
     }
-  
+
   return set_operation(o1, o2, -1, -1, 0, 1, 0);
-}         
+}
 
 #ifdef MERGE
 
@@ -371,12 +371,12 @@
     return Py_BuildValue("iO", (o2==Py_None ? 0 : w2), o2);
   else if (o2==Py_None)
     return Py_BuildValue("iO", w1, o1);
-  
+
   o1=set_operation(o1, o2, w1, w2, 1, 1, 1);
   if (o1) ASSIGN(o1, Py_BuildValue("iO", 1, o1));
 
   return o1;
-}         
+}
 
 static PyObject *
 wintersection_m(PyObject *ignored, PyObject *args)
@@ -390,15 +390,15 @@
     return Py_BuildValue("iO", (o2==Py_None ? 0 : w2), o2);
   else if (o2==Py_None)
     return Py_BuildValue("iO", w1, o1);
-  
+
   o1=set_operation(o1, o2, w1, w2, 0, 1, 0);
-  if (o1) 
-    ASSIGN(o1, Py_BuildValue("iO", 
+  if (o1)
+    ASSIGN(o1, Py_BuildValue("iO",
             ((o1->ob_type == (PyTypeObject*)(&SetType)) ? w2+w1 : 1),
                              o1));
 
   return o1;
-}         
+}
 
 #endif