Debian Codegraph @

pypy/module/cpyext/include/patchlevel.h

raw symbols SCIP
1 /* Newfangled version identification scheme.
2
3 This scheme was added in Python 1.5.2b2; before that time, only PATCHLEVEL
4 was available. To test for presence of the scheme, test for
5 defined(PY_MAJOR_VERSION).
6
7 When the major or minor version changes, the VERSION variable in
8 configure.in must also be changed.
9
10 There is also (independent) API version information in modsupport.h.
11 */
12
13 /* Values for PY_RELEASE_LEVEL */
14 #define PY_RELEASE_LEVEL_ALPHA 0xA
15 #define PY_RELEASE_LEVEL_BETA 0xB
16 #define PY_RELEASE_LEVEL_GAMMA 0xC /* For release candidates */
17 #define PY_RELEASE_LEVEL_FINAL 0xF /* Serial should be 0 here */
18 /* Higher for patch releases */
19
20 /* Version parsed out into numeric values */
21 #define PY_MAJOR_VERSION 3
22 #define PY_MINOR_VERSION 11
23 #define PY_MICRO_VERSION 15
24 #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
25 #define PY_RELEASE_SERIAL 0
26
27 /* Version as a string */
28 #define PY_VERSION "3.11.15"
29
30 /* PyPy version as a string: make sure to keep this in sync with:
31 * module/sys/version.py
32 * doc/conf.py
33 */
34 #define PYPY_VERSION "7.3.23"
35 #define PYPY_VERSION_NUM 0x07031700
36 /* Defined to mean a PyPy where cpyext holds more regular references
37 to PyObjects, e.g. staying alive as long as the internal PyPy object
38 stays alive. */
39 #define PYPY_CPYEXT_GC 1
40 #define PyPy_Borrow(a, b) ((void) 0)
41
42 /* Subversion Revision number of this file (not of the repository).
43 * Empty since Mercurial migration. */
44 #define PY_PATCHLEVEL_REVISION ""
45
46 /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
47 Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
48 #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
49 (PY_MINOR_VERSION << 16) | \
50 (PY_MICRO_VERSION << 8) | \
51 (PY_RELEASE_LEVEL << 4) | \
52 (PY_RELEASE_SERIAL << 0))