mirror of
https://github.com/python/cpython.git
synced 2025-09-03 07:28:59 +00:00
bpo-39943: Add the const qualifier to pointers on non-mutable PyUnicode data. (GH-19345)
This commit is contained in:
parent
7ec43a7309
commit
cd8295ff75
27 changed files with 250 additions and 221 deletions
|
@ -376,7 +376,7 @@ _Py_DisplaySourceLine(PyObject *f, PyObject *filename, int lineno, int indent)
|
|||
int fd;
|
||||
int i;
|
||||
char *found_encoding;
|
||||
char *encoding;
|
||||
const char *encoding;
|
||||
PyObject *io;
|
||||
PyObject *binary;
|
||||
PyObject *fob = NULL;
|
||||
|
@ -384,7 +384,7 @@ _Py_DisplaySourceLine(PyObject *f, PyObject *filename, int lineno, int indent)
|
|||
PyObject *res;
|
||||
char buf[MAXPATHLEN+1];
|
||||
int kind;
|
||||
void *data;
|
||||
const void *data;
|
||||
|
||||
/* open the file */
|
||||
if (filename == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue