cpython/Modules
Thomas Heller fe8f862cda Integrate patch from Neal Norwitz. He writes:
"""
The attached patch fixes all the ctypes tests so they pass on amd64.
It also fixes several warnings.  I'm not sure what else to do with the
patch.  Let me know how you want to handle these in the future.

I'm not sure the patch is 100% correct.  You will need to decide what
can be 64 bits and what can't.  I believe
sq_{item,slice,ass_item,ass_slice} all need to use Py_ssize_t.  The
types in ctypes.h may not require all the changes I made.  I don't
know how you want to support older version, so I unconditionally
changed the types to Py_ssize_t.
"""

The patch is also in the ctypes SVN repository now, after small
changes to add compatibility with older Python versions.
2006-03-14 19:53:09 +00:00
..
_ctypes Integrate patch from Neal Norwitz. He writes: 2006-03-14 19:53:09 +00:00
cjkcodecs Bug #1448490: Fix a bug that ISO-2022 codecs could not handle 2006-03-13 10:20:08 +00:00
expat Remove two instances of trailing commas. Resolves patch #1209781. 2006-02-19 15:28:47 +00:00
zlib Remove unneeded directories. 2006-01-03 06:48:38 +00:00
Setup.config.in Patch to make _codecs a builtin module. This is necessary since 2002-12-12 17:37:50 +00:00
Setup.dist [ 959576 ] Can't build Python on POSIX w/o $HOME 2005-12-27 17:37:07 +00:00
_bisectmodule.c More unconsting. 2006-02-27 17:20:04 +00:00
_bsddb.c Fix another leak in bsddb, and avoid use of uninitialized value -- funny how 2006-03-12 00:01:38 +00:00
_codecsmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
_csv.c More unconsting. 2006-02-27 17:20:04 +00:00
_curses_panel.c Coverity-found bug: don't use temp->next *before* checking it for NULL. Also 2006-03-07 13:38:14 +00:00
_cursesmodule.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
_elementtree.c merged with cElementTree development trunk (1.0.6 snapshot): 2006-03-12 21:06:35 +00:00
_hashopenssl.c Properly fix Py_SAFE_DOWNCAST-triggerd bugs. 2006-03-02 05:05:17 +00:00
_heapqmodule.c Also make _heapq.nlargest() use Py_ssize_t instead of ints, to iter over 2006-02-16 19:21:53 +00:00
_hotshot.c _hotshot hotshot_profiler(): If write_header() returned 2006-03-07 23:53:32 +00:00
_localemodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
_lsprof.c Thanks to Coverity, these were all reported by their Prevent tool. 2006-03-07 04:48:24 +00:00
_randommodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_sre.c Thanks to Coverity, these were all reported by their Prevent tool. 2006-03-07 04:48:24 +00:00
_ssl.c Try to improve name based on discussion on python-checkins with Jim Jewett 2006-02-13 00:35:21 +00:00
_testcapimodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
_tkinter.c Coverity found refleak: need to free 'v' after calling Tkinter_Error(). 2006-03-07 14:04:31 +00:00
_weakref.c Make weak references subclassable: 2004-07-02 18:57:45 +00:00
addrinfo.h Add comments at end of every #endif and fix ones already there when for closing 2004-07-10 19:30:39 +00:00
almodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
ar_beos Moved BeOS/ar-fake and BeOS/linkmodule to Modules/ar_beos and 2001-02-16 03:24:50 +00:00
arraymodule.c Checking in the code for PEP 357. 2006-03-07 18:50:55 +00:00
audioop.c Thanks to Coverity, these were all reported by their Prevent tool. 2006-03-07 04:48:24 +00:00
binascii.c Use Py_ssize_t for arithmetic on Py_ssize_t's, instead of unsigned ints. 2006-03-01 23:10:05 +00:00
bsddbmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
bz2module.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
cPickle.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
cStringIO.c SF #1444030: Fix several potential defects found by Coverity. 2006-03-07 15:39:21 +00:00
ccpython.cc Patch and new file by Geoff Furnish for C++ compilation. 1999-12-16 17:52:08 +00:00
cdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cgen.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
cgensupport.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
cgensupport.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
clmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cmathmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
collectionsmodule.c - Patch 1433928: 2006-02-25 22:38:04 +00:00
config.c.in Create _ast module. 2006-02-27 15:23:19 +00:00
cryptmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
cstubs REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
datetimemodule.c More unconsting. 2006-02-27 17:20:04 +00:00
dbmmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
dlmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
errnomodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fcntlmodule.c Explain why we use the unsigned int format for a signed int variable. 2006-03-02 17:58:27 +00:00
flmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fmmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fpectlmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fpetestmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
functionalmodule.c Fix typo in functional module 2006-02-21 17:49:57 +00:00
gc_weakref.txt SF 1055820: weakref callback vs gc vs threads 2004-10-30 23:09:22 +00:00
gcmodule.c SF patch #1443865; gc.get_count() added and optional argument 'generation' 2006-03-07 09:46:03 +00:00
gdbmmodule.c Fix gcc (4.0.x) warning about use of uninitialized variable. 2006-03-01 22:54:36 +00:00
getaddrinfo.c SF #784031: Byte-order bug in socket-module getaddrinfo.c 2003-08-17 21:28:39 +00:00
getbuildinfo.c Generate getbuildinfo.o each time the linker is invoked; 2006-01-18 09:13:51 +00:00
getnameinfo.c Remove INET6 define. Use ENABLE_IPV6 instead. 2001-12-02 10:15:37 +00:00
getpath.c Patch #931938: prevent setting sys.prefix to "" 2006-02-20 17:37:36 +00:00
glmodule.c SF patch #577031, remove PyArg_NoArgs() since it's deprecated 2002-07-28 15:23:23 +00:00
grpmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
imageop.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
imgfile.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
itertoolsmodule.c More unconsting. 2006-02-27 17:20:04 +00:00
ld_so_aix SF Bug # 941346, AIX shared library fix 2005-10-03 03:57:09 +00:00
ld_so_beos Remove a hard coded Python version, and a now incorrect relative path. Closes 2001-02-16 03:27:35 +00:00
linuxaudiodev.c Rework channelnumber/samplesize detetion code's output variables a bit to 2006-03-01 22:45:36 +00:00
main.c Try to be a bit more consistent on all platforms: 2006-03-09 05:58:11 +00:00
makesetup [Patch #536769] Add -Xcompiler flag for adding arguments and switches for 2002-03-29 18:00:19 +00:00
makexp_aix - Changes donated by Elemental Security to make it work on AIX 5.3 2005-09-14 18:09:42 +00:00
mathmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
md5.h Issue an explicit error when we can't find an appropriate type for 2002-05-29 14:00:22 +00:00
md5c.c Patch #977074: Move Encode/Decode to the top so gcc can inline them. 2004-08-03 13:08:07 +00:00
md5module.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
mmapmodule.c Checking in the code for PEP 357. 2006-03-07 18:50:55 +00:00
nismodule.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
operator.c Checking in the code for PEP 357. 2006-03-07 18:50:55 +00:00
ossaudiodev.c Rework channelnumber/samplesize detetion code's output variables a bit to 2006-03-01 22:45:36 +00:00
parsermodule.c Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
posixmodule.c Reformulate 42903 using an if statement. 2006-03-07 23:59:33 +00:00
puremodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
pwdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
pyexpat.c Fix logic error and DECREF reported by Coverity. 2006-03-08 06:36:45 +00:00
python.c Apparently FreeBSD enables some HW floating-point exceptions by default. 2002-12-28 21:56:08 +00:00
readline.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
regexmodule.c Don't DECREF a borrowed reference. 2006-03-07 11:58:50 +00:00
regexpr.c Replace abort with Py_FatalError. 2002-08-07 16:21:51 +00:00
regexpr.h Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either 2000-07-16 12:04:32 +00:00
resource.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
rgbimgmodule.c Add deprecation warning to modules deprecated since 2000. 2006-02-17 11:29:04 +00:00
rotatingtree.c randombits(): Stop compiler warning about mixing 2006-02-15 03:01:30 +00:00
rotatingtree.h Added the cProfile module. 2006-02-08 12:53:56 +00:00
selectmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
sgimodule.c Convert more METH_OLDARGS & PyArg_Parse() 2002-04-02 18:26:33 +00:00
sha256module.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
sha512module.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
shamodule.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
signalmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
socketmodule.c More unconsting. 2006-02-27 17:20:04 +00:00
socketmodule.h Get socketmodule to build after adding netlink support. 2006-01-16 04:31:40 +00:00
spwdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
sre.h Add weakref support to sockets and re pattern objects. 2004-05-31 03:09:25 +00:00
sre_constants.h Implemented non-recursive SRE matching. 2003-10-17 22:13:16 +00:00
stropmodule.c Make ssize_t-clean. 2006-02-17 15:49:09 +00:00
structmodule.c struct_pack(): Repair new assert-fail crash in 2006-02-16 20:19:46 +00:00
sunaudiodev.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
svmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
symtablemodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
syslogmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
termios.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
testcapi_long.h Fix error in comment, and in test_long_api and test_longlong_api remove 2001-06-16 08:10:13 +00:00
threadmodule.c Um, I thought I'd already checked this in. 2006-03-10 02:28:35 +00:00
timemodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
timing.h remove rcs history 1996-01-26 21:10:22 +00:00
timingmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
tkappinit.c Remove warning about implicit declaration of strcmp() 2004-06-13 20:29:55 +00:00
unicodedata.c Adjust CJK Ideograph range to Unicode 4.1. 2006-03-11 12:16:23 +00:00
unicodedata_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
unicodename_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
xxmodule.c Fix and test (manually w/xx module) passing NULLs to PyObject_Str() and 2006-03-14 06:02:16 +00:00
xxsubtype.c add some example docstrings using PyDoc_STR 2002-08-14 01:45:37 +00:00
yuv.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
yuvconvert.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
zipimport.c SF #1444030: Fix several potential defects found by Coverity. 2006-03-07 15:39:21 +00:00
zlibmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00