annotate Include/patchlevel.h @ 13163:a09e8635534d legacy-trunk

Don't try to guess the name of a .def file -- if one is supplied, use it, otherwise just generate an '/export:' option.
author Greg Ward <gward@python.net>
date Thu, 29 Jun 2000 23:09:20 +0000
parents c339ac7b6d4f
children 916fb024ce94
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
10528
d4ce9f1f6266 Add the possibility of a gamma release (release candidate).
Guido van Rossum <guido@python.org>
parents: 9744
diff changeset
47 #define PY_RELEASE_LEVEL_GAMMA 0xC
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
48 #define PY_RELEASE_LEVEL_FINAL 0xF /* Serial should be 0 here */
10587
040b52868fe8 Prepare for final release.
Guido van Rossum <guido@python.org>
parents: 10546
diff changeset
49 /* Higher for patch releases */
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
50
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
51 /* Version parsed out into numeric values */
13156
c339ac7b6d4f Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents: 12269
diff changeset
52 #define PY_MAJOR_VERSION 2
c339ac7b6d4f Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents: 12269
diff changeset
53 #define PY_MINOR_VERSION 0
12088
3789b643fe89 Version updated to 1.6; API version to 1009.
Guido van Rossum <guido@python.org>
parents: 10944
diff changeset
54 #define PY_MICRO_VERSION 0
13156
c339ac7b6d4f Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents: 12269
diff changeset
55 #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_BETA
c339ac7b6d4f Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents: 12269
diff changeset
56 #define PY_RELEASE_SERIAL 1
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
57
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
58 /* Version as a string */
13156
c339ac7b6d4f Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents: 12269
diff changeset
59 #define PY_VERSION "2.0b1"
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
60
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
61 /* Historic */
13156
c339ac7b6d4f Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents: 12269
diff changeset
62 #define PATCHLEVEL "2.0b1"
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
63
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
64 /* 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
65 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
66 #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
67 (PY_MINOR_VERSION << 16) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
68 (PY_MICRO_VERSION << 8) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
69 (PY_RELEASE_LEVEL << 4) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
70 (PY_RELEASE_SERIAL << 0))