]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Reorganized somewhat to make it really work on Think C.
authorGuido van Rossum <guido@python.org>
Mon, 1 Jul 1991 18:46:03 +0000 (18:46 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 1 Jul 1991 18:46:03 +0000 (18:46 +0000)
Hope the best for MPW 3.

Parser/intrcheck.c

index ee14ecaf1eaab3995e08cafa5b985a472a04bbf6..fdd27b9938931b07eba666a74a650eeed6df0142 100644 (file)
@@ -25,6 +25,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 /* Check for interrupts */
 
 #ifdef THINK_C
+/* This is for THINK C 4.0.
+   For 3.0, you may have to remove the signal stuff. */
+#include <MacHeaders>
 #define macintosh
 #endif
 
@@ -56,13 +59,7 @@ intrcheck()
 
 #ifdef macintosh
 
-#ifdef THINK_C
-/* This is for THINK C 4.0.
-   For 3.0, you may have to remove the signal stuff. */
-#include <MacHeaders>
-#else
-/* This is for MPW 3.1 */
-/* XXX Untested */
+#ifdef applec /* MPW */
 #include <OSEvents.h>
 #include <SysEqu.h>
 #endif
@@ -73,7 +70,7 @@ intrcheck()
 static int interrupted;
 
 static SIGTYPE
-intcatcher(ig)
+intcatcher(sig)
        int sig;
 {
        interrupted = 1;
@@ -92,8 +89,6 @@ intrcheck()
 {
        register EvQElPtr q;
        
-       /* This is like THINK C 4.0's <console.h> */
-       /* q = (EvQElPtr) EventQueue.qHead; */
        q = (EvQElPtr) GetEvQHdr()->qHead;
        
        for (; q; q = (EvQElPtr)q->qLink) {