summaryrefslogtreecommitdiffstats
path: root/Include/structmember.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-22 05:58:08 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-22 05:58:08 (GMT)
commit007d7ff73f4e6e65cfafd512f9c23f7b7119b803 (patch)
tree31bd8b875b309b4259ca9eceff5a6746b0d4b19a /Include/structmember.h
parent9af740b99a19a85ad5f38379b6175cf4ead685ba (diff)
downloadcpython-007d7ff73f4e6e65cfafd512f9c23f7b7119b803.zip
cpython-007d7ff73f4e6e65cfafd512f9c23f7b7119b803.tar.gz
cpython-007d7ff73f4e6e65cfafd512f9c23f7b7119b803.tar.bz2
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 *".
Diffstat (limited to 'Include/structmember.h')
-rw-r--r--Include/structmember.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/structmember.h b/Include/structmember.h
index 5da8a46..b54f708 100644
--- a/Include/structmember.h
+++ b/Include/structmember.h
@@ -16,11 +16,11 @@ extern "C" {
pointer is NULL. */
typedef struct PyMemberDef {
- char *name;
+ const char *name;
int type;
Py_ssize_t offset;
int flags;
- char *doc;
+ const char *doc;
} PyMemberDef;
/* Types */