[Python-checkins] CVS: python/dist/src/Mac/Modules/qt _Qtmodule.c,NONE,1.1
Jack Jansen
jackjansen@users.sourceforge.net
Thu, 23 Aug 2001 06:59:47 -0700
Update of /cvsroot/python/python/dist/src/Mac/Modules/qt
In directory usw-pr-cvs1:/tmp/cvs-serv29898/Python/Mac/Modules/qt
Added Files:
_Qtmodule.c
Log Message:
Renamed the Mac toolbox modules to have an initial _ in their name.
--- NEW FILE: _Qtmodule.c ---
/* =========================== Module _Qt =========================== */
#include "Python.h"
#include "macglue.h"
#include "pymactoolbox.h"
/* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
PyErr_SetString(PyExc_NotImplementedError, \
"Not available in this shared library/OS version"); \
return NULL; \
}} while(0)
#ifdef WITHOUT_FRAMEWORKS
[...8387 lines suppressed...]
UserData_Type.ob_type = &PyType_Type;
Py_INCREF(&UserData_Type);
if (PyDict_SetItemString(d, "UserDataType", (PyObject *)&UserData_Type) != 0)
Py_FatalError("can't initialize UserDataType");
Media_Type.ob_type = &PyType_Type;
Py_INCREF(&Media_Type);
if (PyDict_SetItemString(d, "MediaType", (PyObject *)&Media_Type) != 0)
Py_FatalError("can't initialize MediaType");
Track_Type.ob_type = &PyType_Type;
Py_INCREF(&Track_Type);
if (PyDict_SetItemString(d, "TrackType", (PyObject *)&Track_Type) != 0)
Py_FatalError("can't initialize TrackType");
Movie_Type.ob_type = &PyType_Type;
Py_INCREF(&Movie_Type);
if (PyDict_SetItemString(d, "MovieType", (PyObject *)&Movie_Type) != 0)
Py_FatalError("can't initialize MovieType");
}
/* ========================= End module _Qt ========================= */