Mercurial > cpython-lru_cache-weakref
annotate Include/patchlevel.h @ 13778:f6e4a9dd67cd legacy-trunk
Rename the "parser" package to "parsers" to be compatible with the PyXML
project.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Mon, 31 Jul 2000 23:59:54 +0000 |
| parents | 87ee82e5c56d |
| children | 6f6f965c5e2d |
| rev | line source |
|---|---|
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
1 /*********************************************************** |
|
13255
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
13156
diff
changeset
|
2 Copyright (c) 2000, BeOpen.com. |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
13156
diff
changeset
|
3 Copyright (c) 1995-2000, Corporation for National Research Initiatives. |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
13156
diff
changeset
|
4 Copyright (c) 1990-1995, Stichting Mathematisch Centrum. |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
13156
diff
changeset
|
5 All rights reserved. |
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
6 |
|
13255
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
13156
diff
changeset
|
7 See the file "Misc/COPYRIGHT" for information on usage and |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
13156
diff
changeset
|
8 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
9 ******************************************************************/ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
10 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
11 /* Newfangled version identification scheme. |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
12 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
13 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
|
14 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
|
15 defined(PY_MAJOR_VERSION). |
|
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 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
|
18 configure.in must also be changed. |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
19 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
20 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
|
21 */ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
22 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
23 /* Values for PY_RELEASE_LEVEL */ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
24 #define PY_RELEASE_LEVEL_ALPHA 0xA |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
25 #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
|
26 #define PY_RELEASE_LEVEL_GAMMA 0xC |
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
27 #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
|
28 /* Higher for patch releases */ |
|
9744
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 /* Version parsed out into numeric values */ |
|
13156
c339ac7b6d4f
Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents:
12269
diff
changeset
|
31 #define PY_MAJOR_VERSION 2 |
|
c339ac7b6d4f
Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents:
12269
diff
changeset
|
32 #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
|
33 #define PY_MICRO_VERSION 0 |
|
13156
c339ac7b6d4f
Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents:
12269
diff
changeset
|
34 #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_BETA |
|
c339ac7b6d4f
Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents:
12269
diff
changeset
|
35 #define PY_RELEASE_SERIAL 1 |
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
36 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
37 /* Version as a string */ |
|
13156
c339ac7b6d4f
Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents:
12269
diff
changeset
|
38 #define PY_VERSION "2.0b1" |
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
39 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
40 /* Historic */ |
|
13156
c339ac7b6d4f
Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents:
12269
diff
changeset
|
41 #define PATCHLEVEL "2.0b1" |
|
9744
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 /* 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
|
44 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
|
45 #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
46 (PY_MINOR_VERSION << 16) | \ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
47 (PY_MICRO_VERSION << 8) | \ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
48 (PY_RELEASE_LEVEL << 4) | \ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
49 (PY_RELEASE_SERIAL << 0)) |
