cpython/Python/getversion.c

24 lines
367 B
C
Raw Normal View History

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