mirror of
https://github.com/python/cpython
synced 2024-11-05 18:12:54 +00:00
22 lines
344 B
C
22 lines
344 B
C
|
/* Return the full version string. */
|
||
|
|
||
|
#include "patchlevel.h"
|
||
|
|
||
|
#define VERSION "%s (%s) %s"
|
||
|
|
||
|
#ifdef __DATE__
|
||
|
#define DATE __DATE__
|
||
|
#else
|
||
|
#define DATE "August 1 1995"
|
||
|
#endif
|
||
|
|
||
|
extern const char *getcompiler();
|
||
|
|
||
|
const char *
|
||
|
getversion()
|
||
|
{
|
||
|
static char version[80];
|
||
|
sprintf(version, VERSION, PATCHLEVEL, DATE, getcompiler());
|
||
|
return version;
|
||
|
}
|