Staging
v0.5.1
https://github.com/python/cpython
Revision 5cf2fb9904ceba3e7dd07aeb325f44a1cd8070bf authored by Andrew M. Kuchling on 03 October 2006, 18:43:28 UTC, committed by Andrew M. Kuchling on 03 October 2006, 18:43:28 UTC
Stop INCREFing name, then checking if it's NULL.  name (f_name) should never
be NULL so assert it.  Fix one place where we could have passed NULL.

Reported by Klocwork #66.
1 parent 9169792
Raw File
Tip revision: 5cf2fb9904ceba3e7dd07aeb325f44a1cd8070bf authored by Andrew M. Kuchling on 03 October 2006, 18:43:28 UTC
[Backport r50683 | neal.norwitz]
Tip revision: 5cf2fb9
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