Staging
v0.5.1
https://github.com/python/cpython
Revision 94c887258c252fe4699b490b9b43185b0769c080 authored by Žiga Seilnacht on 14 March 2007, 12:34:30 UTC, committed by Žiga Seilnacht on 14 March 2007, 12:34:30 UTC
name. Remove a reference leak that happened if the name could not be
converted to string.
 (backport from rev. 54378)
1 parent 027ac24
Raw File
Tip revision: 94c887258c252fe4699b490b9b43185b0769c080 authored by Žiga Seilnacht on 14 March 2007, 12:34:30 UTC
Patch #1680015: Don't modify __slots__ tuple if it contains an unicode
Tip revision: 94c8872
getcompiler.c

/* 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;
}
back to top