summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-03-15 16:55:01 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-03-15 16:55:01 (GMT)
commit24b07bcba350bb86c4d6ca446e1564647a199868 (patch)
tree1815b1c49a6aec401da86b33fa81d06a0c735679 /Modules
parent1aa999c49ed82c89257c13cba5e210c3ba34c130 (diff)
downloadcpython-24b07bcba350bb86c4d6ca446e1564647a199868.zip
cpython-24b07bcba350bb86c4d6ca446e1564647a199868.tar.gz
cpython-24b07bcba350bb86c4d6ca446e1564647a199868.tar.bz2
#11515: fix several typos. Patch by Piotr Kasprzyk.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/callproc.c2
-rw-r--r--Modules/_ctypes/libffi/ChangeLog4
-rw-r--r--Modules/_ctypes/libffi/src/dlmalloc.c4
-rw-r--r--Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c2
-rw-r--r--Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.c2
-rw-r--r--Modules/_heapqmodule.c2
-rw-r--r--Modules/_struct.c2
-rw-r--r--Modules/parsermodule.c2
-rw-r--r--Modules/threadmodule.c2
-rw-r--r--Modules/zipimport.c2
10 files changed, 12 insertions, 12 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index 39fcd16..5f62399 100644
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -54,7 +54,7 @@
So, there are 4 data structures holding processed arguments:
- the inargs tuple (in PyCFuncPtr_call)
- the callargs tuple (in PyCFuncPtr_call)
- - the 'struct argguments' array
+ - the 'struct arguments' array
- the 'void *' array
*/
diff --git a/Modules/_ctypes/libffi/ChangeLog b/Modules/_ctypes/libffi/ChangeLog
index 00ba7ef..78853c4 100644
--- a/Modules/_ctypes/libffi/ChangeLog
+++ b/Modules/_ctypes/libffi/ChangeLog
@@ -3084,7 +3084,7 @@
2003-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
- * src/sh/ffi.c (ffi_prep_args): Take account into the alignement
+ * src/sh/ffi.c (ffi_prep_args): Take account into the alignment
for the register size.
(ffi_closure_helper_SYSV): Handle the structure return value
address correctly.
@@ -3344,7 +3344,7 @@
2003-02-06 Andreas Tobler <a.tobler@schweiz.ch>
* libffi/src/powerpc/darwin_closure.S:
- Fix alignement bug, allocate 8 bytes for the result.
+ Fix alignment bug, allocate 8 bytes for the result.
* libffi/src/powerpc/aix_closure.S:
Likewise.
* libffi/src/powerpc/ffi_darwin.c:
diff --git a/Modules/_ctypes/libffi/src/dlmalloc.c b/Modules/_ctypes/libffi/src/dlmalloc.c
index 783c5c2..72673a1 100644
--- a/Modules/_ctypes/libffi/src/dlmalloc.c
+++ b/Modules/_ctypes/libffi/src/dlmalloc.c
@@ -1326,7 +1326,7 @@ static void* win32direct_mmap(size_t size) {
return (ptr != 0)? ptr: MFAIL;
}
-/* This function supports releasing coalesed segments */
+/* This function supports releasing coalesced segments */
static int win32munmap(void* ptr, size_t size) {
MEMORY_BASIC_INFORMATION minfo;
char* cptr = ptr;
@@ -1362,7 +1362,7 @@ static int win32munmap(void* ptr, size_t size) {
#define CALL_MORECORE(S) MFAIL
#endif /* HAVE_MORECORE */
-/* mstate bit set if continguous morecore disabled or failed */
+/* mstate bit set if contiguous morecore disabled or failed */
#define USE_NONCONTIGUOUS_BIT (4U)
/* segment bit set in create_mspace_with_base */
diff --git a/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c b/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c
index d84f1c3..5e77720 100644
--- a/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c
+++ b/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c
@@ -592,7 +592,7 @@ typedef struct aix_fd_struct {
+---------------------------------------+ 160
| result area 8 |
+---------------------------------------+ 168
- | alignement to the next multiple of 16 |
+ | alignment to the next multiple of 16 |
SP current --> +---------------------------------------+ 176 <- parent frame
| back chain to caller 4 |
+---------------------------------------+ 180
diff --git a/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.c b/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.c
index 8953d5f..dba2184 100644
--- a/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.c
+++ b/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.c
@@ -650,7 +650,7 @@ ffi_call(
+---------------------------------------+ 160
| result area 8 |
+---------------------------------------+ 168
- | alignement to the next multiple of 16 |
+ | alignment to the next multiple of 16 |
SP current --> +---------------------------------------+ 176 <- parent frame
| back chain to caller 4 |
+---------------------------------------+ 180
diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c
index 949e5b0..495114b 100644
--- a/Modules/_heapqmodule.c
+++ b/Modules/_heapqmodule.c
@@ -11,7 +11,7 @@ annotated by François Pinard, and converted to C by Raymond Hettinger.
/* Older implementations of heapq used Py_LE for comparisons. Now, it uses
Py_LT so it will match min(), sorted(), and bisect(). Unfortunately, some
client code (Twisted for example) relied on Py_LE, so this little function
- restores compatability by trying both.
+ restores compatibility by trying both.
*/
static int
cmp_lt(PyObject *x, PyObject *y)
diff --git a/Modules/_struct.c b/Modules/_struct.c
index 71e71dd..c158eba 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -1162,7 +1162,7 @@ whichtable(char **pfmt)
case '>':
case '!': /* Network byte order is big-endian */
return bigendian_table;
- case '=': { /* Host byte order -- different from native in aligment! */
+ case '=': { /* Host byte order -- different from native in alignment! */
int n = 1;
char *p = (char *) &n;
if (*p == 1)
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index f0ac5e9..632475c 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -1629,7 +1629,7 @@ validate_expr_stmt(node *tree)
|| strcmp(s, ">>=") == 0
|| strcmp(s, "**=") == 0);
if (!res)
- err_string("illegal augmmented assignment operator");
+ err_string("illegal augmented assignment operator");
}
}
else {
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index 53a833c..79e6bab 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -447,7 +447,7 @@ _ldict(localobject *self)
self->args, self->kw) < 0) {
/* we need to get rid of ldict from thread so
we create a new one the next time we do an attr
- acces */
+ access */
PyDict_DelItem(tdict, self->key);
return NULL;
}
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index c9acb7d..0ca9788 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -1106,7 +1106,7 @@ get_code_from_data(ZipImporter *self, int ispackage, int isbytecode,
return code;
}
-/* Get the code object assoiciated with the module specified by
+/* Get the code object associated with the module specified by
'fullname'. */
static PyObject *
get_module_code(ZipImporter *self, char *fullname,