Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macglue.c @ 2443:2dcf7538347a legacy-trunk
Under MW also be more conservative about events to request
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Mon, 27 Feb 1995 16:17:28 +0000 |
| parents | efb0685a6c91 |
| children | e2dd78197596 |
line wrap: on
line diff
--- a/Mac/Python/macglue.c Mon Feb 27 13:16:55 1995 +0000 +++ b/Mac/Python/macglue.c Mon Feb 27 16:17:28 1995 +0000 @@ -45,6 +45,9 @@ #ifdef THINK_C #include <OSEvents.h> /* For EvQElPtr */ #endif +#ifdef __MWERKS__ +#include <SIOUX.h> +#endif #ifndef HAVE_UNIVERSAL_HEADERS #define GetResourceSizeOnDisk(x) SizeResource(x) @@ -69,21 +72,13 @@ #define GETDIR_ID 130 /* Resource ID for our "get directory" */ #define SELECTCUR_ITEM 10 /* "Select current directory" button */ -#ifdef __MWERKS__ -/* -** With MW we can pass the event off to the console window, so -** we might as well handle all events. -*/ -#include <SIOUX.h> -#define MAINLOOP_EVENTMASK everyEvent -#else /* -** For other compilers we're more careful, since we can't handle +** We have to be careful, since we can't handle ** things like updates (and they'll keep coming back if we don't -** handle them) +** handle them). Note that we don't know who has windows open, so +** even handing updates off to SIOUX under MW isn't going to work. */ #define MAINLOOP_EVENTMASK (mDownMask|keyDownMask|osMask) -#endif /* __MWERKS__ */ #include <signal.h>
