cpython/Python/getversion.c

24 lines
367 B
C
Raw Normal View History

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