[Zodb-checkins] CVS: ZODB/src/persistent - cPersistence.c:1.75.2.6

Jeremy Hylton jeremy at zope.com
Fri Feb 13 23:02:40 EST 2004


Update of /cvs-repository/ZODB/src/persistent
In directory cvs.zope.org:/tmp/cvs-serv5480

Modified Files:
      Tag: zope3-zodb3-devel-branch
	cPersistence.c 
Log Message:
Remove unused macros.
Move declarations next to initialization in init_strings().


=== ZODB/src/persistent/cPersistence.c 1.75.2.5 => 1.75.2.6 ===
--- ZODB/src/persistent/cPersistence.c:1.75.2.5	Wed Jan 28 07:16:18 2004
+++ ZODB/src/persistent/cPersistence.c	Fri Feb 13 23:02:38 2004
@@ -23,18 +23,14 @@
     CACHE_HEAD
 };
 
-#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
-#define UNLESS(E) if(!(E))
-#define UNLESS_ASSIGN(V,E) ASSIGN(V,E) UNLESS(V)
+/* These two objects are initialized when the module is loaded */
+static PyObject *TimeStamp, *py_simple_new;
 
 /* Strings initialized by init_strings() below. */
 static PyObject *py_keys, *py_setstate, *py___dict__, *py_timeTime;
 static PyObject *py__p_changed, *py__p_deactivate;
 static PyObject *py___getattr__, *py___setattr__, *py___delattr__;
 static PyObject *py___getstate__;
-
-/* These two objects are initialized when the module is loaded */
-static PyObject *TimeStamp, *py_simple_new;
 
 static int
 init_strings(void)




More information about the Zodb-checkins mailing list