| Guido van Rossum | 49bff65 | 1997-05-20 22:40:26 +0000 | [diff] [blame] | 1 | #include "config.h" |
| 2 | |||||
| Guido van Rossum | 2fff2e6 | 1997-01-20 18:34:26 +0000 | [diff] [blame] | 3 | #include <stdio.h> |
| 4 | |||||
| 5 | #ifndef DATE | ||||
| 6 | #ifdef __DATE__ | ||||
| 7 | #define DATE __DATE__ | ||||
| 8 | #else | ||||
| 9 | #define DATE "xx/xx/xx" | ||||
| 10 | #endif | ||||
| 11 | #endif | ||||
| 12 | |||||
| 13 | #ifndef TIME | ||||
| 14 | #ifdef __TIME__ | ||||
| 15 | #define TIME __TIME__ | ||||
| 16 | #else | ||||
| 17 | #define TIME "xx:xx:xx" | ||||
| 18 | #endif | ||||
| 19 | #endif | ||||
| 20 | |||||
| 21 | #ifndef BUILD | ||||
| 22 | #define BUILD 0 | ||||
| 23 | #endif | ||||
| 24 | |||||
| 25 | |||||
| 26 | const char * | ||||
| 27 | Py_GetBuildInfo() | ||||
| 28 | { | ||||
| 29 | static char buildinfo[40]; | ||||
| 30 | sprintf(buildinfo, "#%d, %.12s, %.8s", BUILD, DATE, TIME); | ||||
| 31 | return buildinfo; | ||||
| 32 | } | ||||