mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Issue #28761: The fields name and doc of structures PyMemberDef, PyGetSetDef,
PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of type "const char *" rather of "char *".
This commit is contained in:
parent
9af740b99a
commit
007d7ff73f
8 changed files with 31 additions and 21 deletions
|
@ -725,11 +725,11 @@ type objects) *must* have the :attr:`ob_size` field.
|
|||
typedef int (*setter)(PyObject *, PyObject *, void *);
|
||||
|
||||
typedef struct PyGetSetDef {
|
||||
char *name; /* attribute name */
|
||||
getter get; /* C function to get the attribute */
|
||||
setter set; /* C function to set or delete the attribute */
|
||||
char *doc; /* optional doc string */
|
||||
void *closure; /* optional additional data for getter and setter */
|
||||
const char *name; /* attribute name */
|
||||
getter get; /* C function to get the attribute */
|
||||
setter set; /* C function to set or delete the attribute */
|
||||
const char *doc; /* optional doc string */
|
||||
void *closure; /* optional additional data for getter and setter */
|
||||
} PyGetSetDef;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue