@@ -144,20 +144,21 @@ type.
144144
145145 Contains the meta information of a struct sequence type to create.
146146
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).
161162
162163
163164.. c:type:: PyStructSequence_Field
@@ -168,16 +169,14 @@ type.
168169 the :c:type:`PyStructSequence_Desc` determines which
169170 field of the struct sequence is described.
170171
171- +-----------+------------------+-----------------------------------------+
172- | Field | C Type | Meaning |
173- +===========+==================+=========================================+
174- | ``name `` | ``const char * `` | name for the field or ``NULL `` to end |
175- | | | the list of named fields, set to |
176- | | | :c:data: `PyStructSequence_UnnamedField ` |
177- | | | to leave unnamed |
178- +-----------+------------------+-----------------------------------------+
179- | ``doc `` | ``const char * `` | field docstring or ``NULL `` to omit |
180- +-----------+------------------+-----------------------------------------+
172+ .. c:member:: const char *name
173+
174+ Name for the field or ``NULL`` to end the list of named fields,
175+ set to :c:data:`PyStructSequence_UnnamedField` to leave unnamed.
176+
177+ .. c:member:: const char *doc
178+
179+ Field docstring or ``NULL`` to omit.
181180
182181
183182.. c:var:: const char * const PyStructSequence_UnnamedField
0 commit comments