Staging
v0.5.1
https://github.com/python/cpython
Revision 3aec568e6ea6deec2f3a3471004c9054ee34cce3 authored by Georg Brandl on 21 February 2012, 21:36:27 UTC, committed by Georg Brandl on 21 February 2012, 21:36:27 UTC
1 parent 4e171d1
Raw File
Tip revision: 3aec568e6ea6deec2f3a3471004c9054ee34cce3 authored by Georg Brandl on 21 February 2012, 21:36:27 UTC
Remove reST markup from --help output. Also: O(n**2) is dict construction, not single insertion.
Tip revision: 3aec568
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