mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
- 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.
This commit is contained in:
parent
2e049b2b05
commit
f6865f77d4
3 changed files with 77 additions and 14 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue