Mercurial > cpython-lru_cache-weakref
annotate Python/getversion.c @ 3100:171eef69a2cd legacy-trunk
remove unwanted fatal() from err_badcall()
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 18 Sep 1995 21:31:16 +0000 |
| parents | f0d9f800a4aa |
| children | 237c3b2a6187 |
| rev | line source |
|---|---|
| 2896 | 1 /* Return the full version string. */ |
| 2 | |
| 3 #include "patchlevel.h" | |
| 4 | |
| 5 #define VERSION "%s (%s) %s" | |
| 6 | |
| 7 #ifdef __DATE__ | |
| 8 #define DATE __DATE__ | |
| 9 #else | |
| 10 #define DATE "August 1 1995" | |
| 11 #endif | |
| 12 | |
| 13 extern const char *getcompiler(); | |
| 14 | |
| 15 const char * | |
| 16 getversion() | |
| 17 { | |
| 18 static char version[80]; | |
| 19 sprintf(version, VERSION, PATCHLEVEL, DATE, getcompiler()); | |
| 20 return version; | |
| 21 } |
