Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 21518:8af86a952b2c legacy-trunk
PyOS_vsnprintf(): Change PyMem_Malloc() call to PyMem_MALLOC() macro,
(ditto for PyMem_Free() -> PyMem_FREE()) to fix and close SF bug
#495875 on systems that HAVE_SNPRINTF=0.
Check in on both release-22 branch and trunk.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Fri, 21 Dec 2001 16:32:15 +0000 |
| parents | 6f6f965c5e2d |
| children |
line wrap: on
line source
#include "Python.h" #ifndef PLATFORM #define PLATFORM "unknown" #endif const char * Py_GetPlatform(void) { return PLATFORM; }
