diff options
author | Guido van Rossum <guido@python.org> | 1995-02-18 14:59:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-18 14:59:48 (GMT) |
commit | f71a9a9c6e9408e8e92157c554d6054cdb9dbb5e (patch) | |
tree | 386c9f36cef4f3dab79c6ba5adff33e21fdfcebe | |
parent | 99d20f618cbef6bb12f2be242597bac9a193079a (diff) | |
download | cpython-f71a9a9c6e9408e8e92157c554d6054cdb9dbb5e.zip cpython-f71a9a9c6e9408e8e92157c554d6054cdb9dbb5e.tar.gz cpython-f71a9a9c6e9408e8e92157c554d6054cdb9dbb5e.tar.bz2 |
macstrerror -> MacOS-StrError; added applet and cfm-68k support
-rw-r--r-- | Mac/Include/macglue.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h index 695a045..c8ea317 100644 --- a/Mac/Include/macglue.h +++ b/Mac/Include/macglue.h @@ -34,23 +34,27 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #define HAVE_UNIVERSAL_HEADERS #endif -char *macstrerror(int); /* strerror with mac errors */ +#ifdef __CFM68K__ +#pragma lib_export on +#endif + +char *PyMac_StrError(int); /* strerror with mac errors */ -extern int PyMac_DoYieldEnabled; /* Don't do eventloop when false */ +extern int PyMac_DoYieldEnabled; /* Don't do eventloop when false */ extern PyObject *PyMac_OSErrException; /* Exception for OSErr */ PyObject *PyMac_GetOSErrException(void); /* Initialize & return it */ -int PyMac_Idle Py_PROTO((void)); /* Idle routine */ -void PyMac_Yield Py_PROTO((void)); /* optional idle routine for mainloop */ -void PyMac_SetYield Py_PROTO((long, long, long, long)); /* Set timeouts */ +int PyMac_Idle Py_PROTO((void)); /* Idle routine */ +void PyMac_Yield Py_PROTO((void)); /* optional idle routine for mainloop */ +void PyMac_SetYield Py_PROTO((long, long, long, long)); /* Set timeouts */ PyObject *PyErr_Mac(PyObject *, int); /* Exception with a mac error */ PyObject *PyMac_Error(OSErr); /* Uses PyMac_GetOSErrException */ -void PyMac_HandleEvent Py_PROTO((EventRecord *)); /* Handle one event, if possible */ +void PyMac_HandleEvent Py_PROTO((EventRecord *)); /* Handle one event, if possible */ int PyMac_Idle(void); /* Idle routine */ -char *PyMac_GetPythonDir(); /* Return the name of the python dir */ +char *PyMac_GetPythonDir(); /* Return the name of the python dir */ int PyMac_FindResourceModule(char *, char *); /* Test for 'PYC ' resource in a file */ PyObject * PyMac_LoadResourceModule(char *, char *); /* Load 'PYC ' resource from file */ @@ -72,3 +76,5 @@ PyObject *PyMac_BuildPoint(Point); /* Convert Point to PyObject */ int PyMac_GetEventRecord(PyObject *, EventRecord *); /* argument parser for EventRecord */ PyObject *PyMac_BuildEventRecord(EventRecord *); /* Convert EventRecord to PyObject */ + +void PyMac_InitApplet(void); /* Initialize and run an Applet */ |