mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005)
Make it a constant and referring to a constant string.
This commit is contained in:
parent
5fd5cb8d85
commit
bd44a7ead9
5 changed files with 11 additions and 3 deletions
|
@ -19,7 +19,7 @@ typedef struct PyStructSequence_Desc {
|
|||
int n_in_sequence;
|
||||
} PyStructSequence_Desc;
|
||||
|
||||
extern char* PyStructSequence_UnnamedField;
|
||||
extern const char * const PyStructSequence_UnnamedField;
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue