cpython/Parser
Neal Norwitz 08062d6665 As discussed on python-dev, really fix the PyMem_*/PyObject_* memory API
mismatches.  At least I hope this fixes them all.

This reverts part of my change from yesterday that converted everything
in Parser/*.c to use PyObject_* API.  The encoding doesn't really need
to use PyMem_*, however, it uses new_string() which must return PyMem_*
for handling the result of PyOS_Readline() which returns PyMem_* memory.

If there were 2 versions of new_string() one that returned PyMem_*
for tokens and one that return PyObject_* for encodings that could
also fix this problem.  I'm not sure which version would be clearer.
This seems to fix both Guido's and Phillip's problems, so it's good enough
for now.  After this change, it would be good to review Parser/*.c
for consistent use of the 2 memory APIs.
2006-04-11 08:19:15 +00:00
..
Python.asdl Add lineno, col_offset to excephandler to enable future fix for 2006-04-04 04:00:23 +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 Make _kind types global for C++ compilation. 2006-04-11 08:06:50 +00:00
bitset.c Fix the code in Parser/ to also compile with C++. This was mostly casts for 2006-04-11 05:39:14 +00:00
firstsets.c Fix the code in Parser/ to also compile with C++. This was mostly casts for 2006-04-11 05:39:14 +00:00
grammar.c Fix the code in Parser/ to also compile with C++. This was mostly casts for 2006-04-11 05:39:14 +00:00
grammar.mak Merge ast-branch to head 2005-10-20 19:59:25 +00:00
grammar1.c PyGrammar_LabelRepr(): sprintf -> PyOS_snprintf. 2001-12-04 03:36:01 +00:00
intrcheck.c Patch #975056 - fixes for restartable signals on *BSD. In addition, 2004-10-13 14:48:50 +00:00
listnode.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
metagrammar.c Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to 2003-04-17 14:55:42 +00:00
myreadline.c As discussed on python-dev, really fix the PyMem_*/PyObject_* memory API 2006-04-11 08:19:15 +00:00
node.c SF patch #1467512, fix double free with triple quoted string in standard build. 2006-04-10 06:42:25 +00:00
parser.c Fix the code in Parser/ to also compile with C++. This was mostly casts for 2006-04-11 05:39:14 +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 Fix the code in Parser/ to also compile with C++. This was mostly casts for 2006-04-11 05:39:14 +00:00
pgenmain.c As discussed on python-dev, really fix the PyMem_*/PyObject_* memory API 2006-04-11 08:19:15 +00:00
printgrammar.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
spark.py Whitespace normalization. 2005-12-25 23:18:31 +00:00
tokenizer.c As discussed on python-dev, really fix the PyMem_*/PyObject_* memory API 2006-04-11 08:19:15 +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