Commit 7a156d59 authored by Jim Fulton's avatar Jim Fulton

Added additional persistence flag. This is needed so that

we can test for persistence from C.
parent 007e53e2
......@@ -85,7 +85,7 @@
static char BTree_module_documentation[] =
""
"\n$Id: BTree.c,v 1.20 1999/05/07 01:41:40 jim Exp $"
"\n$Id: BTree.c,v 1.21 1999/05/12 15:49:08 jim Exp $"
;
#define PERSISTENT
......@@ -1784,7 +1784,7 @@ static PyExtensionClass BucketType = {
0L,0L,
"Mapping type implemented as sorted list of items",
METHOD_CHAIN(Bucket_methods),
EXTENSIONCLASS_BASICNEW_FLAG,
EXTENSIONCLASS_BASICNEW_FLAG | PERSISTENT_TYPE_FLAG,
};
static PyExtensionClass BTreeType = {
......@@ -1813,7 +1813,7 @@ static PyExtensionClass BTreeType = {
0L,0L,
"Mapping type implemented as sorted list of items",
METHOD_CHAIN(BTree_methods),
EXTENSIONCLASS_BASICNEW_FLAG,
EXTENSIONCLASS_BASICNEW_FLAG | PERSISTENT_TYPE_FLAG,
};
static struct PyMethodDef module_methods[] = {
......@@ -1840,7 +1840,7 @@ initBTree()
#endif
{
PyObject *m, *d;
char *rev="$Revision: 1.20 $";
char *rev="$Revision: 1.21 $";
UNLESS(PyExtensionClassCAPI=PyCObject_Import("ExtensionClass","CAPI"))
return;
......
......@@ -85,7 +85,7 @@
static char intSet_module_documentation[] =
""
"\n$Id: intSet.c,v 1.14 1999/05/07 01:42:53 jim Exp $"
"\n$Id: intSet.c,v 1.15 1999/05/12 15:49:25 jim Exp $"
;
#include <limits.h>
......@@ -600,7 +600,7 @@ static PyExtensionClass intSetType = {
0L,0L,
"A set of integers",
METHOD_CHAIN(intSet_methods),
EXTENSIONCLASS_BASICNEW_FLAG,
EXTENSIONCLASS_BASICNEW_FLAG | PERSISTENT_TYPE_FLAG,
};
static struct PyMethodDef module_methods[] = {
......@@ -611,7 +611,7 @@ void
initintSet()
{
PyObject *m, *d;
char *rev="$Revision: 1.14 $";
char *rev="$Revision: 1.15 $";
UNLESS(ExtensionClassImported) return;
......
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