Mercurial > cpython-lru_cache-weakref
diff Python/getversion.c @ 2896:f0d9f800a4aa legacy-trunk
Initial revision
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 04 Aug 1995 04:20:48 +0000 |
| parents | |
| children | 237c3b2a6187 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Python/getversion.c Fri Aug 04 04:20:48 1995 +0000 @@ -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; +}
