summaryrefslogtreecommitdiffstats
path: root/Include/structseq.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/structseq.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/structseq.h')
-rw-r--r--Include/structseq.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/structseq.h b/Include/structseq.h
index af22716..e5e5d5c 100644
--- a/Include/structseq.h
+++ b/Include/structseq.h
@@ -8,13 +8,13 @@ extern "C" {
#endif
typedef struct PyStructSequence_Field {
- char *name;
- char *doc;
+ const char *name;
+ const char *doc;
} PyStructSequence_Field;
typedef struct PyStructSequence_Desc {
- char *name;
- char *doc;
+ const char *name;
+ const char *doc;
struct PyStructSequence_Field *fields;
int n_in_sequence;
} PyStructSequence_Desc;