]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Arrange to export the _PyMalloc_{Malloc, Realloc, Free} entry points. On
authorTim Peters <tim.peters@gmail.com>
Wed, 20 Mar 2002 04:02:31 +0000 (04:02 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 20 Mar 2002 04:02:31 +0000 (04:02 +0000)
commitfbb556df15d66ced932619d61fb07ce9f9b34c0d
treead0c0b1889b482c04d2e669506e7555960b1ed52
parentc63a396c5fc55beeaf3c973f137e160fc844d5a6
Arrange to export the _PyMalloc_{Malloc, Realloc, Free} entry points.  On
Windows some modules are considered (by me, and I don't care what anyone
else thinks about this <wink>) to be part of "the core" despite that they
happen to be compiled into separate DLLs (the "to DLL or not to DLL?"
question on Windows is nearly arbitrary).  Making the pymalloc entry
points available to them allows the Windows build to complete without
incident when WITH_PYMALLOC is #define'd.

Note that this isn't unprecedented.  Other "private API" functions we
export include _PySequence_IterSearch, _PyEval_SliceIndex, _PyCodec_Lookup,
_Py_ZeroStruct, _Py_TrueStruct, _PyLong_New and _PyModule_Clear.
Include/pymem.h