Mercurial > cpython-lru_cache-weakref
comparison Python/getversion.c @ 5860:728a083242a2 legacy-trunk
Make it return a _const_ char*.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 19 Jul 1997 19:48:41 +0000 |
| parents | 13d38eb7e225 |
| children | 6fc58d79dac5 |
comparison
equal
deleted
inserted
replaced
| 5859:64f9ce999437 | 5860:728a083242a2 |
|---|---|
| 33 | 33 |
| 34 #include "Python.h" | 34 #include "Python.h" |
| 35 | 35 |
| 36 #include "patchlevel.h" | 36 #include "patchlevel.h" |
| 37 | 37 |
| 38 extern const char *Py_GetCompiler(); | |
| 39 extern const char *Py_GetBuildInfo(); | |
| 40 | |
| 41 const char * | 38 const char * |
| 42 Py_GetVersion() | 39 Py_GetVersion() |
| 43 { | 40 { |
| 44 static char version[80]; | 41 static char version[80]; |
| 45 sprintf(version, "%.10s (%.30s) %.30s", PATCHLEVEL, Py_GetBuildInfo(), Py_GetCompiler()); | 42 sprintf(version, "%.10s (%.30s) %.30s", PATCHLEVEL, Py_GetBuildInfo(), Py_GetCompiler()); |
