annotate Include/patchlevel.h @ 10072:ecebcd84df37 legacy-trunk

put the preferences file in a folder called "Python" inside the prefs folder, just like the IDE does -- jvr
author Just van Rossum <just@lettererror.com>
date Tue, 02 Feb 1999 15:49:03 +0000
parents 85ab28644201
children d4ce9f1f6266
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
1 /***********************************************************
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
2 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
3 The Netherlands.
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
4
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
5 All Rights Reserved
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
6
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
7 Permission to use, copy, modify, and distribute this software and its
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
8 documentation for any purpose and without fee is hereby granted,
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
9 provided that the above copyright notice appear in all copies and that
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
10 both that copyright notice and this permission notice appear in
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
11 supporting documentation, and that the names of Stichting Mathematisch
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
12 Centrum or CWI or Corporation for National Research Initiatives or
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
13 CNRI not be used in advertising or publicity pertaining to
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
14 distribution of the software without specific, written prior
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
15 permission.
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
16
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
17 While CWI is the initial source for this software, a modified version
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
18 is made available by the Corporation for National Research Initiatives
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
19 (CNRI) at the Internet address ftp://ftp.python.org.
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
20
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
21 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
22 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
23 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
24 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
25 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
26 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
27 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
28 PERFORMANCE OF THIS SOFTWARE.
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
29
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
30 ******************************************************************/
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
31
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
32 /* Newfangled version identification scheme.
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
33
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
34 This scheme was added in Python 1.5.2b2; before that time, only PATCHLEVEL
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
35 was available. To test for presence of the scheme, test for
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
36 defined(PY_MAJOR_VERSION).
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
37
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
38 When the major or minor version changes, the VERSION variable in
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
39 configure.in must also be changed.
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
40
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
41 There is also (independent) API version information in modsupport.h.
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
42 */
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
43
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
44 /* Values for PY_RELEASE_LEVEL */
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
45 #define PY_RELEASE_LEVEL_ALPHA 0xA
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
46 #define PY_RELEASE_LEVEL_BETA 0xB
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
47 #define PY_RELEASE_LEVEL_FINAL 0xF /* Serial should be 0 here */
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
48
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
49 /* Version parsed out into numeric values */
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
50 #define PY_MAJOR_VERSION 1
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
51 #define PY_MINOR_VERSION 5
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
52 #define PY_MICRO_VERSION 2
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
53 #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_BETA
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
54 #define PY_RELEASE_SERIAL 2
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
55
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
56 /* Version as a string */
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
57 #define PY_VERSION "1.5.2b2"
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
58
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
59 /* Historic */
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
60 #define PATCHLEVEL "1.5.2b2"
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
61
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
62 /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
63 Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
64 #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
65 (PY_MINOR_VERSION << 16) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
66 (PY_MICRO_VERSION << 8) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
67 (PY_RELEASE_LEVEL << 4) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
68 (PY_RELEASE_SERIAL << 0))