]> granicus.if.org Git - python/commitdiff
Added declarations for PyMac_SetConsoleHandler, PyMan_DUmmyReadHandler
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 8 Oct 2001 13:16:39 +0000 (13:16 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 8 Oct 2001 13:16:39 +0000 (13:16 +0000)
and PyMac_DummyWriteHandler.

Mac/Include/macglue.h

index eb0c9a1c7e8b935dad78813af3691ae8eff7504d..dd3c28abe2f456e68dec59f370f6e3b4a8612ca5 100644 (file)
@@ -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