summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-11-20 01:44:59 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-11-20 01:44:59 (GMT)
commiteddc1449bae39414aaf7a4f63ccd3b69c4fb069e (patch)
treecaaeed5da8c9755c4cc1d8ebf8da2f0608262c56 /Parser
parent4bae2d5e46b5135dba523616fd0960fc915eb120 (diff)
downloadcpython-eddc1449bae39414aaf7a4f63ccd3b69c4fb069e.zip
cpython-eddc1449bae39414aaf7a4f63ccd3b69c4fb069e.tar.gz
cpython-eddc1449bae39414aaf7a4f63ccd3b69c4fb069e.tar.bz2
Getting rid of all the code inside #ifdef macintosh too.
Diffstat (limited to 'Parser')
-rw-r--r--Parser/intrcheck.c8
-rw-r--r--Parser/pgenmain.c9
-rw-r--r--Parser/tokenizer.c11
3 files changed, 0 insertions, 28 deletions
diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c
index e2ca5b4..f7434af 100644
--- a/Parser/intrcheck.c
+++ b/Parser/intrcheck.c
@@ -92,14 +92,6 @@ PyOS_InterruptOccurred(void)
#endif /* MSDOS && !QUICKWIN */
-#ifdef macintosh
-
-/* The Mac interrupt code has moved to macglue.c */
-#define OK
-
-#endif /* macintosh */
-
-
#ifndef OK
/* Default version -- for real operating systems and for Standard C */
diff --git a/Parser/pgenmain.c b/Parser/pgenmain.c
index 7e86ea6..0f68940 100644
--- a/Parser/pgenmain.c
+++ b/Parser/pgenmain.c
@@ -153,15 +153,6 @@ Py_FatalError(const char *msg)
Py_Exit(1);
}
-#ifdef macintosh
-/* ARGSUSED */
-int
-guesstabsize(char *path)
-{
- return 4;
-}
-#endif
-
/* No-nonsense my_readline() for tokenizer.c */
char *
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index a97720c..0821bda 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -784,7 +784,6 @@ tok_nextc(register struct tok_state *tok)
done = tok->inp[-1] == '\n';
}
tok->cur = tok->buf + cur;
-#ifndef macintosh
/* replace "\r\n" with "\n" */
/* For Mac we leave the \r, giving a syntax error */
pt = tok->inp - 2;
@@ -793,7 +792,6 @@ tok_nextc(register struct tok_state *tok)
*pt = '\0';
tok->inp = pt;
}
-#endif
}
if (tok->done != E_OK) {
if (tok->prompt != NULL)
@@ -1185,15 +1183,6 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
return NEWLINE;
}
-#ifdef macintosh
- if (c == '\r') {
- PySys_WriteStderr(
- "File contains \\r characters (incorrect line endings?)\n");
- tok->done = E_TOKEN;
- tok->cur = tok->inp;
- return ERRORTOKEN;
- }
-#endif
/* Period or number starting with period? */
if (c == '.') {
c = tok_nextc(tok);