|
1 | | -# This file lists the contents of the Limited API and Stable ABI. |
| 1 | +# This file lists the contents of Limited API and Stable ABI. |
2 | 2 | # Please append new items at the end. |
3 | 3 |
|
4 | 4 | # The syntax of this file is not fixed. |
|
46 | 46 | # - 'opaque': No members are part of the ABI, nor is the size. The Limited |
47 | 47 | # API only handles these via pointers. The C definition should be |
48 | 48 | # incomplete (opaque). |
49 | | -# - 'members': Only specific members are part of the stable ABI. |
50 | | -# The struct's size may change, so it can't be used in arrays. |
| 49 | +# - 'abi3t-opaque': 'full-abi' in abi3; 'opaque' in abi3t. |
| 50 | +# For docs, the generated annotation refers to details that need to |
| 51 | +# be added to the ReST file manually. |
| 52 | +# - 'members': |
| 53 | +# - 'opaque' in abi3t. |
| 54 | +# - In abi3, only specific members are part of the stable ABI. |
| 55 | +# The struct's size may change, so it can't be used in arrays. |
51 | 56 | # Do not add new structs of this kind without an extremely good reason. |
| 57 | +# For docs, the generated annotation refers to details that need to |
| 58 | +# be added to the ReST file manually. |
52 | 59 | # - members: For `struct` with struct_abi_kind = 'members', a list of the |
53 | 60 | # exposed members. |
54 | 61 | # - doc: for `feature_macro`, the blurb added in documentation |
55 | 62 | # - windows: for `feature_macro`, this macro is defined on Windows. |
56 | 63 | # (This info is used to generate the DLL manifest and needs to be available |
57 | 64 | # on all platforms.) |
| 65 | +# - abi3t_opaque: In abi3t, this struct is opaque (as if `struct_abi_kind` |
| 66 | +# was 'opaque' and `members` was missing). |
58 | 67 |
|
59 | 68 | # Removing items from this file is generally not allowed, and additions should |
60 | 69 | # be considered with that in mind. See the devguide for exact rules: |
|
107 | 116 | struct_abi_kind = 'full-abi' |
108 | 117 | [struct.PyModuleDef_Base] |
109 | 118 | added = '3.2' |
110 | | - struct_abi_kind = 'full-abi' |
| 119 | + struct_abi_kind = 'abi3t-opaque' |
111 | 120 | [struct.PyModuleDef] |
112 | 121 | added = '3.2' |
113 | | - struct_abi_kind = 'full-abi' |
| 122 | + struct_abi_kind = 'abi3t-opaque' |
114 | 123 | [struct.PyStructSequence_Field] |
115 | 124 | added = '3.2' |
116 | 125 | struct_abi_kind = 'full-abi' |
|
0 commit comments