mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Initial revision
This commit is contained in:
parent
37ba0bc50b
commit
667d704997
8 changed files with 1013 additions and 0 deletions
21
Python/getversion.c
Normal file
21
Python/getversion.c
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue