@@ -147,20 +147,21 @@ type.
147147
148148 Contains the meta information of a struct sequence type to create.
149149
150- +-------------------+------------------------------+--------------------------------------+
151- | Field | C Type | Meaning |
152- +===================+==============================+======================================+
153- | ``name `` | ``const char * `` | name of the struct sequence type |
154- +-------------------+------------------------------+--------------------------------------+
155- | ``doc `` | ``const char * `` | pointer to docstring for the type |
156- | | | or ``NULL `` to omit |
157- +-------------------+------------------------------+--------------------------------------+
158- | ``fields `` | ``PyStructSequence_Field * `` | pointer to ``NULL ``-terminated array |
159- | | | with field names of the new type |
160- +-------------------+------------------------------+--------------------------------------+
161- | ``n_in_sequence `` | ``int `` | number of fields visible to the |
162- | | | Python side (if used as tuple) |
163- +-------------------+------------------------------+--------------------------------------+
150+ .. c :member :: const char *name
151+
152+ Name of the struct sequence type.
153+
154+ .. c :member :: const char *doc
155+
156+ Pointer to docstring for the type or ``NULL `` to omit.
157+
158+ .. c :member :: PyStructSequence_Field *fields
159+
160+ Pointer to ``NULL ``-terminated array with field names of the new type.
161+
162+ .. c :member :: int n_in_sequence
163+
164+ Number of fields visible to the Python side (if used as tuple).
164165
165166
166167.. c:type:: PyStructSequence_Field
@@ -171,16 +172,14 @@ type.
171172 the :c:type:`PyStructSequence_Desc` determines which
172173 field of the struct sequence is described.
173174
174- +-----------+------------------+-----------------------------------------+
175- | Field | C Type | Meaning |
176- +===========+==================+=========================================+
177- | ``name `` | ``const char * `` | name for the field or ``NULL `` to end |
178- | | | the list of named fields, set to |
179- | | | :c:data: `PyStructSequence_UnnamedField ` |
180- | | | to leave unnamed |
181- +-----------+------------------+-----------------------------------------+
182- | ``doc `` | ``const char * `` | field docstring or ``NULL `` to omit |
183- +-----------+------------------+-----------------------------------------+
175+ .. c:member:: const char *name
176+
177+ Name for the field or ``NULL`` to end the list of named fields,
178+ set to :c:data:`PyStructSequence_UnnamedField` to leave unnamed.
179+
180+ .. c:member:: const char *doc
181+
182+ Field docstring or ``NULL`` to omit.
184183
185184
186185.. c:var:: const char * const PyStructSequence_UnnamedField
0 commit comments