summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macglue.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-02-27 16:17:28 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-02-27 16:17:28 (GMT)
commit16df2aa57b32efa890d83f9c7f34c27d8c2cc742 (patch)
treefab6bf552606f8d445ec9dce393e5c857a819eaa /Mac/Python/macglue.c
parent7c750e1e099128157430d26ffa7e2a44d87daf3c (diff)
downloadcpython-16df2aa57b32efa890d83f9c7f34c27d8c2cc742.zip
cpython-16df2aa57b32efa890d83f9c7f34c27d8c2cc742.tar.gz
cpython-16df2aa57b32efa890d83f9c7f34c27d8c2cc742.tar.bz2
Under MW also be more conservative about events to request
Diffstat (limited to 'Mac/Python/macglue.c')
-rw-r--r--Mac/Python/macglue.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c
index e6767c8..5c255fb 100644
--- a/Mac/Python/macglue.c
+++ b/Mac/Python/macglue.c
@@ -45,6 +45,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#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 @@ typedef FileFilterYDProcPtr FileFilterYDUPP;
#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>