This commit was manufactured by cvs2svn to create tag 'release101'.
[python/dscho.git] / Modules / version.c
blobc01c8189ce7e7d86a664c67cfd2034e24b728f54
1 /***********************************************************
2 Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
3 Amsterdam, The Netherlands.
5 All Rights Reserved
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.
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.
23 ******************************************************************/
25 /* Python version information */
27 #include "patchlevel.h"
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). */
33 #define VERSION "1.0.%d (%s)"
35 #ifdef __DATE__
36 #define DATE __DATE__
37 #else
38 #define DATE "26 January 1994"
39 #endif
41 char *
42 getversion()
44 static char version[80];
45 sprintf(version, VERSION, PATCHLEVEL, DATE);
46 return version;
50 /* Return the copyright string. This is updated manually. */
52 char *
53 getcopyright()
55 return "Copyright 1991-1994 Stichting Mathematisch Centrum, Amsterdam";