home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Programming / Python2 / Python20_source / Modules / getbuildinfo.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-25  |  773 b   |  54 lines

  1. #include "config.h"
  2.  
  3. #ifdef macintosh
  4. #include "macbuildno.h"
  5. #endif
  6.  
  7. #ifndef DONT_HAVE_STDIO_H
  8. #include <stdio.h>
  9. #endif
  10.  
  11. #ifndef DATE
  12. #ifdef __DATE__
  13. #define DATE __DATE__
  14. #else
  15. #define DATE "xx/xx/xx"
  16. #endif
  17. #endif
  18.  
  19. #ifndef TIME
  20. #ifdef __TIME__
  21. #define TIME __TIME__
  22. #else
  23. #define TIME "xx:xx:xx"
  24. #endif
  25. #endif
  26.  
  27. #ifndef BUILD
  28. #define BUILD 0
  29. #endif
  30.  
  31.  
  32. const char *
  33. Py_GetBuildInfo(void)
  34. {
  35.     static char buildinfo[50];
  36.     sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
  37.     return buildinfo;
  38. }
  39.  
  40. #ifdef _AMIGA
  41. #include "patchlevel.h"
  42. /* AmigaDOS version string */
  43. static const char ver[] = "$VER: Python " PATCHLEVEL " " __AMIGADATE__
  44. #ifdef AMITCP
  45.  " AmiTCP";
  46. #else
  47. #ifdef INET225
  48.  " I-Net225";
  49. #else
  50.  "";
  51. #endif /* INET225 */
  52. #endif /* AMITCP */
  53. #endif /* _AMIGA */
  54.