diff options
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/acceler.c | 17 | ||||
-rw-r--r-- | Parser/myreadline.c | 7 |
2 files changed, 0 insertions, 24 deletions
diff --git a/Parser/acceler.c b/Parser/acceler.c index 63919c5..5f470fa 100644 --- a/Parser/acceler.c +++ b/Parser/acceler.c @@ -89,27 +89,10 @@ fixstate(grammar *g, state *s) } for (ibit = 0; ibit < g->g_ll.ll_nlabels; ibit++) { if (testbit(d1->d_first, ibit)) { -#ifdef applec -#define MPW_881_BUG /* Undefine if bug below is fixed */ -#endif -#ifdef MPW_881_BUG - /* In 881 mode MPW 3.1 has a code - generation bug which seems to - set the upper bits; fix this by - explicitly masking them off */ - int temp; -#endif if (accel[ibit] != -1) printf("XXX ambiguity!\n"); -#ifdef MPW_881_BUG - temp = 0xFFFF & - (a->a_arrow | (1 << 7) | - ((type - NT_OFFSET) << 8)); - accel[ibit] = temp; -#else accel[ibit] = a->a_arrow | (1 << 7) | ((type - NT_OFFSET) << 8); -#endif } } } diff --git a/Parser/myreadline.c b/Parser/myreadline.c index fcc4667..fd2b4f4 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -123,13 +123,6 @@ PyOS_StdioReadline(FILE *sys_stdin, FILE *sys_stdout, char *prompt) *p = '\0'; break; } -#ifdef MPW - /* Hack for MPW C where the prompt comes right back in the input */ - /* XXX (Actually this would be rather nice on most systems...) */ - n = strlen(prompt); - if (strncmp(p, prompt, n) == 0) - memmove(p, p + n, strlen(p) - n + 1); -#endif n = strlen(p); while (n > 0 && p[n-1] != '\n') { size_t incr = n+2; |