diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-16 10:34:31 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-16 10:34:31 (GMT) |
commit | c2077b0d9b5bf99768c6f396bf7ae6c41b682465 (patch) | |
tree | 8a1dc9e646a99465f4f1c9961012d52ef183e653 /Modules/_ctypes | |
parent | 6905de14fef619767693f8bd91996bc7e99ca9fe (diff) | |
download | cpython-c2077b0d9b5bf99768c6f396bf7ae6c41b682465.zip cpython-c2077b0d9b5bf99768c6f396bf7ae6c41b682465.tar.gz cpython-c2077b0d9b5bf99768c6f396bf7ae6c41b682465.tar.bz2 |
#11565: Fix several typos. Patch by Piotr Kasprzyk.
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 2 | ||||
-rw-r--r-- | Modules/_ctypes/callbacks.c | 2 | ||||
-rw-r--r-- | Modules/_ctypes/callproc.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 4fc9d02..bb406c6 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -3427,7 +3427,7 @@ PyCFuncPtr_new(PyTypeObject *type, PyObject *args, PyObject *kwds) /* XXX XXX This would allow to pass additional options. For COM method *implementations*, we would probably want different behaviour than in 'normal' callback functions: return a HRESULT if - an exception occurrs in the callback, and print the traceback not + an exception occurs in the callback, and print the traceback not only on the console, but also to OutputDebugString() or something like that. */ diff --git a/Modules/_ctypes/callbacks.c b/Modules/_ctypes/callbacks.c index 716a02f..2b54a85 100644 --- a/Modules/_ctypes/callbacks.c +++ b/Modules/_ctypes/callbacks.c @@ -256,7 +256,7 @@ static void _CallPythonObject(void *mem, /* XXX XXX XX We have the problem that c_byte or c_short have dict->size of 1 resp. 4, but these parameters are pushed as sizeof(int) bytes. - BTW, the same problem occurrs when they are pushed as parameters + BTW, the same problem occurs when they are pushed as parameters */ } else if (dict) { /* Hm, shouldn't we use PyCData_AtAddress() or something like that instead? */ diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c index 5f62399..78c6dc0 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -34,7 +34,7 @@ 4. _ctypes_callproc is then called with the 'callargs' tuple. _ctypes_callproc first allocates two arrays. The first is an array of 'struct argument' items, the - second array has 'void *' entried. + second array has 'void *' entries. 5. If 'converters' are present (converters is a sequence of argtypes' from_param methods), for each item in 'callargs' converter is called and the |