[Python-checkins] CVS: python/dist/src/Mac/Include macglue.h,1.58,1.59

Jack Jansen jackjansen@users.sourceforge.net
Mon, 08 Oct 2001 06:16:41 -0700


Update of /cvsroot/python/python/dist/src/Mac/Include
In directory usw-pr-cvs1:/tmp/cvs-serv5454

Modified Files:
	macglue.h 
Log Message:
Added declarations for PyMac_SetConsoleHandler, PyMan_DUmmyReadHandler
and PyMac_DummyWriteHandler.


Index: macglue.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Include/macglue.h,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** macglue.h	2001/09/10 22:00:39	1.58
--- macglue.h	2001/10/08 13:16:39	1.59
***************
*** 124,127 ****
--- 124,146 ----
  #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
  	}