cpython/Parser
Tim Peters c9d78aa470 Years in the making.
objimpl.h, pymem.h:  Stop mapping PyMem_{Del, DEL} and PyMem_{Free, FREE}
to PyObject_{Free, FREE} in a release build.  They're aliases for the
system free() now.

_subprocess.c/sp_handle_dealloc():  Since the memory was originally
obtained via PyObject_NEW, it must be released via PyObject_FREE (or
_DEL).

pythonrun.c, tokenizer.c, parsermodule.c:  I lost count of the number of
PyObject vs PyMem mismatches in these -- it's like the specific
function called at each site was picked at random, sometimes even with
memory obtained via PyMem getting released via PyObject.  Changed most
to use PyObject uniformly, since the blobs allocated are predictably
small in most cases, and obmalloc is generally faster than system
mallocs then.

If extension modules in real life prove as sloppy as Python's front
end, we'll have to revert the objimpl.h + pymem.h part of this patch.
Note that no problems will show up in a debug build (all calls still go
thru obmalloc then). Problems will show up only in a release build, most
likely segfaults.
2006-03-26 23:27:58 +00:00
..
Python.asdl Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
acceler.c [Patch #974633] Check PyObject_MALLOC return for error 2004-06-29 14:03:04 +00:00
asdl.py Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
asdl_c.py Fix memory leak on attributes. 2006-03-02 00:31:27 +00:00
bitset.c
firstsets.c SF #1444030: Fix several potential defects found by Coverity. 2006-03-07 15:39:21 +00:00
grammar.c Fix SF bug #1072182, problems with signed characters. 2005-12-19 06:05:18 +00:00
grammar.mak Merge ast-branch to head 2005-10-20 19:59:25 +00:00
grammar1.c
intrcheck.c Patch #975056 - fixes for restartable signals on *BSD. In addition, 2004-10-13 14:48:50 +00:00
listnode.c
metagrammar.c Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to 2003-04-17 14:55:42 +00:00
myreadline.c In a threads-disabled build, typing Ctrl-C into a raw_input() crashed, 2005-04-07 10:11:19 +00:00
node.c Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
parser.c Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
parser.h Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
parsetok.c Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
pgen.c Revert previous checkin, the check is for <, not ==. i is unsed in non-debug builds, but is used in debug builds 2006-01-08 02:06:01 +00:00
pgenmain.c - Fix segfault with invalid coding. 2005-10-02 01:48:49 +00:00
printgrammar.c
spark.py Whitespace normalization. 2005-12-25 23:18:31 +00:00
tokenizer.c Years in the making. 2006-03-26 23:27:58 +00:00
tokenizer.h Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
tokenizer_pgen.c Patch #534304: Implement phase 1 of PEP 263. 2002-08-04 17:29:52 +00:00