diff options
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/myreadline.c | 8 |
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 |