home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pyth_os2.zip / python-1.0.2 / Python / version.c < prev   
C/C++ Source or Header  |  1994-05-04  |  2KB  |  57 lines

  1. /***********************************************************
  2. Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
  3. Amsterdam, The Netherlands.
  4.  
  5.                         All Rights Reserved
  6.  
  7. Permission to use, copy, modify, and distribute this software and its 
  8. documentation for any purpose and without fee is hereby granted, 
  9. provided that the above copyright notice appear in all copies and that
  10. both that copyright notice and this permission notice appear in 
  11. supporting documentation, and that the names of Stichting Mathematisch
  12. Centrum or CWI not be used in advertising or publicity pertaining to
  13. distribution of the software without specific, written prior permission.
  14.  
  15. STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
  16. THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  17. FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
  18. FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  20. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  21. OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  
  23. ******************************************************************/
  24.  
  25. /* Python version information */
  26.  
  27. #include "patchlevel.h"
  28.  
  29. /* Return the version string.  This is constructed from the official
  30.    version number, the patch level, and the current date (if known to
  31.    the compiler, else a manually inserted date). */
  32.  
  33. #define VERSION "1.0.%d (%s)"
  34.  
  35. #ifdef __DATE__
  36. #define DATE __DATE__
  37. #else
  38. #define DATE "4 May 1994"
  39. #endif
  40.  
  41. char *
  42. getversion()
  43. {
  44.     static char version[80];
  45.     sprintf(version, VERSION, PATCHLEVEL, DATE);
  46.     return version;
  47. }
  48.  
  49.  
  50. /* Return the copyright string.  This is updated manually. */
  51.  
  52. char *
  53. getcopyright()
  54. {
  55.     return "Copyright 1991-1994 Stichting Mathematisch Centrum, Amsterdam";
  56. }
  57.