[Python-checkins] python/dist/src/Parser acceler.c, 2.19,
2.20 myreadline.c, 2.29, 2.30
jackjansen at users.sourceforge.net
jackjansen at users.sourceforge.net
Wed Nov 19 10:25:18 EST 2003
Update of /cvsroot/python/python/dist/src/Parser
In directory sc8-pr-cvs1:/tmp/cvs-serv18678/Parser
Modified Files:
acceler.c myreadline.c
Log Message:
Getting rid of support for the ancient Apple MPW compiler.
Index: acceler.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/acceler.c,v
retrieving revision 2.19
retrieving revision 2.20
diff -C2 -d -r2.19 -r2.20
*** acceler.c 4 Aug 2002 06:26:49 -0000 2.19
--- acceler.c 19 Nov 2003 15:24:46 -0000 2.20
***************
*** 90,114 ****
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
}
}
--- 90,97 ----
Index: myreadline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/myreadline.c,v
retrieving revision 2.29
retrieving revision 2.30
diff -C2 -d -r2.29 -r2.30
*** myreadline.c 3 May 2003 09:14:53 -0000 2.29
--- myreadline.c 19 Nov 2003 15:24:46 -0000 2.30
***************
*** 124,134 ****
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') {
--- 124,127 ----
More information about the Python-checkins
mailing list