comparison Python/pythonrun.c @ 30968:b6c139544c16 legacy-trunk

Getting rid of support for the ancient Apple MPW compiler.
author Jack Jansen <jack.jansen@cwi.nl>
date Wed, 19 Nov 2003 15:24:47 +0000
parents a29a585b03d9
children 86fdf8fe7f17
comparison
equal deleted inserted replaced
30967:3c1c81d642e0 30968:b6c139544c16
1564 #endif 1564 #endif
1565 #endif /* HAVE_SIGNAL_H */ 1565 #endif /* HAVE_SIGNAL_H */
1566 PyOS_InitInterrupts(); /* May imply initsignal() */ 1566 PyOS_InitInterrupts(); /* May imply initsignal() */
1567 } 1567 }
1568 1568
1569 #ifdef MPW
1570
1571 /* Check for file descriptor connected to interactive device.
1572 Pretend that stdin is always interactive, other files never. */
1573
1574 int
1575 isatty(int fd)
1576 {
1577 return fd == fileno(stdin);
1578 }
1579
1580 #endif
1581 1569
1582 /* 1570 /*
1583 * The file descriptor fd is considered ``interactive'' if either 1571 * The file descriptor fd is considered ``interactive'' if either
1584 * a) isatty(fd) is TRUE, or 1572 * a) isatty(fd) is TRUE, or
1585 * b) the -i flag was given, and the filename associated with 1573 * b) the -i flag was given, and the filename associated with