mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
const poisoning, spreading to fix new const warnings
in _winreg.c.
This commit is contained in:
parent
dc297b4ef4
commit
c3d12ac88c
3 changed files with 8 additions and 8 deletions
|
@ -79,11 +79,11 @@ typedef struct PyMemberDef {
|
|||
|
||||
|
||||
/* Obsolete API, for binary backwards compatibility */
|
||||
PyAPI_FUNC(PyObject *) PyMember_Get(char *, struct memberlist *, char *);
|
||||
PyAPI_FUNC(int) PyMember_Set(char *, struct memberlist *, char *, PyObject *);
|
||||
PyAPI_FUNC(PyObject *) PyMember_Get(const char *, struct memberlist *, const char *);
|
||||
PyAPI_FUNC(int) PyMember_Set(char *, struct memberlist *, const char *, PyObject *);
|
||||
|
||||
/* Current API, use this */
|
||||
PyAPI_FUNC(PyObject *) PyMember_GetOne(char *, struct PyMemberDef *);
|
||||
PyAPI_FUNC(PyObject *) PyMember_GetOne(const char *, struct PyMemberDef *);
|
||||
PyAPI_FUNC(int) PyMember_SetOne(char *, struct PyMemberDef *, PyObject *);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue