]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
include macglue.h so we can use HAVE_UNIVERSAL_HEADERS;
authorGuido van Rossum <guido@python.org>
Sat, 4 Mar 1995 22:35:14 +0000 (22:35 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 4 Mar 1995 22:35:14 +0000 (22:35 +0000)
and correct sens of PyMac_Idle() test.  But should'nt this raise
KeyboardInterrupt instead of silently returning?

Mac/Unsupported/mactcp/macdnrmodule.c

index 114ee3c5ec513606627e02d5239d95afaf24bb3f..ac4222230f8f7c453b43ef1e35c5f5376e4b25bf 100644 (file)
@@ -1,6 +1,6 @@
 /***********************************************************
-Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
-Amsterdam, The Netherlands.
+Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
+The Netherlands.
 
                         All Rights Reserved
 
@@ -25,10 +25,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include "allobjects.h"
 #include "modsupport.h"                /* For getargs() etc. */
 
+#include "macglue.h"
 #include <AddressXlation.h>
 #include <Desk.h>
 
-#ifndef __MWERKS__
+#ifndef HAVE_UNIVERSAL_HEADERS
 #define ResultUPP ResultProcPtr
 #define NewResultProc(x) (x)
 /* The '2' has move in this name... */
@@ -76,7 +77,7 @@ static int dnrwait(self)
        dnrrobject *self;
 {
        while ( self->waiting ) {
-               if ( !PyMac_Idle() )
+               if ( PyMac_Idle() )
                        return 0;
        }
        return 1;
@@ -90,6 +91,7 @@ dnrr_wait(self, args)
        if (!newgetargs(args, ""))
                return NULL;
        if ( !dnrwait(self) ) {
+               /* XXX An interrupt is pending -- is this correct? */
                INCREF(None);
                return None;
        }
@@ -194,6 +196,7 @@ dnrr_getattr(self, name)
        err_clear();
        if ( self->waiting )
                if ( !dnrwait(self) ) {
+                       /* XXX An interrupt is pending -- is this correct? */
                        err_setstr(ErrorObject, "Resolver busy");
                        return NULL;
                }