[Python-checkins] python/dist/src/Parser myreadline.c,2.28,2.29

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sat, 03 May 2003 02:14:55 -0700


Update of /cvsroot/python/python/dist/src/Parser
In directory sc8-pr-cvs1:/tmp/cvs-serv20733/Parser

Modified Files:
	myreadline.c 
Log Message:
Patch #708495: Port more stuff to OpenVMS.


Index: myreadline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/myreadline.c,v
retrieving revision 2.28
retrieving revision 2.29
diff -C2 -d -r2.28 -r2.29
*** myreadline.c	26 Oct 2002 14:39:09 -0000	2.28
--- myreadline.c	3 May 2003 09:14:53 -0000	2.29
***************
*** 16,19 ****
--- 16,23 ----
  #endif /* MS_WINDOWS */
  
+ #ifdef __VMS
+ extern char* vms__StdioReadline(FILE *sys_stdin, FILE *sys_stdout, char *prompt);
+ #endif
+ 
  int (*PyOS_InputHook)(void) = NULL;
  
***************
*** 160,164 ****
--- 164,172 ----
  
  	if (PyOS_ReadlineFunctionPointer == NULL) {
+ #ifdef __VMS
+                 PyOS_ReadlineFunctionPointer = vms__StdioReadline;
+ #else
                  PyOS_ReadlineFunctionPointer = PyOS_StdioReadline;
+ #endif
  	}