diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-03 09:14:54 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-03 09:14:54 (GMT) |
commit | c16f3bd8a391a68427a95e15a3c1894198ff0377 (patch) | |
tree | 113dca8c40c8a42cb665e6bcc4af44f9f68bd230 /Parser/myreadline.c | |
parent | e59e2bab8fe0fc3d20e815ac0f9b83d361d0d715 (diff) | |
download | cpython-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.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 |