view Python/getcompiler.c @ 14382:2d6cf68aa64a legacy-trunk

changed \x to consume exactly two hex digits. implements PEP-223 for 8-bit strings.
author Fredrik Lundh <fredrik@pythonware.com>
date Sat, 02 Sep 2000 20:11:27 +0000
parents 6f6f965c5e2d
children 4306107b1395
line wrap: on
line source


/* Return the compiler identification, if possible. */

#include "Python.h"

#ifndef COMPILER

#ifdef __GNUC__
#define COMPILER " [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;
}