Mercurial > cpython-lru_cache-weakref
view Python/getcompiler.c @ 75825:ad030571e6c0 2.7
Fixes Issue #14331: Use significantly less stack space when importing modules by
allocating path buffers on the heap instead of the stack.
| author | Gregory P. Smith <greg@krypto.org> |
|---|---|
| date | Sun, 18 Mar 2012 16:07:10 -0700 |
| parents | 4306107b1395 |
| children |
line wrap: on
line source
/* Return the compiler identification, if possible. */ #include "Python.h" #ifndef COMPILER #ifdef __GNUC__ #define COMPILER "\n[GCC " __VERSION__ "]" #endif #endif /* !COMPILER */ #ifndef COMPILER #ifdef __cplusplus #define COMPILER "[C++]" #else #define COMPILER "[C]" #endif #endif /* !COMPILER */ const char * Py_GetCompiler(void) { return COMPILER; }
