Staging
v0.5.1
https://github.com/python/cpython
Revision bc212104e48eaaf2038c0a3f9dc2e1304a039a8b authored by Amaury Forgeot d'Arc on 04 February 2008, 23:51:55 UTC, committed by Amaury Forgeot d'Arc on 04 February 2008, 23:51:55 UTC
r60579 broke a test test_compile, which seems to test an "implementation detail" IMO.

Also test that this correction does not impact the debugger.
1 parent dcf8400
Raw File
Tip revision: bc212104e48eaaf2038c0a3f9dc2e1304a039a8b authored by Amaury Forgeot d'Arc on 04 February 2008, 23:51:55 UTC
No need to emit co_lnotab item when both offsets are zeros.
Tip revision: bc21210
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