Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 21096:cdb70bf88db1 legacy-trunk
Two screwups fixed for sizeof(char *) instead of sizeof(char []).
Also change all the helper functions to pass along the size of the
msgbuf and use PyOS_snprintf() when writing into the buffer.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Wed, 28 Nov 2001 22:14:37 +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; }
