Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3a743edf
Commit
3a743edf
authored
Mar 11, 2013
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #17047: remove doubled words found in 2.7 to 3.4 Modules/*,
as reported by Serhiy Storchaka and Matthew Barnett.
parent
632eac4e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
19 deletions
+19
-19
Modules/_ctypes/callproc.c
Modules/_ctypes/callproc.c
+2
-2
Modules/_ctypes/libffi/src/dlmalloc.c
Modules/_ctypes/libffi/src/dlmalloc.c
+6
-6
Modules/_ctypes/libffi/src/ia64/ffi.c
Modules/_ctypes/libffi/src/ia64/ffi.c
+2
-2
Modules/_heapqmodule.c
Modules/_heapqmodule.c
+2
-2
Modules/_io/iobase.c
Modules/_io/iobase.c
+1
-1
Modules/expat/xmltok.c
Modules/expat/xmltok.c
+1
-1
Modules/ossaudiodev.c
Modules/ossaudiodev.c
+1
-1
Modules/zlib/deflate.c
Modules/zlib/deflate.c
+2
-2
Modules/zlib/inftrees.h
Modules/zlib/inftrees.h
+1
-1
Modules/zlib/zlib.h
Modules/zlib/zlib.h
+1
-1
No files found.
Modules/_ctypes/callproc.c
View file @
3a743edf
...
...
@@ -20,8 +20,8 @@
2. After several checks, _build_callargs() is called which returns another
tuple 'callargs'. This may be the same tuple as 'inargs', a slice of
'inargs', or a completely fresh tuple, depending on several things (is i
s
a
COM method
, are 'paramflags' available
).
'inargs', or a completely fresh tuple, depending on several things (is i
t
a
COM method
?, are 'paramflags' available?
).
3. _build_callargs also calculates bitarrays containing indexes into
the callargs tuple, specifying how to build the return value(s) of
...
...
Modules/_ctypes/libffi/src/dlmalloc.c
View file @
3a743edf
...
...
@@ -100,7 +100,7 @@
If you don't like either of these options, you can define
CORRUPTION_ERROR_ACTION and USAGE_ERROR_ACTION to do anything
else. And if
if
you are sure that your program using malloc has
else. And if you are sure that your program using malloc has
no errors or vulnerabilities, you can define INSECURE to 1,
which might (or might not) provide a small performance improvement.
...
...
@@ -599,7 +599,7 @@ DEFAULT_MMAP_THRESHOLD default: 256K
declaration needed is the mallinfo struct that is returned (by-copy)
by mallinfo(). The malloinfo struct contains a bunch of fields that
are not even meaningful in this version of malloc. These fields are
are
instead filled by mallinfo() with other numbers that might be of
instead filled by mallinfo() with other numbers that might be of
interest.
HAVE_USR_INCLUDE_MALLOC_H should be set if you have a
...
...
@@ -1564,7 +1564,7 @@ static MLOCK_T magic_init_mutex;
Each freshly allocated chunk must have both cinuse and pinuse set.
That is, each allocated chunk borders either a previously allocated
and still in-use chunk, or the base of its memory arena. This is
ensured by making all allocations from the
the
`lowest' part of any
ensured by making all allocations from the `lowest' part of any
found chunk. Further, no free chunk physically borders another one,
so each free chunk is known to be preceded and followed by either
inuse chunks or the ends of memory.
...
...
@@ -1770,12 +1770,12 @@ nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
of the same size are arranged in a circularly-linked list, with only
the oldest chunk (the next to be used, in our FIFO ordering)
actually in the tree. (Tree members are distinguished by a non-null
parent pointer.) If a chunk with the same size a
n
an existing node
parent pointer.) If a chunk with the same size a
s
an existing node
is inserted, it is linked off the existing node using pointers that
work in the same way as fd/bk pointers of small chunks.
Each tree contains a power of 2 sized range of chunk sizes (the
smallest is 0x100 <= x < 0x180), which is
is
divided in half at each
smallest is 0x100 <= x < 0x180), which is divided in half at each
tree level, with the chunks in the smaller half of the range (0x100
<= x < 0x140 for the top nose) in the left subtree and the larger
half (0x140 <= x < 0x180) in the right subtree. This is, of course,
...
...
@@ -3380,7 +3380,7 @@ static void* sys_alloc(mstate m, size_t nb) {
least-preferred order):
1. A call to MORECORE that can normally contiguously extend memory.
(disabled if not MORECORE_CONTIGUOUS or not HAVE_MORECORE or
or
main space is mmapped or a previous contiguous call failed)
main space is mmapped or a previous contiguous call failed)
2. A call to MMAP new space (disabled if not HAVE_MMAP).
Note that under the default settings, if MORECORE is unable to
fulfill a request, and HAVE_MMAP is true, then mmap is
...
...
Modules/_ctypes/libffi/src/ia64/ffi.c
View file @
3a743edf
...
...
@@ -84,7 +84,7 @@ endian_adjust (void *addr, size_t len)
#define ldf_fill(result, addr) \
asm ("ldf.fill %0 = %1%P1" : "=f"(result) : "m"(*addr));
/* Return the size of the C type associated with
with TYPE. W
hich will
/* Return the size of the C type associated with
TYPE, w
hich will
be one of the FFI_IA64_TYPE_HFA_* values. */
static
size_t
...
...
@@ -184,7 +184,7 @@ hfa_element_type (ffi_type *type, int nested)
break
;
case
FFI_TYPE_LONGDOUBLE
:
/* Similarly, except that
that
HFA is true for double extended,
/* Similarly, except that HFA is true for double extended,
but not quad precision. Both have sizeof == 16, so tell the
difference based on the precision. */
if
(
LDBL_MANT_DIG
==
64
&&
nested
)
...
...
Modules/_heapqmodule.c
View file @
3a743edf
...
...
@@ -116,7 +116,7 @@ _siftup(PyListObject *heap, Py_ssize_t pos)
}
}
/* The leaf at pos is empty now. Put newitem there, and
and
bubble
/* The leaf at pos is empty now. Put newitem there, and bubble
it up to its final resting place (by sifting its parents down). */
Py_DECREF
(
PyList_GET_ITEM
(
heap
,
pos
));
PyList_SET_ITEM
(
heap
,
pos
,
newitem
);
...
...
@@ -456,7 +456,7 @@ _siftupmax(PyListObject *heap, Py_ssize_t pos)
childpos
=
2
*
pos
+
1
;
}
/* The leaf at pos is empty now. Put newitem there, and
and
bubble
/* The leaf at pos is empty now. Put newitem there, and bubble
it up to its final resting place (by sifting its parents down). */
Py_DECREF
(
PyList_GET_ITEM
(
heap
,
pos
));
PyList_SET_ITEM
(
heap
,
pos
,
newitem
);
...
...
Modules/_io/iobase.c
View file @
3a743edf
...
...
@@ -75,7 +75,7 @@ iobase_unsupported(const char *message)
PyDoc_STRVAR
(
iobase_seek_doc
,
"Change stream position.
\n
"
"
\n
"
"Change the stream position to
byte offset offset.
offset is
\n
"
"Change the stream position to
the given byte offset. The
offset is
\n
"
"interpreted relative to the position indicated by whence. Values
\n
"
"for whence are:
\n
"
"
\n
"
...
...
Modules/expat/xmltok.c
View file @
3a743edf
...
...
@@ -1584,7 +1584,7 @@ initScan(const ENCODING * const *encodingTable,
if
(
ptr
[
0
]
==
'\0'
)
{
/* 0 isn't a legal data character. Furthermore a document
entity can only start with ASCII characters. So the only
way this can fail to be big-endian UTF-16 i
f it it'
s an
way this can fail to be big-endian UTF-16 i
s if it i
s an
external parsed general entity that's labelled as
UTF-16LE.
*/
...
...
Modules/ossaudiodev.c
View file @
3a743edf
...
...
@@ -215,7 +215,7 @@ oss_mixer_dealloc(oss_mixer_t *self)
*/
/* _do_ioctl_1() is a private helper function used for the OSS ioctls --
SNDCTL_DSP_{SETFMT,CHANNELS,SPEED} -- that
that
are called from C
SNDCTL_DSP_{SETFMT,CHANNELS,SPEED} -- that are called from C
like this:
ioctl(fd, SNDCTL_DSP_cmd, &arg)
...
...
Modules/zlib/deflate.c
View file @
3a743edf
...
...
@@ -157,7 +157,7 @@ struct static_tree_desc_s {int dummy;}; /* for buggy compilers */
/* ===========================================================================
* Update a hash value with the given input byte
* IN assertion: all calls to
to
UPDATE_HASH are made with consecutive
* IN assertion: all calls to UPDATE_HASH are made with consecutive
* input characters, so that a running hash key can be computed from the
* previous key instead of complete recalculation each time.
*/
...
...
@@ -170,7 +170,7 @@ struct static_tree_desc_s {int dummy;}; /* for buggy compilers */
* the previous length of the hash chain.
* If this file is compiled with -DFASTEST, the compression level is forced
* to 1, and no hash chains are maintained.
* IN assertion: all calls to
to
INSERT_STRING are made with consecutive
* IN assertion: all calls to INSERT_STRING are made with consecutive
* input characters and the first MIN_MATCH bytes of str are valid
* (except for the last MIN_MATCH-1 bytes of the input file).
*/
...
...
Modules/zlib/inftrees.h
View file @
3a743edf
...
...
@@ -41,7 +41,7 @@ typedef struct {
examples/enough.c found in the zlib distribtution. The arguments to that
program are the number of symbols, the initial root table size, and the
maximum bit length of a code. "enough 286 9 15" for literal/length codes
returns
returns
852, and "enough 30 6 15" for distance codes returns 592.
returns 852, and "enough 30 6 15" for distance codes returns 592.
The initial root table size (9 or 6) is found in the fifth argument of the
inflate_table() calls in inflate.c and infback.c. If the root table size is
changed, then these maximum sizes would be need to be recalculated and
...
...
Modules/zlib/zlib.h
View file @
3a743edf
...
...
@@ -812,7 +812,7 @@ ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm));
inflateSync returns Z_OK if a full flush point has been found, Z_BUF_ERROR
if no more input was provided, Z_DATA_ERROR if no flush point has been
found, or Z_STREAM_ERROR if the stream structure was inconsistent. In the
success case, the application may save the current
current
value of total_in
success case, the application may save the current value of total_in
which indicates where valid compressed data was found. In the error case,
the application may repeatedly call inflateSync, providing more input each
time, until success or end of the input data.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment