diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1997-09-20 17:40:22 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1997-09-20 17:40:22 (GMT) |
commit | a755e68df647bd3dc27749998d19cc47649a8b4f (patch) | |
tree | 95f40587e6e5befe6a870474fc9a15cc0f3683b1 /Mac/Modules/qd/Qdmodule.c | |
parent | 6dd48686810f4806d98eaffa29e53dfabaca2e08 (diff) | |
download | cpython-a755e68df647bd3dc27749998d19cc47649a8b4f.zip cpython-a755e68df647bd3dc27749998d19cc47649a8b4f.tar.gz cpython-a755e68df647bd3dc27749998d19cc47649a8b4f.tar.bz2 |
Export type objects to Python
Diffstat (limited to 'Mac/Modules/qd/Qdmodule.c')
-rw-r--r-- | Mac/Modules/qd/Qdmodule.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Mac/Modules/qd/Qdmodule.c b/Mac/Modules/qd/Qdmodule.c index ee69274..f294d31 100644 --- a/Mac/Modules/qd/Qdmodule.c +++ b/Mac/Modules/qd/Qdmodule.c @@ -4265,6 +4265,18 @@ void initQd() if (Qd_Error == NULL || PyDict_SetItemString(d, "Error", Qd_Error) != 0) Py_FatalError("can't initialize Qd.Error"); + GrafPort_Type.ob_type = &PyType_Type; + Py_INCREF(&GrafPort_Type); + if (PyDict_SetItemString(d, "GrafPortType", (PyObject *)&GrafPort_Type) != 0) + Py_FatalError("can't initialize GrafPortType"); + BitMap_Type.ob_type = &PyType_Type; + Py_INCREF(&BitMap_Type); + if (PyDict_SetItemString(d, "BitMapType", (PyObject *)&BitMap_Type) != 0) + Py_FatalError("can't initialize BitMapType"); + QDGlobalsAccess_Type.ob_type = &PyType_Type; + Py_INCREF(&QDGlobalsAccess_Type); + if (PyDict_SetItemString(d, "QDGlobalsAccessType", (PyObject *)&QDGlobalsAccess_Type) != 0) + Py_FatalError("can't initialize QDGlobalsAccessType"); { PyObject *o; |