diff options
author | Guido van Rossum <guido@python.org> | 2001-03-02 06:34:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-03-02 06:34:14 (GMT) |
commit | 48a680c097f0e53a4cdcd61fbed35e1b6c1de388 (patch) | |
tree | cc051327ef0eed1c29775ccc3ab39059eb943a19 /Parser | |
parent | 1ca8bb374eeee89d5f1a3789d804f49ec07836ee (diff) | |
download | cpython-48a680c097f0e53a4cdcd61fbed35e1b6c1de388.zip cpython-48a680c097f0e53a4cdcd61fbed35e1b6c1de388.tar.gz cpython-48a680c097f0e53a4cdcd61fbed35e1b6c1de388.tar.bz2 |
RISCOS changes by dschwertberger.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/intrcheck.c | 4 | ||||
-rw-r--r-- | Parser/myreadline.c | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c index 4c11e4c..686e030 100644 --- a/Parser/intrcheck.c +++ b/Parser/intrcheck.c @@ -137,7 +137,11 @@ 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 963a90e..10e39e5 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -13,6 +13,10 @@ 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. */ @@ -58,8 +62,17 @@ PyOS_StdioReadline(char *prompt) if ((p = PyMem_MALLOC(n)) == NULL) return NULL; fflush(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, stdin)) { case 0: /* Normal case */ |