summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/evt
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-07 13:09:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-07 13:09:35 (GMT)
commit0b13e7c1531351452703d6b9770194e53a3d3f69 (patch)
tree0a4fc2efc2674b48cebfa7b1058776aa3ec841e8 /Mac/Modules/evt
parent89d017d072cce9a3baee8861b10818a401127f08 (diff)
downloadcpython-0b13e7c1531351452703d6b9770194e53a3d3f69.zip
cpython-0b13e7c1531351452703d6b9770194e53a3d3f69.tar.gz
cpython-0b13e7c1531351452703d6b9770194e53a3d3f69.tar.bz2
Changed all (hopefully) uses of unsigned 16 bit value to use H format specifier, now that h is signed-only.
Diffstat (limited to 'Mac/Modules/evt')
-rw-r--r--Mac/Modules/evt/Evtmodule.c14
-rw-r--r--Mac/Modules/evt/evtsupport.py8
2 files changed, 11 insertions, 11 deletions
diff --git a/Mac/Modules/evt/Evtmodule.c b/Mac/Modules/evt/Evtmodule.c
index a8dcc9e..7d5d2f2 100644
--- a/Mac/Modules/evt/Evtmodule.c
+++ b/Mac/Modules/evt/Evtmodule.c
@@ -167,7 +167,7 @@ static PyObject *Evt_SetEventMask(_self, _args)
{
PyObject *_res = NULL;
EventMask value;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&value))
return NULL;
SetEventMask(value);
@@ -184,7 +184,7 @@ static PyObject *Evt_GetNextEvent(_self, _args)
Boolean _rv;
EventMask eventMask;
EventRecord theEvent;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&eventMask))
return NULL;
_rv = GetNextEvent(eventMask,
@@ -203,7 +203,7 @@ static PyObject *Evt_EventAvail(_self, _args)
Boolean _rv;
EventMask eventMask;
EventRecord theEvent;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&eventMask))
return NULL;
_rv = EventAvail(eventMask,
@@ -222,7 +222,7 @@ static PyObject *Evt_PostEvent(_self, _args)
OSErr _err;
EventKind eventNum;
UInt32 eventMsg;
- if (!PyArg_ParseTuple(_args, "hl",
+ if (!PyArg_ParseTuple(_args, "Hl",
&eventNum,
&eventMsg))
return NULL;
@@ -244,7 +244,7 @@ static PyObject *Evt_OSEventAvail(_self, _args)
Boolean _rv;
EventMask mask;
EventRecord theEvent;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&mask))
return NULL;
_rv = OSEventAvail(mask,
@@ -266,7 +266,7 @@ static PyObject *Evt_GetOSEvent(_self, _args)
Boolean _rv;
EventMask mask;
EventRecord theEvent;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&mask))
return NULL;
_rv = GetOSEvent(mask,
@@ -285,7 +285,7 @@ static PyObject *Evt_FlushEvents(_self, _args)
PyObject *_res = NULL;
EventMask whichMask;
EventMask stopMask;
- if (!PyArg_ParseTuple(_args, "hh",
+ if (!PyArg_ParseTuple(_args, "HH",
&whichMask,
&stopMask))
return NULL;
diff --git a/Mac/Modules/evt/evtsupport.py b/Mac/Modules/evt/evtsupport.py
index ed06b5d..6021a29 100644
--- a/Mac/Modules/evt/evtsupport.py
+++ b/Mac/Modules/evt/evtsupport.py
@@ -29,10 +29,10 @@ RgnHandle = FakeType("(RgnHandle)0")
# RgnHandle = OpaqueByValueType("RgnHandle", "OptResObj")
KeyMap = ArrayOutputBufferType("KeyMap")
-MacOSEventKind = Type("MacOSEventKind", "h") # Old-style
-MacOSEventMask = Type("MacOSEventMask", "h") # Old-style
-EventMask = Type("EventMask", "h")
-EventKind = Type("EventKind", "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 + """