Mercurial > cpython-lru_cache-weakref
view Python/getcompiler.c @ 33714:635dd8a9ebd9 legacy-trunk
Revert rev 2.35. It was based on erroneous reasoning -- the current
thread's id can't get duplicated, because (of course!) the current thread
is still running. The code should work either way, but reverting the
gratuitous change should make backporting easier, and gets the bad
reasoning out of 2.35's new comments.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Sun, 10 Oct 2004 05:30:40 +0000 |
| 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; }
