Commit 564cc7a0 authored by Jim Fulton's avatar Jim Fulton

fixed typo in fullgc that caused the time-change argument to be

ignored and an indeterminate value used instead.
parent 380c3981
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file. attributions are listed in the accompanying credits file.
****************************************************************************/ ****************************************************************************/
static char *what_string = "$Id: cPickleCache.c,v 1.30 1999/10/07 23:55:12 jim Exp $"; static char *what_string = "$Id: cPickleCache.c,v 1.31 1999/10/13 12:35:19 jim Exp $";
#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))
...@@ -210,10 +210,10 @@ update_stats(ccobject *self, time_t now) ...@@ -210,10 +210,10 @@ update_stats(ccobject *self, time_t now)
} }
static int static int
fullgc(ccobject *self, int idt) fullgc(ccobject *self, int dt)
{ {
PyObject *key, *v; PyObject *key, *v;
int i, dt; int i;
long now; long now;
if (self->cache_size < 1) return 0; if (self->cache_size < 1) return 0;
...@@ -675,7 +675,7 @@ void ...@@ -675,7 +675,7 @@ void
initcPickleCache() initcPickleCache()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.30 $"; char *rev="$Revision: 1.31 $";
Cctype.ob_type=&PyType_Type; Cctype.ob_type=&PyType_Type;
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file. attributions are listed in the accompanying credits file.
****************************************************************************/ ****************************************************************************/
static char *what_string = "$Id: cPickleCache.c,v 1.30 1999/10/07 23:55:12 jim Exp $"; static char *what_string = "$Id: cPickleCache.c,v 1.31 1999/10/13 12:35:19 jim Exp $";
#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))
...@@ -210,10 +210,10 @@ update_stats(ccobject *self, time_t now) ...@@ -210,10 +210,10 @@ update_stats(ccobject *self, time_t now)
} }
static int static int
fullgc(ccobject *self, int idt) fullgc(ccobject *self, int dt)
{ {
PyObject *key, *v; PyObject *key, *v;
int i, dt; int i;
long now; long now;
if (self->cache_size < 1) return 0; if (self->cache_size < 1) return 0;
...@@ -675,7 +675,7 @@ void ...@@ -675,7 +675,7 @@ void
initcPickleCache() initcPickleCache()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.30 $"; char *rev="$Revision: 1.31 $";
Cctype.ob_type=&PyType_Type; Cctype.ob_type=&PyType_Type;
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file. attributions are listed in the accompanying credits file.
****************************************************************************/ ****************************************************************************/
static char *what_string = "$Id: cPickleCache.c,v 1.30 1999/10/07 23:55:12 jim Exp $"; static char *what_string = "$Id: cPickleCache.c,v 1.31 1999/10/13 12:35:19 jim Exp $";
#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))
...@@ -210,10 +210,10 @@ update_stats(ccobject *self, time_t now) ...@@ -210,10 +210,10 @@ update_stats(ccobject *self, time_t now)
} }
static int static int
fullgc(ccobject *self, int idt) fullgc(ccobject *self, int dt)
{ {
PyObject *key, *v; PyObject *key, *v;
int i, dt; int i;
long now; long now;
if (self->cache_size < 1) return 0; if (self->cache_size < 1) return 0;
...@@ -675,7 +675,7 @@ void ...@@ -675,7 +675,7 @@ void
initcPickleCache() initcPickleCache()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.30 $"; char *rev="$Revision: 1.31 $";
Cctype.ob_type=&PyType_Type; Cctype.ob_type=&PyType_Type;
......
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