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
..
acceler.c
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
grammar1.c
intrcheck.c
listnode.c
metagrammar.c
myreadline.c
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
printgrammar.c
Python.asdl Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
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