summaryrefslogtreecommitdiffstats
path: root/Mac/Python
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-14 22:37:27 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-14 22:37:27 (GMT)
commit74a1e63a89cdaad288260600cf77e3a20811f49b (patch)
treefcac57d67ef4a81ecfb8ae462dc3d254e9cf46be /Mac/Python
parent2d391f2f397d66e2ac3cadc0b3c3b008a57094bb (diff)
downloadcpython-74a1e63a89cdaad288260600cf77e3a20811f49b.zip
cpython-74a1e63a89cdaad288260600cf77e3a20811f49b.tar.gz
cpython-74a1e63a89cdaad288260600cf77e3a20811f49b.tar.bz2
Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.
Diffstat (limited to 'Mac/Python')
-rw-r--r--Mac/Python/macgetargv.c2
-rw-r--r--Mac/Python/macgetcompiler.c2
-rw-r--r--Mac/Python/macglue.c12
-rw-r--r--Mac/Python/macmain.c4
4 files changed, 10 insertions, 10 deletions
diff --git a/Mac/Python/macgetargv.c b/Mac/Python/macgetargv.c
index b4a3ec6..b845781 100644
--- a/Mac/Python/macgetargv.c
+++ b/Mac/Python/macgetargv.c
@@ -271,7 +271,7 @@ event_loop()
got_one = 0;
for (n = 0; n < 100 && !got_one; n++) {
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
SystemTask();
#endif
ok = GetNextEvent(everyEvent, &event);
diff --git a/Mac/Python/macgetcompiler.c b/Mac/Python/macgetcompiler.c
index d7f535f..c7f325c 100644
--- a/Mac/Python/macgetcompiler.c
+++ b/Mac/Python/macgetcompiler.c
@@ -51,7 +51,7 @@ PERFORMANCE OF THIS SOFTWARE.
#define HASTHREAD ""
#endif
-#ifdef TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_CARBON
#define TARGET_API " CARBON"
#else
#define TARGET_API ""
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c
index d7eb9ec..ad4e82b 100644
--- a/Mac/Python/macglue.c
+++ b/Mac/Python/macglue.c
@@ -32,7 +32,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <Events.h>
-#ifdef TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_CARBON
/* Unfortunately this call is probably slower... */
#define LMGetTicks() TickCount()
#endif
@@ -161,7 +161,7 @@ struct hook_args {
int selectcur_hit; /* Set to true when "select current" selected */
char *prompt; /* The prompt */
};
-#ifdef TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_CARBON
/* The StandardFile hooks don't exist in Carbon. This breaks GetDirectory,
** but the macfsn code will replace it by a NavServices version anyway.
*/
@@ -417,7 +417,7 @@ static void
scan_event_queue(flush)
int flush;
{
-#ifdef TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_CARBON
/* CARBONXXXX To be implemented */
return;
#else
@@ -508,7 +508,7 @@ void
PyMac_HandleEventIntern(evp)
EventRecord *evp;
{
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
if ( evp->what == mouseDown ) {
WindowPtr wp;
@@ -585,7 +585,7 @@ PyMac_DoYield(int maxsleep, int maycallpython)
*/
if( in_here > 1 || !schedparams.process_events ||
(python_event_handler && !maycallpython) ) {
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
if ( maxsleep >= 0 ) {
SystemTask();
}
@@ -754,7 +754,7 @@ myhook_proc(short item, DialogPtr theDialog, struct hook_args *dataptr)
}
return item;
}
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
/*
** Ask the user for a directory. I still can't understand
** why Apple doesn't provide a standard solution for this...
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c
index e3e9615..d40a70e 100644
--- a/Mac/Python/macmain.c
+++ b/Mac/Python/macmain.c
@@ -86,7 +86,7 @@ no_appearance:
static void
init_mac_world()
{
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
/* These aren't needed for carbon */
MaxApplZone();
InitGraf(&qd.thePort);
@@ -162,7 +162,7 @@ PyMac_InteractiveOptions(PyMac_PrefRecord *p, int *argcp, char ***argvp)
DisposeDialog(dialog);
exit(0);
}
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
if ( item == OPT_HELP ) {
HMSetBalloons(!HMGetBalloons());
}