summaryrefslogtreecommitdiffstats
path: root/Mac/Include
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-04-07 09:10:49 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-04-07 09:10:49 (GMT)
commit2d1306b7cf4a85290ffbd90a15fed6115a522310 (patch)
tree01dc9d71385f7659ba36bd2b27f4ca2c3d3a1154 /Mac/Include
parent5c21420772a94846ce7dd077d10a2575da15e84e (diff)
downloadcpython-2d1306b7cf4a85290ffbd90a15fed6115a522310.zip
cpython-2d1306b7cf4a85290ffbd90a15fed6115a522310.tar.gz
cpython-2d1306b7cf4a85290ffbd90a15fed6115a522310.tar.bz2
Started on GUSI2 and threading support.
Diffstat (limited to 'Mac/Include')
-rw-r--r--Mac/Include/macglue.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h
index bc1939f..ec2dfbd 100644
--- a/Mac/Include/macglue.h
+++ b/Mac/Include/macglue.h
@@ -53,8 +53,9 @@ typedef struct {
#pragma lib_export on
#endif
-#ifdef USE_GUSI
+#ifdef USE_GUSI1
void PyMac_FixGUSIcd Py_PROTO((void)); /* Workaround for GUSI chdir() call */
+extern void PyMac_SetGUSISpin(void); /* Install our private GUSI spin routine */
#endif
char *PyMac_StrError(int); /* strerror with mac errors */
@@ -62,7 +63,6 @@ unsigned char *Pstring(char *str); /* Convert c-string to pascal-string in stat
#ifdef USE_GUSI
extern int PyMac_ConsoleIsDead; /* True when exiting */
-extern void PyMac_SetGUSISpin(void); /* Install our private GUSI spin routine */
extern void PyMac_StopGUSISpin(void); /* Stop eventprocessing during exit() */
#endif
@@ -81,6 +81,7 @@ void PyMac_GetSchedParams Py_PROTO((PyMacSchedParams *)); /* Get schedulers para
void PyMac_SetSchedParams Py_PROTO((PyMacSchedParams *)); /* Set schedulers params */
PyObject *PyErr_Mac(PyObject *, int); /* Exception with a mac error */
PyObject *PyMac_Error(OSErr); /* Uses PyMac_GetOSErrException */
+int PyMac_DoYield Py_PROTO((int, int)); /* Yield cpu. First arg is maxtime, second ok to call python */
int PyMac_HandleEvent Py_PROTO((EventRecord *)); /* Handle one event, possibly in Python */
void PyMac_HandleEventIntern Py_PROTO((EventRecord *)); /* Handle one event internal only */
int PyMac_SetEventHandler Py_PROTO((PyObject *)); /* set python-coded event handler */