[Zope3-checkins] SVN: Zope3/branches/jim-index/src/BTrees/ Added module information to tempate types.

Jim Fulton jim at zope.com
Wed Aug 18 15:17:50 EDT 2004


Log message for revision 27173:
  Added module information to tempate types.
  Also exported the items type.
  


Changed:
  U   Zope3/branches/jim-index/src/BTrees/BTreeItemsTemplate.c
  U   Zope3/branches/jim-index/src/BTrees/BTreeModuleTemplate.c
  U   Zope3/branches/jim-index/src/BTrees/BTreeTemplate.c
  U   Zope3/branches/jim-index/src/BTrees/BucketTemplate.c
  U   Zope3/branches/jim-index/src/BTrees/SetTemplate.c
  U   Zope3/branches/jim-index/src/BTrees/TreeSetTemplate.c


-=-
Modified: Zope3/branches/jim-index/src/BTrees/BTreeItemsTemplate.c
===================================================================
--- Zope3/branches/jim-index/src/BTrees/BTreeItemsTemplate.c	2004-08-18 19:06:18 UTC (rev 27172)
+++ Zope3/branches/jim-index/src/BTrees/BTreeItemsTemplate.c	2004-08-18 19:17:49 UTC (rev 27173)
@@ -408,7 +408,8 @@
 static PyTypeObject BTreeItemsType = {
   PyObject_HEAD_INIT(NULL)
   0,					/*ob_size*/
-  MOD_NAME_PREFIX "BTreeItems",	        /*tp_name*/
+  "BTrees." MOD_NAME_PREFIX "BTree."
+  MOD_NAME_PREFIX "TreeItems",	        /*tp_name*/
   sizeof(BTreeItems),		        /*tp_basicsize*/
   0,					/*tp_itemsize*/
   /* methods */
@@ -661,7 +662,8 @@
 static PyTypeObject BTreeIter_Type = {
         PyObject_HEAD_INIT(NULL)
 	0,					/* ob_size */
-	MOD_NAME_PREFIX "-iterator",		/* tp_name */
+	"BTrees." MOD_NAME_PREFIX "BTree." 
+        MOD_NAME_PREFIX "TreeIterator",		/* tp_name */
 	sizeof(BTreeIter),			/* tp_basicsize */
 	0,					/* tp_itemsize */
 	/* methods */

Modified: Zope3/branches/jim-index/src/BTrees/BTreeModuleTemplate.c
===================================================================
--- Zope3/branches/jim-index/src/BTrees/BTreeModuleTemplate.c	2004-08-18 19:06:18 UTC (rev 27172)
+++ Zope3/branches/jim-index/src/BTrees/BTreeModuleTemplate.c	2004-08-18 19:17:49 UTC (rev 27173)
@@ -485,6 +485,9 @@
     if (PyDict_SetItemString(d, MOD_NAME_PREFIX "TreeSet",
 			     (PyObject *)&TreeSetType) < 0)
 	return;
+    if (PyDict_SetItemString(d, MOD_NAME_PREFIX "TreeItems",
+			     (PyObject *)&BTreeItemsType) < 0)
+	return;
     if (PyDict_SetItemString(d, MOD_NAME_PREFIX "TreeIterator",
 			     (PyObject *)&BTreeIter_Type) < 0)
 	return;

Modified: Zope3/branches/jim-index/src/BTrees/BTreeTemplate.c
===================================================================
--- Zope3/branches/jim-index/src/BTrees/BTreeTemplate.c	2004-08-18 19:06:18 UTC (rev 27172)
+++ Zope3/branches/jim-index/src/BTrees/BTreeTemplate.c	2004-08-18 19:17:49 UTC (rev 27173)
@@ -2037,7 +2037,8 @@
 static PyTypeObject BTreeType = {
     PyObject_HEAD_INIT(NULL) /* PyPersist_Type */
     0,					/* ob_size */
-    MODULE_NAME MOD_NAME_PREFIX "BTree",/* tp_name */
+    "BTrees." MOD_NAME_PREFIX "BTree."
+    MOD_NAME_PREFIX "BTree",/* tp_name */
     sizeof(BTree),			/* tp_basicsize */
     0,					/* tp_itemsize */
     (destructor)BTree_dealloc,		/* tp_dealloc */

Modified: Zope3/branches/jim-index/src/BTrees/BucketTemplate.c
===================================================================
--- Zope3/branches/jim-index/src/BTrees/BucketTemplate.c	2004-08-18 19:06:18 UTC (rev 27172)
+++ Zope3/branches/jim-index/src/BTrees/BucketTemplate.c	2004-08-18 19:17:49 UTC (rev 27173)
@@ -1647,7 +1647,8 @@
 static PyTypeObject BucketType = {
     PyObject_HEAD_INIT(NULL) /* PyPersist_Type */
     0,					/* ob_size */
-    MODULE_NAME MOD_NAME_PREFIX "Bucket",/* tp_name */
+    "BTrees." MOD_NAME_PREFIX "BTree."
+    MOD_NAME_PREFIX "Bucket",/* tp_name */
     sizeof(Bucket),			/* tp_basicsize */
     0,					/* tp_itemsize */
     (destructor)bucket_dealloc,		/* tp_dealloc */

Modified: Zope3/branches/jim-index/src/BTrees/SetTemplate.c
===================================================================
--- Zope3/branches/jim-index/src/BTrees/SetTemplate.c	2004-08-18 19:06:18 UTC (rev 27172)
+++ Zope3/branches/jim-index/src/BTrees/SetTemplate.c	2004-08-18 19:17:49 UTC (rev 27173)
@@ -289,7 +289,8 @@
 static PyTypeObject SetType = {
     PyObject_HEAD_INIT(NULL) /* PyPersist_Type */
     0,					/* ob_size */
-    MODULE_NAME MOD_NAME_PREFIX "Set",	/* tp_name */
+    "BTrees." MOD_NAME_PREFIX "BTree."
+    MOD_NAME_PREFIX "Set",	/* tp_name */
     sizeof(Bucket),			/* tp_basicsize */
     0,					/* tp_itemsize */
     (destructor)bucket_dealloc,		/* tp_dealloc */

Modified: Zope3/branches/jim-index/src/BTrees/TreeSetTemplate.c
===================================================================
--- Zope3/branches/jim-index/src/BTrees/TreeSetTemplate.c	2004-08-18 19:06:18 UTC (rev 27172)
+++ Zope3/branches/jim-index/src/BTrees/TreeSetTemplate.c	2004-08-18 19:17:49 UTC (rev 27173)
@@ -203,7 +203,8 @@
 static PyTypeObject TreeSetType = {
     PyObject_HEAD_INIT(NULL) /* PyPersist_Type */
     0,					/* ob_size */
-    MODULE_NAME MOD_NAME_PREFIX "TreeSet",/* tp_name */
+    "BTrees." MOD_NAME_PREFIX "BTree."
+    MOD_NAME_PREFIX "TreeSet",/* tp_name */
     sizeof(BTree),			/* tp_basicsize */
     0,					/* tp_itemsize */
     (destructor)BTree_dealloc,		/* tp_dealloc */



More information about the Zope3-Checkins mailing list