diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-14 22:37:27 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-14 22:37:27 (GMT) |
commit | 74a1e63a89cdaad288260600cf77e3a20811f49b (patch) | |
tree | fcac57d67ef4a81ecfb8ae462dc3d254e9cf46be /Mac/Modules/evt | |
parent | 2d391f2f397d66e2ac3cadc0b3c3b008a57094bb (diff) | |
download | cpython-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/Modules/evt')
-rw-r--r-- | Mac/Modules/evt/Evtmodule.c | 20 | ||||
-rw-r--r-- | Mac/Modules/evt/evtscan.py | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/Mac/Modules/evt/Evtmodule.c b/Mac/Modules/evt/Evtmodule.c index b825cbf..093c470 100644 --- a/Mac/Modules/evt/Evtmodule.c +++ b/Mac/Modules/evt/Evtmodule.c @@ -198,7 +198,7 @@ static PyObject *Evt_PostEvent(_self, _args) return _res; } -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON static PyObject *Evt_OSEventAvail(_self, _args) PyObject *_self; @@ -220,7 +220,7 @@ static PyObject *Evt_OSEventAvail(_self, _args) } #endif -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON static PyObject *Evt_GetOSEvent(_self, _args) PyObject *_self; @@ -260,7 +260,7 @@ static PyObject *Evt_FlushEvents(_self, _args) return _res; } -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON static PyObject *Evt_SystemClick(_self, _args) PyObject *_self; @@ -281,7 +281,7 @@ static PyObject *Evt_SystemClick(_self, _args) } #endif -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON static PyObject *Evt_SystemTask(_self, _args) PyObject *_self; @@ -297,7 +297,7 @@ static PyObject *Evt_SystemTask(_self, _args) } #endif -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON static PyObject *Evt_SystemEvent(_self, _args) PyObject *_self; @@ -370,29 +370,29 @@ static PyMethodDef Evt_methods[] = { {"PostEvent", (PyCFunction)Evt_PostEvent, 1, "(EventKind eventNum, UInt32 eventMsg) -> None"}, -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON {"OSEventAvail", (PyCFunction)Evt_OSEventAvail, 1, "(EventMask mask) -> (Boolean _rv, EventRecord theEvent)"}, #endif -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON {"GetOSEvent", (PyCFunction)Evt_GetOSEvent, 1, "(EventMask mask) -> (Boolean _rv, EventRecord theEvent)"}, #endif {"FlushEvents", (PyCFunction)Evt_FlushEvents, 1, "(EventMask whichMask, EventMask stopMask) -> None"}, -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON {"SystemClick", (PyCFunction)Evt_SystemClick, 1, "(EventRecord theEvent, WindowPtr theWindow) -> None"}, #endif -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON {"SystemTask", (PyCFunction)Evt_SystemTask, 1, "() -> None"}, #endif -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON {"SystemEvent", (PyCFunction)Evt_SystemEvent, 1, "(EventRecord theEvent) -> (Boolean _rv)"}, #endif diff --git a/Mac/Modules/evt/evtscan.py b/Mac/Modules/evt/evtscan.py index 597cf9b..3695440 100644 --- a/Mac/Modules/evt/evtscan.py +++ b/Mac/Modules/evt/evtscan.py @@ -37,7 +37,7 @@ class MyScanner(Scanner): def makegreylist(self): return [ - ('#ifndef TARGET_API_MAC_CARBON', [ + ('#if !TARGET_API_MAC_CARBON', [ 'SystemEvent', 'SystemTask', 'SystemClick', |