Staging
v0.5.1
https://github.com/python/cpython
Revision f172637bc7198e626fca2937e200170fbac64413 authored by Benjamin Peterson on 05 May 2009, 21:11:54 UTC, committed by Benjamin Peterson on 05 May 2009, 21:11:54 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72357 | benjamin.peterson | 2009-05-05 16:09:21 -0500 (Tue, 05 May 2009) | 4 lines

  fix running test_capi with -R ::

  Also, fix a refleak in the test that was preventing running. :)
........
1 parent 00cfc37
Raw File
Tip revision: f172637bc7198e626fca2937e200170fbac64413 authored by Benjamin Peterson on 05 May 2009, 21:11:54 UTC
Merged revisions 72357 via svnmerge from
Tip revision: f172637
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