summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macfsmodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-09-20 17:40:22 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-09-20 17:40:22 (GMT)
commita755e68df647bd3dc27749998d19cc47649a8b4f (patch)
tree95f40587e6e5befe6a870474fc9a15cc0f3683b1 /Mac/Modules/macfsmodule.c
parent6dd48686810f4806d98eaffa29e53dfabaca2e08 (diff)
downloadcpython-a755e68df647bd3dc27749998d19cc47649a8b4f.zip
cpython-a755e68df647bd3dc27749998d19cc47649a8b4f.tar.gz
cpython-a755e68df647bd3dc27749998d19cc47649a8b4f.tar.bz2
Export type objects to Python
Diffstat (limited to 'Mac/Modules/macfsmodule.c')
-rw-r--r--Mac/Modules/macfsmodule.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c
index 4bea8ce..2c5af1e 100644
--- a/Mac/Modules/macfsmodule.c
+++ b/Mac/Modules/macfsmodule.c
@@ -313,7 +313,7 @@ mfsi_setattr(self, name, v)
static PyTypeObject Mfsitype = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "FInfo object", /*tp_name*/
+ "FInfo", /*tp_name*/
sizeof(mfsiobject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@@ -982,6 +982,15 @@ initmacfs()
ErrorObject = PyString_FromString("macfs.error");
PyDict_SetItemString(d, "error", ErrorObject);
+ Mfsatype.ob_type = &PyType_Type;
+ Py_INCREF(&Mfsatype);
+ PyDict_SetItemString(d, "AliasType", (PyObject *)&Mfsatype);
+ Mfsstype.ob_type = &PyType_Type;
+ Py_INCREF(&Mfsstype);
+ PyDict_SetItemString(d, "FSSpecType", (PyObject *)&Mfsstype);
+ Mfsitype.ob_type = &PyType_Type;
+ Py_INCREF(&Mfsitype);
+ PyDict_SetItemString(d, "FInfoType", (PyObject *)&Mfsitype);
/* XXXX Add constants here */
/* Check for errors */