mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Remove RISCOS support
This commit is contained in:
parent
c5aba17447
commit
7a98be2efb
62 changed files with 106 additions and 3823 deletions
|
@ -29,10 +29,6 @@ static PyThread_type_lock _PyOS_ReadlineLock = NULL;
|
|||
|
||||
int (*PyOS_InputHook)(void) = NULL;
|
||||
|
||||
#ifdef RISCOS
|
||||
int Py_RISCOSWimpFlag;
|
||||
#endif
|
||||
|
||||
/* This function restarts a fgets() after an EINTR error occurred
|
||||
except if PyOS_InterruptOccurred() returns true. */
|
||||
|
||||
|
@ -114,17 +110,8 @@ PyOS_StdioReadline(FILE *sys_stdin, FILE *sys_stdout, char *prompt)
|
|||
if ((p = (char *)PyMem_MALLOC(n)) == NULL)
|
||||
return NULL;
|
||||
fflush(sys_stdout);
|
||||
#ifndef RISCOS
|
||||
if (prompt)
|
||||
fprintf(stderr, "%s", prompt);
|
||||
#else
|
||||
if (prompt) {
|
||||
if(Py_RISCOSWimpFlag)
|
||||
fprintf(stderr, "\x0cr%s\x0c", prompt);
|
||||
else
|
||||
fprintf(stderr, "%s", prompt);
|
||||
}
|
||||
#endif
|
||||
fflush(stderr);
|
||||
switch (my_fgets(p, (int)n, sys_stdin)) {
|
||||
case 0: /* Normal case */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue