Mercurial > cpython-lru_cache-weakref
comparison Python/mysnprintf.c @ 23211:e16dbf875303 legacy-trunk
Moving pymalloc along.
+ Redirect PyMem_{Del, DEL} to the object allocator's free() when
pymalloc is enabled. Needed so old extensions can continue to
mix PyObject_New with PyMem_DEL.
+ This implies that pgen needs to be able to see the PyObject_XYZ
declarations too. pgenheaders.h now includes Python.h. An
implication is that I expect obmalloc.o needs to get linked into
pgen on non-Windows boxes.
+ When PYMALLOC_DEBUG is defined, *all* Py memory API functions
now funnel through the debug allocator wrapper around pymalloc.
This is the default in a debug build.
+ That caused compile.c to fail: it indirectly mixed PyMem_Malloc
with raw platform free() in one place. This is verbotten.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Mon, 22 Apr 2002 02:33:27 +0000 |
| parents | 8af86a952b2c |
| children | 2925b568aacc a8cc8e6f0c1a |
comparison
equal
deleted
inserted
replaced
| 23210:0e4497fb2de8 | 23211:e16dbf875303 |
|---|
