@@ -144,20 +144,21 @@ type. |
144 | 144 |
|
145 | 145 | Contains the meta information of a struct sequence type to create. |
146 | 146 |
|
147 | | - +-------------------+------------------------------+--------------------------------------+ |
148 | | - | Field | C Type | Meaning | |
149 | | - +===================+==============================+======================================+ |
150 | | - | ``name`` | ``const char *`` | name of the struct sequence type | |
151 | | - +-------------------+------------------------------+--------------------------------------+ |
152 | | - | ``doc`` | ``const char *`` | pointer to docstring for the type | |
153 | | - | | | or ``NULL`` to omit | |
154 | | - +-------------------+------------------------------+--------------------------------------+ |
155 | | - | ``fields`` | ``PyStructSequence_Field *`` | pointer to ``NULL``-terminated array | |
156 | | - | | | with field names of the new type | |
157 | | - +-------------------+------------------------------+--------------------------------------+ |
158 | | - | ``n_in_sequence`` | ``int`` | number of fields visible to the | |
159 | | - | | | Python side (if used as tuple) | |
160 | | - +-------------------+------------------------------+--------------------------------------+ |
| 147 | + .. c:member:: const char *name |
| 148 | +
|
| 149 | + Name of the struct sequence type. |
| 150 | +
|
| 151 | + .. c:member:: const char *doc |
| 152 | +
|
| 153 | + Pointer to docstring for the type or ``NULL`` to omit. |
| 154 | +
|
| 155 | + .. c:member:: PyStructSequence_Field *fields |
| 156 | +
|
| 157 | + Pointer to ``NULL``-terminated array with field names of the new type. |
| 158 | +
|
| 159 | + .. c:member:: int n_in_sequence |
| 160 | +
|
| 161 | + Number of fields visible to the Python side (if used as tuple). |
161 | 162 |
|
162 | 163 |
|
163 | 164 | .. c:type:: PyStructSequence_Field |
@@ -167,16 +168,14 @@ type. |
167 | 168 | :attr:`fields` array of the :c:type:`PyStructSequence_Desc` determines which |
168 | 169 | field of the struct sequence is described. |
169 | 170 |
|
170 | | - +-----------+------------------+-----------------------------------------+ |
171 | | - | Field | C Type | Meaning | |
172 | | - +===========+==================+=========================================+ |
173 | | - | ``name`` | ``const char *`` | name for the field or ``NULL`` to end | |
174 | | - | | | the list of named fields, set to | |
175 | | - | | | :c:data:`PyStructSequence_UnnamedField` | |
176 | | - | | | to leave unnamed | |
177 | | - +-----------+------------------+-----------------------------------------+ |
178 | | - | ``doc`` | ``const char *`` | field docstring or ``NULL`` to omit | |
179 | | - +-----------+------------------+-----------------------------------------+ |
| 171 | + .. c:member:: const char *name |
| 172 | +
|
| 173 | + Name for the field or ``NULL`` to end the list of named fields, |
| 174 | + set to :c:data:`PyStructSequence_UnnamedField` to leave unnamed. |
| 175 | +
|
| 176 | + .. c:member:: const char *doc |
| 177 | +
|
| 178 | + Field docstring or ``NULL`` to omit. |
180 | 179 |
|
181 | 180 |
|
182 | 181 | .. c:var:: const char * const PyStructSequence_UnnamedField |
|