diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-09 23:12:22 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-09 23:12:22 (GMT) |
commit | d40f3c60ca39b76c518df368477baa7c338b139e (patch) | |
tree | e73aac880f4c930024cd48a6e0b607ec81bed537 /Mac/Modules/evt | |
parent | 732151473b9528302518c54a48e5767bc7746200 (diff) | |
download | cpython-d40f3c60ca39b76c518df368477baa7c338b139e.zip cpython-d40f3c60ca39b76c518df368477baa7c338b139e.tar.gz cpython-d40f3c60ca39b76c518df368477baa7c338b139e.tar.bz2 |
New universal headers
Diffstat (limited to 'Mac/Modules/evt')
-rw-r--r-- | Mac/Modules/evt/Evtmodule.c | 34 | ||||
-rw-r--r-- | Mac/Modules/evt/evtgen.py | 20 | ||||
-rw-r--r-- | Mac/Modules/evt/evtsupport.py | 6 |
3 files changed, 31 insertions, 29 deletions
diff --git a/Mac/Modules/evt/Evtmodule.c b/Mac/Modules/evt/Evtmodule.c index 139e5d8..59858fa 100644 --- a/Mac/Modules/evt/Evtmodule.c +++ b/Mac/Modules/evt/Evtmodule.c @@ -59,7 +59,7 @@ static PyObject *Evt_SetEventMask(_self, _args) PyObject *_args; { PyObject *_res = NULL; - MacOSEventMask value; + EventMask value; if (!PyArg_ParseTuple(_args, "h", &value)) return NULL; @@ -89,7 +89,7 @@ static PyObject *Evt_GetNextEvent(_self, _args) { PyObject *_res = NULL; Boolean _rv; - MacOSEventMask eventMask; + EventMask eventMask; EventRecord theEvent; if (!PyArg_ParseTuple(_args, "h", &eventMask)) @@ -108,7 +108,7 @@ static PyObject *Evt_WaitNextEvent(_self, _args) { PyObject *_res = NULL; Boolean _rv; - MacOSEventMask eventMask; + EventMask eventMask; EventRecord theEvent; UInt32 sleep; if (!PyArg_ParseTuple(_args, "hl", @@ -131,7 +131,7 @@ static PyObject *Evt_EventAvail(_self, _args) { PyObject *_res = NULL; Boolean _rv; - MacOSEventMask eventMask; + EventMask eventMask; EventRecord theEvent; if (!PyArg_ParseTuple(_args, "h", &eventMask)) @@ -235,7 +235,7 @@ static PyObject *Evt_PostEvent(_self, _args) { PyObject *_res = NULL; OSErr _err; - MacOSEventKind eventNum; + EventKind eventNum; UInt32 eventMsg; if (!PyArg_ParseTuple(_args, "hl", &eventNum, @@ -255,7 +255,7 @@ static PyObject *Evt_OSEventAvail(_self, _args) { PyObject *_res = NULL; Boolean _rv; - MacOSEventMask mask; + EventMask mask; EventRecord theEvent; if (!PyArg_ParseTuple(_args, "h", &mask)) @@ -274,7 +274,7 @@ static PyObject *Evt_GetOSEvent(_self, _args) { PyObject *_res = NULL; Boolean _rv; - MacOSEventMask mask; + EventMask mask; EventRecord theEvent; if (!PyArg_ParseTuple(_args, "h", &mask)) @@ -292,8 +292,8 @@ static PyObject *Evt_FlushEvents(_self, _args) PyObject *_args; { PyObject *_res = NULL; - MacOSEventMask whichMask; - MacOSEventMask stopMask; + EventMask whichMask; + EventMask stopMask; if (!PyArg_ParseTuple(_args, "hh", &whichMask, &stopMask)) @@ -356,15 +356,15 @@ static PyMethodDef Evt_methods[] = { {"GetCaretTime", (PyCFunction)Evt_GetCaretTime, 1, "() -> (UInt32 _rv)"}, {"SetEventMask", (PyCFunction)Evt_SetEventMask, 1, - "(MacOSEventMask value) -> None"}, + "(EventMask value) -> None"}, {"GetDblTime", (PyCFunction)Evt_GetDblTime, 1, "() -> (UInt32 _rv)"}, {"GetNextEvent", (PyCFunction)Evt_GetNextEvent, 1, - "(MacOSEventMask eventMask) -> (Boolean _rv, EventRecord theEvent)"}, + "(EventMask eventMask) -> (Boolean _rv, EventRecord theEvent)"}, {"WaitNextEvent", (PyCFunction)Evt_WaitNextEvent, 1, - "(MacOSEventMask eventMask, UInt32 sleep) -> (Boolean _rv, EventRecord theEvent)"}, + "(EventMask eventMask, UInt32 sleep) -> (Boolean _rv, EventRecord theEvent)"}, {"EventAvail", (PyCFunction)Evt_EventAvail, 1, - "(MacOSEventMask eventMask) -> (Boolean _rv, EventRecord theEvent)"}, + "(EventMask eventMask) -> (Boolean _rv, EventRecord theEvent)"}, {"GetMouse", (PyCFunction)Evt_GetMouse, 1, "() -> (Point mouseLoc)"}, {"Button", (PyCFunction)Evt_Button, 1, @@ -378,13 +378,13 @@ static PyMethodDef Evt_methods[] = { {"TickCount", (PyCFunction)Evt_TickCount, 1, "() -> (UInt32 _rv)"}, {"PostEvent", (PyCFunction)Evt_PostEvent, 1, - "(MacOSEventKind eventNum, UInt32 eventMsg) -> None"}, + "(EventKind eventNum, UInt32 eventMsg) -> None"}, {"OSEventAvail", (PyCFunction)Evt_OSEventAvail, 1, - "(MacOSEventMask mask) -> (Boolean _rv, EventRecord theEvent)"}, + "(EventMask mask) -> (Boolean _rv, EventRecord theEvent)"}, {"GetOSEvent", (PyCFunction)Evt_GetOSEvent, 1, - "(MacOSEventMask mask) -> (Boolean _rv, EventRecord theEvent)"}, + "(EventMask mask) -> (Boolean _rv, EventRecord theEvent)"}, {"FlushEvents", (PyCFunction)Evt_FlushEvents, 1, - "(MacOSEventMask whichMask, MacOSEventMask stopMask) -> None"}, + "(EventMask whichMask, EventMask stopMask) -> None"}, {"SystemClick", (PyCFunction)Evt_SystemClick, 1, "(EventRecord theEvent, WindowPtr theWindow) -> None"}, {"SystemTask", (PyCFunction)Evt_SystemTask, 1, diff --git a/Mac/Modules/evt/evtgen.py b/Mac/Modules/evt/evtgen.py index 47ac307..2eda8ed 100644 --- a/Mac/Modules/evt/evtgen.py +++ b/Mac/Modules/evt/evtgen.py @@ -1,11 +1,11 @@ -# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Events.h' +# Generated from 'Sap:CodeWarrior7:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Events.h' f = Function(UInt32, 'GetCaretTime', ) functions.append(f) f = Function(void, 'SetEventMask', - (MacOSEventMask, 'value', InMode), + (EventMask, 'value', InMode), ) functions.append(f) @@ -14,13 +14,13 @@ f = Function(UInt32, 'GetDblTime', functions.append(f) f = Function(Boolean, 'GetNextEvent', - (MacOSEventMask, 'eventMask', InMode), + (EventMask, 'eventMask', InMode), (EventRecord, 'theEvent', OutMode), ) functions.append(f) f = Function(Boolean, 'WaitNextEvent', - (MacOSEventMask, 'eventMask', InMode), + (EventMask, 'eventMask', InMode), (EventRecord, 'theEvent', OutMode), (UInt32, 'sleep', InMode), (RgnHandle, 'mouseRgn', InMode), @@ -28,7 +28,7 @@ f = Function(Boolean, 'WaitNextEvent', functions.append(f) f = Function(Boolean, 'EventAvail', - (MacOSEventMask, 'eventMask', InMode), + (EventMask, 'eventMask', InMode), (EventRecord, 'theEvent', OutMode), ) functions.append(f) @@ -60,26 +60,26 @@ f = Function(UInt32, 'TickCount', functions.append(f) f = Function(OSErr, 'PostEvent', - (MacOSEventKind, 'eventNum', InMode), + (EventKind, 'eventNum', InMode), (UInt32, 'eventMsg', InMode), ) functions.append(f) f = Function(Boolean, 'OSEventAvail', - (MacOSEventMask, 'mask', InMode), + (EventMask, 'mask', InMode), (EventRecord, 'theEvent', OutMode), ) functions.append(f) f = Function(Boolean, 'GetOSEvent', - (MacOSEventMask, 'mask', InMode), + (EventMask, 'mask', InMode), (EventRecord, 'theEvent', OutMode), ) functions.append(f) f = Function(void, 'FlushEvents', - (MacOSEventMask, 'whichMask', InMode), - (MacOSEventMask, 'stopMask', InMode), + (EventMask, 'whichMask', InMode), + (EventMask, 'stopMask', InMode), ) functions.append(f) diff --git a/Mac/Modules/evt/evtsupport.py b/Mac/Modules/evt/evtsupport.py index 39ddaa9..617eee4 100644 --- a/Mac/Modules/evt/evtsupport.py +++ b/Mac/Modules/evt/evtsupport.py @@ -27,8 +27,10 @@ from macsupport import * RgnHandle = FakeType("(RgnHandle)0") # XXX KeyMap = ArrayOutputBufferType("KeyMap") -MacOSEventKind = Type("MacOSEventKind", "h") -MacOSEventMask = Type("MacOSEventMask", "h") +MacOSEventKind = Type("MacOSEventKind", "h") # Old-style +MacOSEventMask = Type("MacOSEventMask", "h") # Old-style +EventMask = Type("EventMask", "h") +EventKind = Type("EventKind", "h") includestuff = includestuff + """ #include <%s>""" % MACHEADERFILE + """ |