summaryrefslogtreecommitdiffstats
path: root/Mac/Include
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-09-04 15:24:59 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-09-04 15:24:59 (GMT)
commitf6865f77d4536d5a318aad3115be017b70180620 (patch)
treed1836fcea76c40f6d711858bf9a0209350363aa6 /Mac/Include
parent2e049b2b05e0f47592378f6e281eb2dc75e0e4d9 (diff)
downloadcpython-f6865f77d4536d5a318aad3115be017b70180620.zip
cpython-f6865f77d4536d5a318aad3115be017b70180620.tar.gz
cpython-f6865f77d4536d5a318aad3115be017b70180620.tar.bz2
- Fixed PyMac_DoYield:
- Update lastyield correctly - Do event handling if PyMac_YieldEnabled > 0 (previous cmd-. fix broke this) - Use our own GUSISpin routine: fixes crash when exiting with sockets open and keeps windows, etc reacting consistently when waiting for accepts(), etc.
Diffstat (limited to 'Mac/Include')
-rw-r--r--Mac/Include/macglue.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h
index 02ee84c..929e9ca 100644
--- a/Mac/Include/macglue.h
+++ b/Mac/Include/macglue.h
@@ -46,19 +46,23 @@ void PyMac_FixGUSIcd Py_PROTO((void)); /* Workaround for GUSI chdir() call */
char *PyMac_StrError(int); /* strerror with mac errors */
extern int PyMac_DoYieldEnabled; /* Don't do eventloop when false */
+#ifdef USE_GUSI
+extern int PyMac_ConsoleIsDead; /* True when exiting */
+extern void PyMac_SetGUSISpin(void); /* Install our private GUSI spin routine */
+#endif
extern PyObject *PyMac_OSErrException; /* Exception for OSErr */
PyObject *PyMac_GetOSErrException(void); /* Initialize & return it */
+#ifdef USE_MACTCP
int PyMac_Idle Py_PROTO((void)); /* Idle routine */
+#endif
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 */
-int PyMac_Idle(void); /* Idle routine */
-
int PyMac_FindResourceModule(char *, char *); /* Test for 'PYC ' resource in a file */
PyObject * PyMac_LoadResourceModule(char *, char *); /* Load 'PYC ' resource from file */