diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-10-08 13:16:39 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-10-08 13:16:39 (GMT) |
commit | b58f1c0c03b62a59ac38dc1239fed7025feb12ef (patch) | |
tree | b4c33a88c7806fe457665326203e64ac19684750 /Mac | |
parent | 144d387c859eda4f0e4e04f44fa98b85a9d35013 (diff) | |
download | cpython-b58f1c0c03b62a59ac38dc1239fed7025feb12ef.zip cpython-b58f1c0c03b62a59ac38dc1239fed7025feb12ef.tar.gz cpython-b58f1c0c03b62a59ac38dc1239fed7025feb12ef.tar.bz2 |
Added declarations for PyMac_SetConsoleHandler, PyMan_DUmmyReadHandler
and PyMac_DummyWriteHandler.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Include/macglue.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h index eb0c9a1..dd3c28a 100644 --- a/Mac/Include/macglue.h +++ b/Mac/Include/macglue.h @@ -123,6 +123,25 @@ OSErr PyMac_init_process_location(void); char * strdup(const char *str); #endif +#ifdef USE_GUSI2 +/* from pyGUSISIOUX.cp */ +typedef long (*PyWriteHandler)(char *buffer, long n); +typedef long (*PyReadHandler)(char *buffer, long n); + +/* Override routines that normally reads and writes to the +** SIOUX console window. Intended for embedding applications +** that want to forestall a Python console window ever showing up. +*/ +void PyMac_SetConsoleHandler(PyReadHandler stdinH, PyWriteHandler stdoutH, + PyWriteHandler stderrH); + +/* Courtesy console handlers that drop all output and return +** 0 on reads. +*/ +long PyMac_DummyReadHandler(char *, long); +long PyMac_DummyWriteHandler(char *, long); +#endif /* USE_GUSI2 */ + #ifdef __cplusplus } #endif |