Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f71a9a9

Browse files
committed
macstrerror -> MacOS-StrError; added applet and cfm-68k support
1 parent 99d20f6 commit f71a9a9

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

Mac/Include/macglue.h

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,27 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3434
#define HAVE_UNIVERSAL_HEADERS
3535
#endif
3636

37-
char *macstrerror(int); /* strerror with mac errors */
37+
#ifdef __CFM68K__
38+
#pragma lib_export on
39+
#endif
40+
41+
char *PyMac_StrError(int); /* strerror with mac errors */
3842

39-
extern int PyMac_DoYieldEnabled; /* Don't do eventloop when false */
43+
extern int PyMac_DoYieldEnabled; /* Don't do eventloop when false */
4044

4145
extern PyObject *PyMac_OSErrException; /* Exception for OSErr */
4246
PyObject *PyMac_GetOSErrException(void); /* Initialize & return it */
4347

44-
int PyMac_Idle Py_PROTO((void)); /* Idle routine */
45-
void PyMac_Yield Py_PROTO((void)); /* optional idle routine for mainloop */
46-
void PyMac_SetYield Py_PROTO((long, long, long, long)); /* Set timeouts */
48+
int PyMac_Idle Py_PROTO((void)); /* Idle routine */
49+
void PyMac_Yield Py_PROTO((void)); /* optional idle routine for mainloop */
50+
void PyMac_SetYield Py_PROTO((long, long, long, long)); /* Set timeouts */
4751
PyObject *PyErr_Mac(PyObject *, int); /* Exception with a mac error */
4852
PyObject *PyMac_Error(OSErr); /* Uses PyMac_GetOSErrException */
49-
void PyMac_HandleEvent Py_PROTO((EventRecord *)); /* Handle one event, if possible */
53+
void PyMac_HandleEvent Py_PROTO((EventRecord *)); /* Handle one event, if possible */
5054

5155
int PyMac_Idle(void); /* Idle routine */
5256

53-
char *PyMac_GetPythonDir(); /* Return the name of the python dir */
57+
char *PyMac_GetPythonDir(); /* Return the name of the python dir */
5458

5559
int PyMac_FindResourceModule(char *, char *); /* Test for 'PYC ' resource in a file */
5660
PyObject * PyMac_LoadResourceModule(char *, char *); /* Load 'PYC ' resource from file */
@@ -72,3 +76,5 @@ PyObject *PyMac_BuildPoint(Point); /* Convert Point to PyObject */
7276

7377
int PyMac_GetEventRecord(PyObject *, EventRecord *); /* argument parser for EventRecord */
7478
PyObject *PyMac_BuildEventRecord(EventRecord *); /* Convert EventRecord to PyObject */
79+
80+
void PyMac_InitApplet(void); /* Initialize and run an Applet */

0 commit comments

Comments
 (0)