[Zodb-checkins] CVS: Zope/lib/python/ZODB - cPersistence.h:1.20.16.2

Jeremy Hylton jeremy@zope.com
Tue, 10 Sep 2002 12:54:32 -0400


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

Modified Files:
      Tag: Zope-2_5-branch
	cPersistence.h 
Log Message:
Add PER_GHOSTIFY() macro for compatibility with cache from Zope 2.6.

XXX This macro is currently unused, but will ease backports of code
from the future.


=== Zope/lib/python/ZODB/cPersistence.h 1.20.16.1 => 1.20.16.2 ===
--- Zope/lib/python/ZODB/cPersistence.h:1.20.16.1	Wed Feb 13 11:37:05 2002
+++ Zope/lib/python/ZODB/cPersistence.h	Tue Sep 10 12:54:32 2002
@@ -73,6 +73,8 @@
 
 #define PER_ACCESSED(O) ((O)->atime=((long)(time(NULL)/3))%65536) 
 
+#define PER_GHOSTIFY(O) ((O)->state = cPersistent_GHOST_STATE)
+
 #endif