cpython/Include
Mark Dickinson fd25634715 Replace the size check for PyMem_MALLOC and PyMem_REALLOC with an almost
equivalent[*] check that doesn't produce compiler warnings about a 'x < 0'
check on an unsigned type.

[*] it's equivalent for inputs of type size_t or Py_ssize_t, or any smaller
unsigned or signed integer type.
2009-12-10 10:36:32 +00:00
..
Python-ast.h Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum. 2008-03-30 06:40:17 +00:00
Python.h Issue #7117: Prepare for backport of py3k float repr. 2009-10-24 12:13:30 +00:00
abstract.h Issue 1242657: list(obj) can swallow KeyboardInterrupt. 2009-02-02 21:50:13 +00:00
asdl.h Introduce asdl_int_seq, to hold cmpop_ty. 2006-04-13 12:29:43 +00:00
ast.h Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, 2005-12-17 20:54:49 +00:00
bitset.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
boolobject.h #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
bufferobject.h #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
bytearrayobject.h Make the _H #define's match the header file names. Fix comments to 2008-06-01 22:57:47 +00:00
bytes_methods.h Issue #5793: rationalize isdigit / isalpha / tolower, etc. Will port to py3k. Should fix Windows buildbot errors. 2009-04-27 19:04:37 +00:00
bytesobject.h remove some PyBytes_* aliases that are not in 3.x 2009-02-16 21:09:09 +00:00
cStringIO.h #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
cellobject.h #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
ceval.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
classobject.h Implemented Martin's suggestion to clear the free lists during the garbage collection of the highest generation. 2008-02-14 12:47:33 +00:00
cobject.h #3668: When PyArg_ParseTuple correctly parses a s* format, but raises an 2008-08-29 18:39:48 +00:00
code.h Issue #6042: 2009-05-23 23:23:01 +00:00
codecs.h Patch #1436130: codecs.lookup() now returns a CodecInfo object (a subclass 2006-03-15 11:35:15 +00:00
compile.h move unprefixed error into .c file 2008-10-30 23:59:18 +00:00
complexobject.h Issue #1588: Add complex.__format__. 2009-04-30 00:58:58 +00:00
datetime.h #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
descrobject.h many more types to initialize (I had to expose some of them) 2009-04-18 22:15:26 +00:00
dictobject.h Issue #4688: Add a heuristic so that tuples and dicts containing only 2009-03-23 18:41:45 +00:00
dtoa.h Issue #7117: Prepare for backport of py3k float repr. 2009-10-24 12:13:30 +00:00
enumobject.h Implement and apply PEP 322, reverse iteration 2003-11-06 14:06:48 +00:00
errcode.h Patch #802188: better parser error message for non-EOL following line cont. 2005-03-03 11:45:45 +00:00
eval.h - New function sys.call_tracing() allows pdb to debug code 2003-04-09 19:06:21 +00:00
fileobject.h Issue #5204: Define _PyVerify_fd on VC6 to make 2009-02-11 04:13:06 +00:00
floatobject.h Issue #7117, continued: Change round implementation to use the correctly-rounded 2009-11-18 19:33:35 +00:00
frameobject.h Issue 5954, PyFrame_GetLineNumber: 2009-05-08 22:23:21 +00:00
funcobject.h #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
genobject.h #1473257: add generator.gi_code attribute that refers to 2008-01-26 14:14:20 +00:00
graminit.h Allow multiple context managers in one with statement, as proposed 2009-05-25 21:02:56 +00:00
grammar.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
import.h Fix issue #1590864, multiple threads and fork() can cause deadlocks, by 2009-09-16 19:55:54 +00:00
intobject.h - Issue #2862: Make int and float freelist management consistent with other 2008-07-06 03:35:58 +00:00
intrcheck.h Excise DL_EXPORT from Include. 2002-08-12 07:21:58 +00:00
iterobject.h #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
listobject.h #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
longintrepr.h Issue #6713: Improve performance of str(n) and repr(n) for integers n 2009-09-16 22:10:56 +00:00
longobject.h Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms. 2009-03-20 15:51:55 +00:00
marshal.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
memoryobject.h Issue #2396: backport the memoryview object. 2009-04-02 21:18:34 +00:00
metagrammar.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
methodobject.h Implemented Martin's suggestion to clear the free lists during the garbage collection of the highest generation. 2008-02-14 12:47:33 +00:00
modsupport.h Don't repeat yourself 2008-01-22 15:25:18 +00:00
moduleobject.h #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
node.h Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
object.h add _PyObject_LookupSpecial to handle fetching special method lookup 2009-05-08 03:06:00 +00:00
objimpl.h http://bugs.python.org/issue6836 2009-09-28 13:12:38 +00:00
opcode.h add a SETUP_WITH opcode 2009-05-25 13:13:44 +00:00
osdefs.h Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses 2006-04-25 15:29:46 +00:00
parsetok.h Patch #2477: Added from __future__ import unicode_literals 2008-03-26 22:01:37 +00:00
patchlevel.h post release version bump 2009-12-05 18:40:02 +00:00
pgen.h Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to 2003-04-17 14:55:42 +00:00
pgenheaders.h Use Py_GCC_ATTRIBUTE instead of __attribute__. Compilers other than GCC 2002-09-15 14:09:54 +00:00
py_curses.h Issue #6848: Fix curses module build failure on OS X 10.6. 2009-09-06 21:21:05 +00:00
pyarena.h Added words about what PyArena_Malloc() does. 2006-03-02 21:14:45 +00:00
pyctype.h Issue #5793: rationalize isdigit / isalpha / tolower, etc. Will port to py3k. Should fix Windows buildbot errors. 2009-04-27 19:04:37 +00:00
pydebug.h Implemented PEP 370 2008-05-06 22:41:46 +00:00
pyerrors.h Add const qualifier to PyErr_SetFromErrnoWithFilename and to 2009-06-12 20:57:12 +00:00
pyexpat.h Upgrade pyexpat to expat 2.0.0 (http://python.org/sf/1462338). 2006-06-19 23:21:25 +00:00
pyfpe.h Some patches to Lee Busby's fpectl mods that accidentally didn't make it 1997-10-20 23:50:01 +00:00
pygetopt.h Excise DL_EXPORT from Include. 2002-08-12 07:21:58 +00:00
pymacconfig.h Fix for issue 7452: HAVE_GCC_ASM_FOR_X87 gets set when doing a universal build on 2009-12-08 16:32:52 +00:00
pymactoolbox.h MacOS X: Enable 4-way universal builds 2008-06-05 12:58:24 +00:00
pymath.h Issue #7117 (backport py3k float repr) continued: 2009-10-24 13:28:38 +00:00
pymem.h Replace the size check for PyMem_MALLOC and PyMem_REALLOC with an almost 2009-12-10 10:36:32 +00:00
pyport.h Include ieeefp.h (when available) in pyport.h instead of individually in 2009-11-28 12:30:36 +00:00
pystate.h Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167. 2007-03-12 16:11:39 +00:00
pystrcmp.h build_os2emx.patch in issue 3868 - update OS/2 EMX makefile and config files 2008-09-22 14:23:45 +00:00
pystrtod.h Issue #7117: Backport missing pystrtod.h declarations from py3k. 2009-10-26 21:09:09 +00:00
pythonrun.h Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms. 2009-03-20 15:51:55 +00:00
pythread.h #1683 prevent forking from interfering in threading storage 2008-06-13 00:09:47 +00:00
rangeobject.h #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
setobject.h Nasty typo in setobject.h 2008-02-03 23:14:32 +00:00
sliceobject.h many more types to initialize (I had to expose some of them) 2009-04-18 22:15:26 +00:00
stringobject.h Backport of some of the work in r71665 to trunk. This reworks much of 2009-04-22 13:29:05 +00:00
structmember.h Patch #1720595: add T_BOOL to the range of structmember types. 2008-01-21 21:23:15 +00:00
structseq.h Clean up some whitespace to be consistent with Python's C style. 2002-10-17 19:48:27 +00:00
symtable.h remove some unused symtable constants 2009-06-23 03:01:56 +00:00
sysmodule.h Re-implement the 'warnings' module in C. This allows for usage of the 2008-04-12 23:44:07 +00:00
timefuncs.h Bug 975996: Add _PyTime_DoubleToTimet to C API 2004-06-20 02:50:16 +00:00
token.h PEP-0318, @decorator-style. In Guido's words: 2004-08-02 06:10:11 +00:00
traceback.h #3342: In tracebacks, printed source lines were not indented since r62555. 2008-07-11 21:45:06 +00:00
tupleobject.h Issue #4688: Add a heuristic so that tuples and dicts containing only 2009-03-23 18:41:45 +00:00
ucnhash.h Avoid forward-declaring the methods array. 2006-03-10 11:20:04 +00:00
unicodeobject.h Issue #4426: The UTF-7 decoder was too strict and didn't accept some legal sequences. 2009-05-04 18:32:32 +00:00
warnings.h wrap line 2008-05-26 19:37:11 +00:00
weakrefobject.h #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00