[Zope-Checkins] CVS: Zope/lib/Components/BTree - BTree.c:1.30.36.1 intSet.c:1.21.36.1

Toby Dickenson tdickenson@geminidataloggers.com
Tue, 12 Mar 2002 12:40:53 -0500


Update of /cvs-repository/Zope/lib/Components/BTree
In directory cvs.zope.org:/tmp/cvs-serv13065/lib/Components/BTree

Modified Files:
      Tag: toby-stiff-cache-branch
	BTree.c intSet.c 
Log Message:
first attempt at merging new implementation of zodb in-memory object cache

=== Zope/lib/Components/BTree/BTree.c 1.30 => 1.30.36.1 ===
       if(HasInstDict(self) && (dict=INSTANCE_DICT(self))) PyDict_Clear(dict);
       self->len=0;
-      self->state=cPersistent_GHOST_STATE;
+      PER_GHOSTIFY(self);
     }
 
   Py_INCREF(Py_None);
@@ -1163,7 +1163,7 @@
 
       if(_BTree_clear(self) < 0) return NULL;
       if(HasInstDict(self) && (dict=INSTANCE_DICT(self))) PyDict_Clear(dict);
-      self->state=cPersistent_GHOST_STATE;
+      PER_GHOSTIFY(self);
     }
 
   Py_INCREF(Py_None);


=== Zope/lib/Components/BTree/intSet.c 1.21 => 1.21.36.1 ===
     {
       PyDict_Clear(dict);
-      self->state=cPersistent_GHOST_STATE;
+      PER_GHOSTIFY(self);
     }
 
   Py_INCREF(Py_None);