cpython/Python/getversion.c

24 lines
367 B
C
Raw Normal View History

1995-08-04 12:20:48 +08:00
/* Return the full version string. */
1995-09-19 05:40:19 +08:00
#include "Python.h"
1995-08-04 12:20:48 +08:00
#include "patchlevel.h"
#define VERSION "%s (%s) %s"
#ifdef __DATE__
#define DATE __DATE__
#else
1995-10-12 08:48:18 +08:00
#define DATE "October 13 1995"
1995-08-04 12:20:48 +08:00
#endif
extern const char *getcompiler();
const char *
getversion()
{
static char version[80];
sprintf(version, VERSION, PATCHLEVEL, DATE, getcompiler());
return version;
}