diff options
author | Skip Montanaro <skip@pobox.com> | 2007-08-16 14:35:24 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2007-08-16 14:35:24 (GMT) |
commit | 7a98be2efbdc44a6271e3bf6117a1e6c77828414 (patch) | |
tree | 64b6306494f992605ef5bd854dfc9e4922f8b967 /Parser | |
parent | c5aba174477a4bdbda31d859ce407c6ee7cef293 (diff) | |
download | cpython-7a98be2efbdc44a6271e3bf6117a1e6c77828414.zip cpython-7a98be2efbdc44a6271e3bf6117a1e6c77828414.tar.gz cpython-7a98be2efbdc44a6271e3bf6117a1e6c77828414.tar.bz2 |
Remove RISCOS support
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/grammar.c | 4 | ||||
-rw-r--r-- | Parser/intrcheck.c | 4 | ||||
-rw-r--r-- | Parser/myreadline.c | 13 |
3 files changed, 0 insertions, 21 deletions
diff --git a/Parser/grammar.c b/Parser/grammar.c index 9e7c49a..fa27300 100644 --- a/Parser/grammar.c +++ b/Parser/grammar.c @@ -9,10 +9,6 @@ #include "token.h" #include "grammar.h" -#ifdef RISCOS -#include <unixlib.h> -#endif - extern int Py_DebugFlag; grammar * diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c index e0f3252..5285dc5 100644 --- a/Parser/intrcheck.c +++ b/Parser/intrcheck.c @@ -126,11 +126,7 @@ intcatcher(int sig) case 0: break; case 1: -#ifdef RISCOS - fprintf(stderr, message); -#else write(2, message, strlen(message)); -#endif break; case 2: interrupted = 0; diff --git a/Parser/myreadline.c b/Parser/myreadline.c index 32a1088..a144850 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -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 */ |