Commit b96b07b0 authored by Fred Drake's avatar Fred Drake

_ring_corrupt(): Only needed when MUCH_RING_CHECKING is defined.

    No need to generate code that is not needed!
parent 3a1ba11c
...@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them. ...@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
static char cPickleCache_doc_string[] = static char cPickleCache_doc_string[] =
"Defines the PickleCache used by ZODB Connection objects.\n" "Defines the PickleCache used by ZODB Connection objects.\n"
"\n" "\n"
"$Id: cPickleCache.c,v 1.64 2002/04/18 09:32:13 htrd Exp $\n"; "$Id: cPickleCache.c,v 1.65 2002/05/02 14:03:07 fdrake Exp $\n";
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;} #define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E)) #define UNLESS(E) if(!(E))
...@@ -972,6 +972,7 @@ cc_ass_sub(ccobject *self, PyObject *key, PyObject *v) ...@@ -972,6 +972,7 @@ cc_ass_sub(ccobject *self, PyObject *key, PyObject *v)
return cc_del_item(self, key); return cc_del_item(self, key);
} }
#ifdef MUCH_RING_CHECKING
static int static int
_ring_corrupt(ccobject *self, const char *context) _ring_corrupt(ccobject *self, const char *context)
{ {
...@@ -1037,6 +1038,7 @@ _ring_corrupt(ccobject *self, const char *context) ...@@ -1037,6 +1038,7 @@ _ring_corrupt(ccobject *self, const char *context)
return 0; return 0;
} }
#endif /* MUCH_RING_CHECKING */
static int static int
ring_corrupt(ccobject *self, const char *context) ring_corrupt(ccobject *self, const char *context)
......
...@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them. ...@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
static char cPickleCache_doc_string[] = static char cPickleCache_doc_string[] =
"Defines the PickleCache used by ZODB Connection objects.\n" "Defines the PickleCache used by ZODB Connection objects.\n"
"\n" "\n"
"$Id: cPickleCache.c,v 1.64 2002/04/18 09:32:13 htrd Exp $\n"; "$Id: cPickleCache.c,v 1.65 2002/05/02 14:03:07 fdrake Exp $\n";
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;} #define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E)) #define UNLESS(E) if(!(E))
...@@ -972,6 +972,7 @@ cc_ass_sub(ccobject *self, PyObject *key, PyObject *v) ...@@ -972,6 +972,7 @@ cc_ass_sub(ccobject *self, PyObject *key, PyObject *v)
return cc_del_item(self, key); return cc_del_item(self, key);
} }
#ifdef MUCH_RING_CHECKING
static int static int
_ring_corrupt(ccobject *self, const char *context) _ring_corrupt(ccobject *self, const char *context)
{ {
...@@ -1037,6 +1038,7 @@ _ring_corrupt(ccobject *self, const char *context) ...@@ -1037,6 +1038,7 @@ _ring_corrupt(ccobject *self, const char *context)
return 0; return 0;
} }
#endif /* MUCH_RING_CHECKING */
static int static int
ring_corrupt(ccobject *self, const char *context) ring_corrupt(ccobject *self, const char *context)
......
...@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them. ...@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
static char cPickleCache_doc_string[] = static char cPickleCache_doc_string[] =
"Defines the PickleCache used by ZODB Connection objects.\n" "Defines the PickleCache used by ZODB Connection objects.\n"
"\n" "\n"
"$Id: cPickleCache.c,v 1.64 2002/04/18 09:32:13 htrd Exp $\n"; "$Id: cPickleCache.c,v 1.65 2002/05/02 14:03:07 fdrake Exp $\n";
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;} #define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E)) #define UNLESS(E) if(!(E))
...@@ -972,6 +972,7 @@ cc_ass_sub(ccobject *self, PyObject *key, PyObject *v) ...@@ -972,6 +972,7 @@ cc_ass_sub(ccobject *self, PyObject *key, PyObject *v)
return cc_del_item(self, key); return cc_del_item(self, key);
} }
#ifdef MUCH_RING_CHECKING
static int static int
_ring_corrupt(ccobject *self, const char *context) _ring_corrupt(ccobject *self, const char *context)
{ {
...@@ -1037,6 +1038,7 @@ _ring_corrupt(ccobject *self, const char *context) ...@@ -1037,6 +1038,7 @@ _ring_corrupt(ccobject *self, const char *context)
return 0; return 0;
} }
#endif /* MUCH_RING_CHECKING */
static int static int
ring_corrupt(ccobject *self, const char *context) ring_corrupt(ccobject *self, const char *context)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment