summaryrefslogtreecommitdiffstats
path: root/Parser/myreadline.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-03 09:14:54 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-05-03 09:14:54 (GMT)
commitc16f3bd8a391a68427a95e15a3c1894198ff0377 (patch)
tree113dca8c40c8a42cb665e6bcc4af44f9f68bd230 /Parser/myreadline.c
parente59e2bab8fe0fc3d20e815ac0f9b83d361d0d715 (diff)
downloadcpython-c16f3bd8a391a68427a95e15a3c1894198ff0377.zip
cpython-c16f3bd8a391a68427a95e15a3c1894198ff0377.tar.gz
cpython-c16f3bd8a391a68427a95e15a3c1894198ff0377.tar.bz2
Patch #708495: Port more stuff to OpenVMS.
Diffstat (limited to 'Parser/myreadline.c')
-rw-r--r--Parser/myreadline.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c
index 7b7ef7e..fcc4667 100644
--- a/Parser/myreadline.c
+++ b/Parser/myreadline.c
@@ -15,6 +15,10 @@
#include "windows.h"
#endif /* MS_WINDOWS */
+#ifdef __VMS
+extern char* vms__StdioReadline(FILE *sys_stdin, FILE *sys_stdout, char *prompt);
+#endif
+
int (*PyOS_InputHook)(void) = NULL;
#ifdef RISCOS
@@ -159,7 +163,11 @@ PyOS_Readline(FILE *sys_stdin, FILE *sys_stdout, char *prompt)
char *rv;
if (PyOS_ReadlineFunctionPointer == NULL) {
+#ifdef __VMS
+ PyOS_ReadlineFunctionPointer = vms__StdioReadline;
+#else
PyOS_ReadlineFunctionPointer = PyOS_StdioReadline;
+#endif
}
Py_BEGIN_ALLOW_THREADS